AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
GetApplicationResult.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/ApplicationStatus.h>
13#include <aws/opensearch/model/DataSource.h>
14#include <aws/opensearch/model/IamIdentityCenterOptions.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 GetApplicationResult() = 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
54 inline const Aws::String& GetArn() const { return m_arn; }
55 template <typename ArnT = Aws::String>
56 void SetArn(ArnT&& value) {
57 m_arnHasBeenSet = true;
58 m_arn = std::forward<ArnT>(value);
59 }
60 template <typename ArnT = Aws::String>
62 SetArn(std::forward<ArnT>(value));
63 return *this;
64 }
66
68
71 inline const Aws::String& GetName() const { return m_name; }
72 template <typename NameT = Aws::String>
73 void SetName(NameT&& value) {
74 m_nameHasBeenSet = true;
75 m_name = std::forward<NameT>(value);
76 }
77 template <typename NameT = Aws::String>
79 SetName(std::forward<NameT>(value));
80 return *this;
81 }
83
85
88 inline const Aws::String& GetEndpoint() const { return m_endpoint; }
89 template <typename EndpointT = Aws::String>
90 void SetEndpoint(EndpointT&& value) {
91 m_endpointHasBeenSet = true;
92 m_endpoint = std::forward<EndpointT>(value);
93 }
94 template <typename EndpointT = Aws::String>
95 GetApplicationResult& WithEndpoint(EndpointT&& value) {
96 SetEndpoint(std::forward<EndpointT>(value));
97 return *this;
98 }
100
102
107 inline ApplicationStatus GetStatus() const { return m_status; }
108 inline void SetStatus(ApplicationStatus value) {
109 m_statusHasBeenSet = true;
110 m_status = value;
111 }
113 SetStatus(value);
114 return *this;
115 }
117
119
123 inline const IamIdentityCenterOptions& GetIamIdentityCenterOptions() const { return m_iamIdentityCenterOptions; }
124 template <typename IamIdentityCenterOptionsT = IamIdentityCenterOptions>
125 void SetIamIdentityCenterOptions(IamIdentityCenterOptionsT&& value) {
126 m_iamIdentityCenterOptionsHasBeenSet = true;
127 m_iamIdentityCenterOptions = std::forward<IamIdentityCenterOptionsT>(value);
128 }
129 template <typename IamIdentityCenterOptionsT = IamIdentityCenterOptions>
130 GetApplicationResult& WithIamIdentityCenterOptions(IamIdentityCenterOptionsT&& value) {
131 SetIamIdentityCenterOptions(std::forward<IamIdentityCenterOptionsT>(value));
132 return *this;
133 }
135
137
140 inline const Aws::Vector<DataSource>& GetDataSources() const { return m_dataSources; }
141 template <typename DataSourcesT = Aws::Vector<DataSource>>
142 void SetDataSources(DataSourcesT&& value) {
143 m_dataSourcesHasBeenSet = true;
144 m_dataSources = std::forward<DataSourcesT>(value);
145 }
146 template <typename DataSourcesT = Aws::Vector<DataSource>>
147 GetApplicationResult& WithDataSources(DataSourcesT&& value) {
148 SetDataSources(std::forward<DataSourcesT>(value));
149 return *this;
150 }
151 template <typename DataSourcesT = DataSource>
152 GetApplicationResult& AddDataSources(DataSourcesT&& value) {
153 m_dataSourcesHasBeenSet = true;
154 m_dataSources.emplace_back(std::forward<DataSourcesT>(value));
155 return *this;
156 }
158
160
163 inline const Aws::Vector<AppConfig>& GetAppConfigs() const { return m_appConfigs; }
164 template <typename AppConfigsT = Aws::Vector<AppConfig>>
165 void SetAppConfigs(AppConfigsT&& value) {
166 m_appConfigsHasBeenSet = true;
167 m_appConfigs = std::forward<AppConfigsT>(value);
168 }
169 template <typename AppConfigsT = Aws::Vector<AppConfig>>
170 GetApplicationResult& WithAppConfigs(AppConfigsT&& value) {
171 SetAppConfigs(std::forward<AppConfigsT>(value));
172 return *this;
173 }
174 template <typename AppConfigsT = AppConfig>
175 GetApplicationResult& AddAppConfigs(AppConfigsT&& value) {
176 m_appConfigsHasBeenSet = true;
177 m_appConfigs.emplace_back(std::forward<AppConfigsT>(value));
178 return *this;
179 }
181
183
186 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
187 template <typename CreatedAtT = Aws::Utils::DateTime>
188 void SetCreatedAt(CreatedAtT&& value) {
189 m_createdAtHasBeenSet = true;
190 m_createdAt = std::forward<CreatedAtT>(value);
191 }
192 template <typename CreatedAtT = Aws::Utils::DateTime>
193 GetApplicationResult& WithCreatedAt(CreatedAtT&& value) {
194 SetCreatedAt(std::forward<CreatedAtT>(value));
195 return *this;
196 }
198
200
203 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
204 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
205 void SetLastUpdatedAt(LastUpdatedAtT&& value) {
206 m_lastUpdatedAtHasBeenSet = true;
207 m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value);
208 }
209 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
210 GetApplicationResult& WithLastUpdatedAt(LastUpdatedAtT&& value) {
211 SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value));
212 return *this;
213 }
215
217
221 inline const Aws::String& GetKmsKeyArn() const { return m_kmsKeyArn; }
222 template <typename KmsKeyArnT = Aws::String>
223 void SetKmsKeyArn(KmsKeyArnT&& value) {
224 m_kmsKeyArnHasBeenSet = true;
225 m_kmsKeyArn = std::forward<KmsKeyArnT>(value);
226 }
227 template <typename KmsKeyArnT = Aws::String>
228 GetApplicationResult& WithKmsKeyArn(KmsKeyArnT&& value) {
229 SetKmsKeyArn(std::forward<KmsKeyArnT>(value));
230 return *this;
231 }
233
235
236 inline const Aws::String& GetRequestId() const { return m_requestId; }
237 template <typename RequestIdT = Aws::String>
238 void SetRequestId(RequestIdT&& value) {
239 m_requestIdHasBeenSet = true;
240 m_requestId = std::forward<RequestIdT>(value);
241 }
242 template <typename RequestIdT = Aws::String>
243 GetApplicationResult& WithRequestId(RequestIdT&& value) {
244 SetRequestId(std::forward<RequestIdT>(value));
245 return *this;
246 }
248 private:
249 Aws::String m_id;
250
251 Aws::String m_arn;
252
253 Aws::String m_name;
254
255 Aws::String m_endpoint;
256
258
259 IamIdentityCenterOptions m_iamIdentityCenterOptions;
260
261 Aws::Vector<DataSource> m_dataSources;
262
263 Aws::Vector<AppConfig> m_appConfigs;
264
265 Aws::Utils::DateTime m_createdAt{};
266
267 Aws::Utils::DateTime m_lastUpdatedAt{};
268
269 Aws::String m_kmsKeyArn;
270
271 Aws::String m_requestId;
272 bool m_idHasBeenSet = false;
273 bool m_arnHasBeenSet = false;
274 bool m_nameHasBeenSet = false;
275 bool m_endpointHasBeenSet = false;
276 bool m_statusHasBeenSet = false;
277 bool m_iamIdentityCenterOptionsHasBeenSet = false;
278 bool m_dataSourcesHasBeenSet = false;
279 bool m_appConfigsHasBeenSet = false;
280 bool m_createdAtHasBeenSet = false;
281 bool m_lastUpdatedAtHasBeenSet = false;
282 bool m_kmsKeyArnHasBeenSet = false;
283 bool m_requestIdHasBeenSet = false;
284};
285
286} // namespace Model
287} // namespace OpenSearchService
288} // namespace Aws
GetApplicationResult & WithCreatedAt(CreatedAtT &&value)
const IamIdentityCenterOptions & GetIamIdentityCenterOptions() const
GetApplicationResult & WithDataSources(DataSourcesT &&value)
AWS_OPENSEARCHSERVICE_API GetApplicationResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetApplicationResult & WithEndpoint(EndpointT &&value)
GetApplicationResult & AddDataSources(DataSourcesT &&value)
GetApplicationResult & WithRequestId(RequestIdT &&value)
const Aws::Vector< DataSource > & GetDataSources() const
GetApplicationResult & WithKmsKeyArn(KmsKeyArnT &&value)
GetApplicationResult & WithLastUpdatedAt(LastUpdatedAtT &&value)
void SetIamIdentityCenterOptions(IamIdentityCenterOptionsT &&value)
AWS_OPENSEARCHSERVICE_API GetApplicationResult()=default
GetApplicationResult & WithAppConfigs(AppConfigsT &&value)
GetApplicationResult & WithStatus(ApplicationStatus value)
const Aws::Utils::DateTime & GetLastUpdatedAt() const
AWS_OPENSEARCHSERVICE_API GetApplicationResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetApplicationResult & WithIamIdentityCenterOptions(IamIdentityCenterOptionsT &&value)
GetApplicationResult & AddAppConfigs(AppConfigsT &&value)
const Aws::Vector< AppConfig > & GetAppConfigs() 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