AWS SDK for C++

AWS SDK for C++ Version 1.11.782

Loading...
Searching...
No Matches
UpdateApplicationResult.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
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 UpdateApplicationResult() = 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 UpdateApplicationResult& WithIamIdentityCenterOptions(IamIdentityCenterOptionsT&& value) {
120 SetIamIdentityCenterOptions(std::forward<IamIdentityCenterOptionsT>(value));
121 return *this;
122 }
124
126
129 inline const Aws::Vector<AppConfig>& GetAppConfigs() const { return m_appConfigs; }
130 template <typename AppConfigsT = Aws::Vector<AppConfig>>
131 void SetAppConfigs(AppConfigsT&& value) {
132 m_appConfigsHasBeenSet = true;
133 m_appConfigs = std::forward<AppConfigsT>(value);
134 }
135 template <typename AppConfigsT = Aws::Vector<AppConfig>>
137 SetAppConfigs(std::forward<AppConfigsT>(value));
138 return *this;
139 }
140 template <typename AppConfigsT = AppConfig>
142 m_appConfigsHasBeenSet = true;
143 m_appConfigs.emplace_back(std::forward<AppConfigsT>(value));
144 return *this;
145 }
147
149
152 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
153 template <typename CreatedAtT = Aws::Utils::DateTime>
154 void SetCreatedAt(CreatedAtT&& value) {
155 m_createdAtHasBeenSet = true;
156 m_createdAt = std::forward<CreatedAtT>(value);
157 }
158 template <typename CreatedAtT = Aws::Utils::DateTime>
160 SetCreatedAt(std::forward<CreatedAtT>(value));
161 return *this;
162 }
164
166
169 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
170 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
171 void SetLastUpdatedAt(LastUpdatedAtT&& value) {
172 m_lastUpdatedAtHasBeenSet = true;
173 m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value);
174 }
175 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
177 SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value));
178 return *this;
179 }
181
183
184 inline const Aws::String& GetRequestId() const { return m_requestId; }
185 template <typename RequestIdT = Aws::String>
186 void SetRequestId(RequestIdT&& value) {
187 m_requestIdHasBeenSet = true;
188 m_requestId = std::forward<RequestIdT>(value);
189 }
190 template <typename RequestIdT = Aws::String>
192 SetRequestId(std::forward<RequestIdT>(value));
193 return *this;
194 }
196 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
197
198 private:
199 Aws::String m_id;
200
201 Aws::String m_name;
202
203 Aws::String m_arn;
204
205 Aws::Vector<DataSource> m_dataSources;
206
207 IamIdentityCenterOptions m_iamIdentityCenterOptions;
208
209 Aws::Vector<AppConfig> m_appConfigs;
210
211 Aws::Utils::DateTime m_createdAt{};
212
213 Aws::Utils::DateTime m_lastUpdatedAt{};
214
215 Aws::String m_requestId;
216 Aws::Http::HttpResponseCode m_HttpResponseCode;
217 bool m_idHasBeenSet = false;
218 bool m_nameHasBeenSet = false;
219 bool m_arnHasBeenSet = false;
220 bool m_dataSourcesHasBeenSet = false;
221 bool m_iamIdentityCenterOptionsHasBeenSet = false;
222 bool m_appConfigsHasBeenSet = false;
223 bool m_createdAtHasBeenSet = false;
224 bool m_lastUpdatedAtHasBeenSet = false;
225 bool m_requestIdHasBeenSet = false;
226};
227
228} // namespace Model
229} // namespace OpenSearchService
230} // namespace Aws
UpdateApplicationResult & AddAppConfigs(AppConfigsT &&value)
UpdateApplicationResult & WithLastUpdatedAt(LastUpdatedAtT &&value)
const IamIdentityCenterOptions & GetIamIdentityCenterOptions() const
UpdateApplicationResult & AddDataSources(DataSourcesT &&value)
UpdateApplicationResult & WithRequestId(RequestIdT &&value)
AWS_OPENSEARCHSERVICE_API UpdateApplicationResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdateApplicationResult & WithAppConfigs(AppConfigsT &&value)
void SetIamIdentityCenterOptions(IamIdentityCenterOptionsT &&value)
UpdateApplicationResult & WithDataSources(DataSourcesT &&value)
UpdateApplicationResult & WithCreatedAt(CreatedAtT &&value)
const Aws::Vector< DataSource > & GetDataSources() const
AWS_OPENSEARCHSERVICE_API UpdateApplicationResult()=default
AWS_OPENSEARCHSERVICE_API UpdateApplicationResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdateApplicationResult & WithIamIdentityCenterOptions(IamIdentityCenterOptionsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue