AWS SDK for C++

AWS SDK for C++ Version 1.11.853

Loading...
Searching...
No Matches
AttachDataSourceResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/opensearch/OpenSearchService_EXPORTS.h>
10#include <aws/opensearch/model/DataSourceAttachmentStatus.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace OpenSearchService {
24namespace Model {
26 public:
27 AWS_OPENSEARCHSERVICE_API AttachDataSourceResult() = default;
30
32
35 inline const Aws::String& GetAttachmentId() const { return m_attachmentId; }
36 template <typename AttachmentIdT = Aws::String>
37 void SetAttachmentId(AttachmentIdT&& value) {
38 m_attachmentIdHasBeenSet = true;
39 m_attachmentId = std::forward<AttachmentIdT>(value);
40 }
41 template <typename AttachmentIdT = Aws::String>
42 AttachDataSourceResult& WithAttachmentId(AttachmentIdT&& value) {
43 SetAttachmentId(std::forward<AttachmentIdT>(value));
44 return *this;
45 }
47
49
52 inline const Aws::String& GetId() const { return m_id; }
53 template <typename IdT = Aws::String>
54 void SetId(IdT&& value) {
55 m_idHasBeenSet = true;
56 m_id = std::forward<IdT>(value);
57 }
58 template <typename IdT = Aws::String>
60 SetId(std::forward<IdT>(value));
61 return *this;
62 }
64
66
67 inline const Aws::String& GetArn() const { return m_arn; }
68 template <typename ArnT = Aws::String>
69 void SetArn(ArnT&& value) {
70 m_arnHasBeenSet = true;
71 m_arn = std::forward<ArnT>(value);
72 }
73 template <typename ArnT = Aws::String>
75 SetArn(std::forward<ArnT>(value));
76 return *this;
77 }
79
81
82 inline const Aws::String& GetDataSourceArn() const { return m_dataSourceArn; }
83 template <typename DataSourceArnT = Aws::String>
84 void SetDataSourceArn(DataSourceArnT&& value) {
85 m_dataSourceArnHasBeenSet = true;
86 m_dataSourceArn = std::forward<DataSourceArnT>(value);
87 }
88 template <typename DataSourceArnT = Aws::String>
89 AttachDataSourceResult& WithDataSourceArn(DataSourceArnT&& value) {
90 SetDataSourceArn(std::forward<DataSourceArnT>(value));
91 return *this;
92 }
94
96
102 inline DataSourceAttachmentStatus GetStatus() const { return m_status; }
104 m_statusHasBeenSet = true;
105 m_status = value;
106 }
108 SetStatus(value);
109 return *this;
110 }
112
114
115 inline const Aws::String& GetRequestId() const { return m_requestId; }
116 template <typename RequestIdT = Aws::String>
117 void SetRequestId(RequestIdT&& value) {
118 m_requestIdHasBeenSet = true;
119 m_requestId = std::forward<RequestIdT>(value);
120 }
121 template <typename RequestIdT = Aws::String>
123 SetRequestId(std::forward<RequestIdT>(value));
124 return *this;
125 }
127 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
128
129 private:
130 Aws::String m_attachmentId;
131
132 Aws::String m_id;
133
134 Aws::String m_arn;
135
136 Aws::String m_dataSourceArn;
137
139
140 Aws::String m_requestId;
141 Aws::Http::HttpResponseCode m_HttpResponseCode;
142 bool m_attachmentIdHasBeenSet = false;
143 bool m_idHasBeenSet = false;
144 bool m_arnHasBeenSet = false;
145 bool m_dataSourceArnHasBeenSet = false;
146 bool m_statusHasBeenSet = false;
147 bool m_requestIdHasBeenSet = false;
148};
149
150} // namespace Model
151} // namespace OpenSearchService
152} // namespace Aws
AttachDataSourceResult & WithStatus(DataSourceAttachmentStatus value)
AttachDataSourceResult & WithAttachmentId(AttachmentIdT &&value)
AttachDataSourceResult & WithRequestId(RequestIdT &&value)
AttachDataSourceResult & WithDataSourceArn(DataSourceArnT &&value)
AWS_OPENSEARCHSERVICE_API AttachDataSourceResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_OPENSEARCHSERVICE_API AttachDataSourceResult()=default
AWS_OPENSEARCHSERVICE_API AttachDataSourceResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue