AWS SDK for C++

AWS SDK for C++ Version 1.11.780

Loading...
Searching...
No Matches
GetApplicationResult.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/ApplicationStatus.h>
14#include <aws/opensearch/model/DataSource.h>
15#include <aws/opensearch/model/IamIdentityCenterOptions.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 GetApplicationResult() = 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
55 inline const Aws::String& GetArn() const { return m_arn; }
56 template <typename ArnT = Aws::String>
57 void SetArn(ArnT&& value) {
58 m_arnHasBeenSet = true;
59 m_arn = std::forward<ArnT>(value);
60 }
61 template <typename ArnT = Aws::String>
63 SetArn(std::forward<ArnT>(value));
64 return *this;
65 }
67
69
72 inline const Aws::String& GetName() const { return m_name; }
73 template <typename NameT = Aws::String>
74 void SetName(NameT&& value) {
75 m_nameHasBeenSet = true;
76 m_name = std::forward<NameT>(value);
77 }
78 template <typename NameT = Aws::String>
80 SetName(std::forward<NameT>(value));
81 return *this;
82 }
84
86
89 inline const Aws::String& GetEndpoint() const { return m_endpoint; }
90 template <typename EndpointT = Aws::String>
91 void SetEndpoint(EndpointT&& value) {
92 m_endpointHasBeenSet = true;
93 m_endpoint = std::forward<EndpointT>(value);
94 }
95 template <typename EndpointT = Aws::String>
96 GetApplicationResult& WithEndpoint(EndpointT&& value) {
97 SetEndpoint(std::forward<EndpointT>(value));
98 return *this;
99 }
101
103
108 inline ApplicationStatus GetStatus() const { return m_status; }
109 inline void SetStatus(ApplicationStatus value) {
110 m_statusHasBeenSet = true;
111 m_status = value;
112 }
114 SetStatus(value);
115 return *this;
116 }
118
120
124 inline const IamIdentityCenterOptions& GetIamIdentityCenterOptions() const { return m_iamIdentityCenterOptions; }
125 template <typename IamIdentityCenterOptionsT = IamIdentityCenterOptions>
126 void SetIamIdentityCenterOptions(IamIdentityCenterOptionsT&& value) {
127 m_iamIdentityCenterOptionsHasBeenSet = true;
128 m_iamIdentityCenterOptions = std::forward<IamIdentityCenterOptionsT>(value);
129 }
130 template <typename IamIdentityCenterOptionsT = IamIdentityCenterOptions>
131 GetApplicationResult& WithIamIdentityCenterOptions(IamIdentityCenterOptionsT&& value) {
132 SetIamIdentityCenterOptions(std::forward<IamIdentityCenterOptionsT>(value));
133 return *this;
134 }
136
138
141 inline const Aws::Vector<DataSource>& GetDataSources() const { return m_dataSources; }
142 template <typename DataSourcesT = Aws::Vector<DataSource>>
143 void SetDataSources(DataSourcesT&& value) {
144 m_dataSourcesHasBeenSet = true;
145 m_dataSources = std::forward<DataSourcesT>(value);
146 }
147 template <typename DataSourcesT = Aws::Vector<DataSource>>
148 GetApplicationResult& WithDataSources(DataSourcesT&& value) {
149 SetDataSources(std::forward<DataSourcesT>(value));
150 return *this;
151 }
152 template <typename DataSourcesT = DataSource>
153 GetApplicationResult& AddDataSources(DataSourcesT&& value) {
154 m_dataSourcesHasBeenSet = true;
155 m_dataSources.emplace_back(std::forward<DataSourcesT>(value));
156 return *this;
157 }
159
161
164 inline const Aws::Vector<AppConfig>& GetAppConfigs() const { return m_appConfigs; }
165 template <typename AppConfigsT = Aws::Vector<AppConfig>>
166 void SetAppConfigs(AppConfigsT&& value) {
167 m_appConfigsHasBeenSet = true;
168 m_appConfigs = std::forward<AppConfigsT>(value);
169 }
170 template <typename AppConfigsT = Aws::Vector<AppConfig>>
171 GetApplicationResult& WithAppConfigs(AppConfigsT&& value) {
172 SetAppConfigs(std::forward<AppConfigsT>(value));
173 return *this;
174 }
175 template <typename AppConfigsT = AppConfig>
176 GetApplicationResult& AddAppConfigs(AppConfigsT&& value) {
177 m_appConfigsHasBeenSet = true;
178 m_appConfigs.emplace_back(std::forward<AppConfigsT>(value));
179 return *this;
180 }
182
184
187 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
188 template <typename CreatedAtT = Aws::Utils::DateTime>
189 void SetCreatedAt(CreatedAtT&& value) {
190 m_createdAtHasBeenSet = true;
191 m_createdAt = std::forward<CreatedAtT>(value);
192 }
193 template <typename CreatedAtT = Aws::Utils::DateTime>
194 GetApplicationResult& WithCreatedAt(CreatedAtT&& value) {
195 SetCreatedAt(std::forward<CreatedAtT>(value));
196 return *this;
197 }
199
201
204 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
205 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
206 void SetLastUpdatedAt(LastUpdatedAtT&& value) {
207 m_lastUpdatedAtHasBeenSet = true;
208 m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value);
209 }
210 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
211 GetApplicationResult& WithLastUpdatedAt(LastUpdatedAtT&& value) {
212 SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value));
213 return *this;
214 }
216
218
222 inline const Aws::String& GetKmsKeyArn() const { return m_kmsKeyArn; }
223 template <typename KmsKeyArnT = Aws::String>
224 void SetKmsKeyArn(KmsKeyArnT&& value) {
225 m_kmsKeyArnHasBeenSet = true;
226 m_kmsKeyArn = std::forward<KmsKeyArnT>(value);
227 }
228 template <typename KmsKeyArnT = Aws::String>
229 GetApplicationResult& WithKmsKeyArn(KmsKeyArnT&& value) {
230 SetKmsKeyArn(std::forward<KmsKeyArnT>(value));
231 return *this;
232 }
234
236
237 inline const Aws::String& GetRequestId() const { return m_requestId; }
238 template <typename RequestIdT = Aws::String>
239 void SetRequestId(RequestIdT&& value) {
240 m_requestIdHasBeenSet = true;
241 m_requestId = std::forward<RequestIdT>(value);
242 }
243 template <typename RequestIdT = Aws::String>
244 GetApplicationResult& WithRequestId(RequestIdT&& value) {
245 SetRequestId(std::forward<RequestIdT>(value));
246 return *this;
247 }
249 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
250
251 private:
252 Aws::String m_id;
253
254 Aws::String m_arn;
255
256 Aws::String m_name;
257
258 Aws::String m_endpoint;
259
261
262 IamIdentityCenterOptions m_iamIdentityCenterOptions;
263
264 Aws::Vector<DataSource> m_dataSources;
265
266 Aws::Vector<AppConfig> m_appConfigs;
267
268 Aws::Utils::DateTime m_createdAt{};
269
270 Aws::Utils::DateTime m_lastUpdatedAt{};
271
272 Aws::String m_kmsKeyArn;
273
274 Aws::String m_requestId;
275 Aws::Http::HttpResponseCode m_HttpResponseCode;
276 bool m_idHasBeenSet = false;
277 bool m_arnHasBeenSet = false;
278 bool m_nameHasBeenSet = false;
279 bool m_endpointHasBeenSet = false;
280 bool m_statusHasBeenSet = false;
281 bool m_iamIdentityCenterOptionsHasBeenSet = false;
282 bool m_dataSourcesHasBeenSet = false;
283 bool m_appConfigsHasBeenSet = false;
284 bool m_createdAtHasBeenSet = false;
285 bool m_lastUpdatedAtHasBeenSet = false;
286 bool m_kmsKeyArnHasBeenSet = false;
287 bool m_requestIdHasBeenSet = false;
288};
289
290} // namespace Model
291} // namespace OpenSearchService
292} // 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::Http::HttpResponseCode GetHttpResponseCode() const
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