AWS SDK for C++

AWS SDK for C++ Version 1.11.778

Loading...
Searching...
No Matches
CreateApplicationResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/opensearch/OpenSearchService_EXPORTS.h>
12#include <aws/opensearch/model/AppConfig.h>
13#include <aws/opensearch/model/DataSource.h>
14#include <aws/opensearch/model/IamIdentityCenterOptions.h>
15#include <aws/opensearch/model/Tag.h>
16
17#include <utility>
18
19namespace Aws {
20template <typename RESULT_TYPE>
21class AmazonWebServiceResult;
22
23namespace Utils {
24namespace Json {
25class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace OpenSearchService {
29namespace Model {
31 public:
32 AWS_OPENSEARCHSERVICE_API CreateApplicationResult() = default;
35
37
40 inline const Aws::String& GetId() const { return m_id; }
41 template <typename IdT = Aws::String>
42 void SetId(IdT&& value) {
43 m_idHasBeenSet = true;
44 m_id = std::forward<IdT>(value);
45 }
46 template <typename IdT = Aws::String>
48 SetId(std::forward<IdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetName() const { return m_name; }
58 template <typename NameT = Aws::String>
59 void SetName(NameT&& value) {
60 m_nameHasBeenSet = true;
61 m_name = std::forward<NameT>(value);
62 }
63 template <typename NameT = Aws::String>
65 SetName(std::forward<NameT>(value));
66 return *this;
67 }
69
71
72 inline const Aws::String& GetArn() const { return m_arn; }
73 template <typename ArnT = Aws::String>
74 void SetArn(ArnT&& value) {
75 m_arnHasBeenSet = true;
76 m_arn = std::forward<ArnT>(value);
77 }
78 template <typename ArnT = Aws::String>
80 SetArn(std::forward<ArnT>(value));
81 return *this;
82 }
84
86
89 inline const Aws::Vector<DataSource>& GetDataSources() const { return m_dataSources; }
90 template <typename DataSourcesT = Aws::Vector<DataSource>>
91 void SetDataSources(DataSourcesT&& value) {
92 m_dataSourcesHasBeenSet = true;
93 m_dataSources = std::forward<DataSourcesT>(value);
94 }
95 template <typename DataSourcesT = Aws::Vector<DataSource>>
97 SetDataSources(std::forward<DataSourcesT>(value));
98 return *this;
99 }
100 template <typename DataSourcesT = DataSource>
102 m_dataSourcesHasBeenSet = true;
103 m_dataSources.emplace_back(std::forward<DataSourcesT>(value));
104 return *this;
105 }
107
109
113 inline const IamIdentityCenterOptions& GetIamIdentityCenterOptions() const { return m_iamIdentityCenterOptions; }
114 template <typename IamIdentityCenterOptionsT = IamIdentityCenterOptions>
115 void SetIamIdentityCenterOptions(IamIdentityCenterOptionsT&& value) {
116 m_iamIdentityCenterOptionsHasBeenSet = true;
117 m_iamIdentityCenterOptions = std::forward<IamIdentityCenterOptionsT>(value);
118 }
119 template <typename IamIdentityCenterOptionsT = IamIdentityCenterOptions>
120 CreateApplicationResult& WithIamIdentityCenterOptions(IamIdentityCenterOptionsT&& value) {
121 SetIamIdentityCenterOptions(std::forward<IamIdentityCenterOptionsT>(value));
122 return *this;
123 }
125
127
131 inline const Aws::Vector<AppConfig>& GetAppConfigs() const { return m_appConfigs; }
132 template <typename AppConfigsT = Aws::Vector<AppConfig>>
133 void SetAppConfigs(AppConfigsT&& value) {
134 m_appConfigsHasBeenSet = true;
135 m_appConfigs = std::forward<AppConfigsT>(value);
136 }
137 template <typename AppConfigsT = Aws::Vector<AppConfig>>
139 SetAppConfigs(std::forward<AppConfigsT>(value));
140 return *this;
141 }
142 template <typename AppConfigsT = AppConfig>
144 m_appConfigsHasBeenSet = true;
145 m_appConfigs.emplace_back(std::forward<AppConfigsT>(value));
146 return *this;
147 }
149
151
152 inline const Aws::Vector<Tag>& GetTagList() const { return m_tagList; }
153 template <typename TagListT = Aws::Vector<Tag>>
154 void SetTagList(TagListT&& value) {
155 m_tagListHasBeenSet = true;
156 m_tagList = std::forward<TagListT>(value);
157 }
158 template <typename TagListT = Aws::Vector<Tag>>
160 SetTagList(std::forward<TagListT>(value));
161 return *this;
162 }
163 template <typename TagListT = Tag>
165 m_tagListHasBeenSet = true;
166 m_tagList.emplace_back(std::forward<TagListT>(value));
167 return *this;
168 }
170
172
175 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
176 template <typename CreatedAtT = Aws::Utils::DateTime>
177 void SetCreatedAt(CreatedAtT&& value) {
178 m_createdAtHasBeenSet = true;
179 m_createdAt = std::forward<CreatedAtT>(value);
180 }
181 template <typename CreatedAtT = Aws::Utils::DateTime>
183 SetCreatedAt(std::forward<CreatedAtT>(value));
184 return *this;
185 }
187
189
193 inline const Aws::String& GetKmsKeyArn() const { return m_kmsKeyArn; }
194 template <typename KmsKeyArnT = Aws::String>
195 void SetKmsKeyArn(KmsKeyArnT&& value) {
196 m_kmsKeyArnHasBeenSet = true;
197 m_kmsKeyArn = std::forward<KmsKeyArnT>(value);
198 }
199 template <typename KmsKeyArnT = Aws::String>
201 SetKmsKeyArn(std::forward<KmsKeyArnT>(value));
202 return *this;
203 }
205
207
208 inline const Aws::String& GetRequestId() const { return m_requestId; }
209 template <typename RequestIdT = Aws::String>
210 void SetRequestId(RequestIdT&& value) {
211 m_requestIdHasBeenSet = true;
212 m_requestId = std::forward<RequestIdT>(value);
213 }
214 template <typename RequestIdT = Aws::String>
216 SetRequestId(std::forward<RequestIdT>(value));
217 return *this;
218 }
220 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
221
222 private:
223 Aws::String m_id;
224
225 Aws::String m_name;
226
227 Aws::String m_arn;
228
229 Aws::Vector<DataSource> m_dataSources;
230
231 IamIdentityCenterOptions m_iamIdentityCenterOptions;
232
233 Aws::Vector<AppConfig> m_appConfigs;
234
235 Aws::Vector<Tag> m_tagList;
236
237 Aws::Utils::DateTime m_createdAt{};
238
239 Aws::String m_kmsKeyArn;
240
241 Aws::String m_requestId;
242 Aws::Http::HttpResponseCode m_HttpResponseCode;
243 bool m_idHasBeenSet = false;
244 bool m_nameHasBeenSet = false;
245 bool m_arnHasBeenSet = false;
246 bool m_dataSourcesHasBeenSet = false;
247 bool m_iamIdentityCenterOptionsHasBeenSet = false;
248 bool m_appConfigsHasBeenSet = false;
249 bool m_tagListHasBeenSet = false;
250 bool m_createdAtHasBeenSet = false;
251 bool m_kmsKeyArnHasBeenSet = false;
252 bool m_requestIdHasBeenSet = false;
253};
254
255} // namespace Model
256} // namespace OpenSearchService
257} // namespace Aws
CreateApplicationResult & WithRequestId(RequestIdT &&value)
CreateApplicationResult & WithAppConfigs(AppConfigsT &&value)
CreateApplicationResult & WithKmsKeyArn(KmsKeyArnT &&value)
AWS_OPENSEARCHSERVICE_API CreateApplicationResult()=default
AWS_OPENSEARCHSERVICE_API CreateApplicationResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateApplicationResult & WithIamIdentityCenterOptions(IamIdentityCenterOptionsT &&value)
CreateApplicationResult & WithDataSources(DataSourcesT &&value)
AWS_OPENSEARCHSERVICE_API CreateApplicationResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateApplicationResult & WithTagList(TagListT &&value)
CreateApplicationResult & AddDataSources(DataSourcesT &&value)
CreateApplicationResult & AddAppConfigs(AppConfigsT &&value)
CreateApplicationResult & AddTagList(TagListT &&value)
CreateApplicationResult & WithCreatedAt(CreatedAtT &&value)
const IamIdentityCenterOptions & GetIamIdentityCenterOptions() const
void SetIamIdentityCenterOptions(IamIdentityCenterOptionsT &&value)
const Aws::Vector< DataSource > & GetDataSources() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue