AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
CreateApplicationResult.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/opensearch/OpenSearchService_EXPORTS.h>
11#include <aws/opensearch/model/AppConfig.h>
12#include <aws/opensearch/model/DataSource.h>
13#include <aws/opensearch/model/IamIdentityCenterOptions.h>
14#include <aws/opensearch/model/Tag.h>
15
16#include <utility>
17
18namespace Aws {
19template <typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils {
23namespace Json {
24class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace OpenSearchService {
28namespace Model {
30 public:
31 AWS_OPENSEARCHSERVICE_API CreateApplicationResult() = default;
34
36
39 inline const Aws::String& GetId() const { return m_id; }
40 template <typename IdT = Aws::String>
41 void SetId(IdT&& value) {
42 m_idHasBeenSet = true;
43 m_id = std::forward<IdT>(value);
44 }
45 template <typename IdT = Aws::String>
47 SetId(std::forward<IdT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetName() const { return m_name; }
57 template <typename NameT = Aws::String>
58 void SetName(NameT&& value) {
59 m_nameHasBeenSet = true;
60 m_name = std::forward<NameT>(value);
61 }
62 template <typename NameT = Aws::String>
64 SetName(std::forward<NameT>(value));
65 return *this;
66 }
68
70
71 inline const Aws::String& GetArn() const { return m_arn; }
72 template <typename ArnT = Aws::String>
73 void SetArn(ArnT&& value) {
74 m_arnHasBeenSet = true;
75 m_arn = std::forward<ArnT>(value);
76 }
77 template <typename ArnT = Aws::String>
79 SetArn(std::forward<ArnT>(value));
80 return *this;
81 }
83
85
88 inline const Aws::Vector<DataSource>& GetDataSources() const { return m_dataSources; }
89 template <typename DataSourcesT = Aws::Vector<DataSource>>
90 void SetDataSources(DataSourcesT&& value) {
91 m_dataSourcesHasBeenSet = true;
92 m_dataSources = std::forward<DataSourcesT>(value);
93 }
94 template <typename DataSourcesT = Aws::Vector<DataSource>>
96 SetDataSources(std::forward<DataSourcesT>(value));
97 return *this;
98 }
99 template <typename DataSourcesT = DataSource>
101 m_dataSourcesHasBeenSet = true;
102 m_dataSources.emplace_back(std::forward<DataSourcesT>(value));
103 return *this;
104 }
106
108
112 inline const IamIdentityCenterOptions& GetIamIdentityCenterOptions() const { return m_iamIdentityCenterOptions; }
113 template <typename IamIdentityCenterOptionsT = IamIdentityCenterOptions>
114 void SetIamIdentityCenterOptions(IamIdentityCenterOptionsT&& value) {
115 m_iamIdentityCenterOptionsHasBeenSet = true;
116 m_iamIdentityCenterOptions = std::forward<IamIdentityCenterOptionsT>(value);
117 }
118 template <typename IamIdentityCenterOptionsT = IamIdentityCenterOptions>
119 CreateApplicationResult& WithIamIdentityCenterOptions(IamIdentityCenterOptionsT&& value) {
120 SetIamIdentityCenterOptions(std::forward<IamIdentityCenterOptionsT>(value));
121 return *this;
122 }
124
126
130 inline const Aws::Vector<AppConfig>& GetAppConfigs() const { return m_appConfigs; }
131 template <typename AppConfigsT = Aws::Vector<AppConfig>>
132 void SetAppConfigs(AppConfigsT&& value) {
133 m_appConfigsHasBeenSet = true;
134 m_appConfigs = std::forward<AppConfigsT>(value);
135 }
136 template <typename AppConfigsT = Aws::Vector<AppConfig>>
138 SetAppConfigs(std::forward<AppConfigsT>(value));
139 return *this;
140 }
141 template <typename AppConfigsT = AppConfig>
143 m_appConfigsHasBeenSet = true;
144 m_appConfigs.emplace_back(std::forward<AppConfigsT>(value));
145 return *this;
146 }
148
150
151 inline const Aws::Vector<Tag>& GetTagList() const { return m_tagList; }
152 template <typename TagListT = Aws::Vector<Tag>>
153 void SetTagList(TagListT&& value) {
154 m_tagListHasBeenSet = true;
155 m_tagList = std::forward<TagListT>(value);
156 }
157 template <typename TagListT = Aws::Vector<Tag>>
159 SetTagList(std::forward<TagListT>(value));
160 return *this;
161 }
162 template <typename TagListT = Tag>
164 m_tagListHasBeenSet = true;
165 m_tagList.emplace_back(std::forward<TagListT>(value));
166 return *this;
167 }
169
171
174 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
175 template <typename CreatedAtT = Aws::Utils::DateTime>
176 void SetCreatedAt(CreatedAtT&& value) {
177 m_createdAtHasBeenSet = true;
178 m_createdAt = std::forward<CreatedAtT>(value);
179 }
180 template <typename CreatedAtT = Aws::Utils::DateTime>
182 SetCreatedAt(std::forward<CreatedAtT>(value));
183 return *this;
184 }
186
188
192 inline const Aws::String& GetKmsKeyArn() const { return m_kmsKeyArn; }
193 template <typename KmsKeyArnT = Aws::String>
194 void SetKmsKeyArn(KmsKeyArnT&& value) {
195 m_kmsKeyArnHasBeenSet = true;
196 m_kmsKeyArn = std::forward<KmsKeyArnT>(value);
197 }
198 template <typename KmsKeyArnT = Aws::String>
200 SetKmsKeyArn(std::forward<KmsKeyArnT>(value));
201 return *this;
202 }
204
206
207 inline const Aws::String& GetRequestId() const { return m_requestId; }
208 template <typename RequestIdT = Aws::String>
209 void SetRequestId(RequestIdT&& value) {
210 m_requestIdHasBeenSet = true;
211 m_requestId = std::forward<RequestIdT>(value);
212 }
213 template <typename RequestIdT = Aws::String>
215 SetRequestId(std::forward<RequestIdT>(value));
216 return *this;
217 }
219 private:
220 Aws::String m_id;
221
222 Aws::String m_name;
223
224 Aws::String m_arn;
225
226 Aws::Vector<DataSource> m_dataSources;
227
228 IamIdentityCenterOptions m_iamIdentityCenterOptions;
229
230 Aws::Vector<AppConfig> m_appConfigs;
231
232 Aws::Vector<Tag> m_tagList;
233
234 Aws::Utils::DateTime m_createdAt{};
235
236 Aws::String m_kmsKeyArn;
237
238 Aws::String m_requestId;
239 bool m_idHasBeenSet = false;
240 bool m_nameHasBeenSet = false;
241 bool m_arnHasBeenSet = false;
242 bool m_dataSourcesHasBeenSet = false;
243 bool m_iamIdentityCenterOptionsHasBeenSet = false;
244 bool m_appConfigsHasBeenSet = false;
245 bool m_tagListHasBeenSet = false;
246 bool m_createdAtHasBeenSet = false;
247 bool m_kmsKeyArnHasBeenSet = false;
248 bool m_requestIdHasBeenSet = false;
249};
250
251} // namespace Model
252} // namespace OpenSearchService
253} // 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