AWS SDK for C++

AWS SDK for C++ Version 1.11.942

Loading...
Searching...
No Matches
GetAppResult.h
1
6#pragma once
7#include <aws/amplifygen3/AmplifyGen3_EXPORTS.h>
8#include <aws/amplifygen3/model/AppBackend.h>
9#include <aws/amplifygen3/model/AppSourceConfig.h>
10#include <aws/amplifygen3/model/AppWebConfig.h>
11#include <aws/amplifygen3/model/WafConfig.h>
12#include <aws/core/http/HttpResponse.h>
13#include <aws/core/utils/DateTime.h>
14#include <aws/core/utils/memory/stl/AWSString.h>
15#include <aws/core/utils/memory/stl/AWSVector.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 AmplifyGen3 {
29namespace Model {
31 public:
32 AWS_AMPLIFYGEN3_API GetAppResult() = default;
35
37
40 inline const Aws::String& GetAppName() const { return m_appName; }
41 template <typename AppNameT = Aws::String>
42 void SetAppName(AppNameT&& value) {
43 m_appNameHasBeenSet = true;
44 m_appName = std::forward<AppNameT>(value);
45 }
46 template <typename AppNameT = Aws::String>
47 GetAppResult& WithAppName(AppNameT&& value) {
48 SetAppName(std::forward<AppNameT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetAppArn() const { return m_appArn; }
58 template <typename AppArnT = Aws::String>
59 void SetAppArn(AppArnT&& value) {
60 m_appArnHasBeenSet = true;
61 m_appArn = std::forward<AppArnT>(value);
62 }
63 template <typename AppArnT = Aws::String>
64 GetAppResult& WithAppArn(AppArnT&& value) {
65 SetAppArn(std::forward<AppArnT>(value));
66 return *this;
67 }
69
71
74 inline const AppSourceConfig& GetSourceConfig() const { return m_sourceConfig; }
75 template <typename SourceConfigT = AppSourceConfig>
76 void SetSourceConfig(SourceConfigT&& value) {
77 m_sourceConfigHasBeenSet = true;
78 m_sourceConfig = std::forward<SourceConfigT>(value);
79 }
80 template <typename SourceConfigT = AppSourceConfig>
81 GetAppResult& WithSourceConfig(SourceConfigT&& value) {
82 SetSourceConfig(std::forward<SourceConfigT>(value));
83 return *this;
84 }
86
88
91 inline const AppWebConfig& GetWeb() const { return m_web; }
92 template <typename WebT = AppWebConfig>
93 void SetWeb(WebT&& value) {
94 m_webHasBeenSet = true;
95 m_web = std::forward<WebT>(value);
96 }
97 template <typename WebT = AppWebConfig>
98 GetAppResult& WithWeb(WebT&& value) {
99 SetWeb(std::forward<WebT>(value));
100 return *this;
101 }
103
105
109 inline const AppBackend& GetBackend() const { return m_backend; }
110 template <typename BackendT = AppBackend>
111 void SetBackend(BackendT&& value) {
112 m_backendHasBeenSet = true;
113 m_backend = std::forward<BackendT>(value);
114 }
115 template <typename BackendT = AppBackend>
116 GetAppResult& WithBackend(BackendT&& value) {
117 SetBackend(std::forward<BackendT>(value));
118 return *this;
119 }
121
123
127 inline const Aws::Vector<WafConfig>& GetWafConfigs() const { return m_wafConfigs; }
128 template <typename WafConfigsT = Aws::Vector<WafConfig>>
129 void SetWafConfigs(WafConfigsT&& value) {
130 m_wafConfigsHasBeenSet = true;
131 m_wafConfigs = std::forward<WafConfigsT>(value);
132 }
133 template <typename WafConfigsT = Aws::Vector<WafConfig>>
134 GetAppResult& WithWafConfigs(WafConfigsT&& value) {
135 SetWafConfigs(std::forward<WafConfigsT>(value));
136 return *this;
137 }
138 template <typename WafConfigsT = WafConfig>
139 GetAppResult& AddWafConfigs(WafConfigsT&& value) {
140 m_wafConfigsHasBeenSet = true;
141 m_wafConfigs.emplace_back(std::forward<WafConfigsT>(value));
142 return *this;
143 }
145
147
150 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
151 template <typename CreatedAtT = Aws::Utils::DateTime>
152 void SetCreatedAt(CreatedAtT&& value) {
153 m_createdAtHasBeenSet = true;
154 m_createdAt = std::forward<CreatedAtT>(value);
155 }
156 template <typename CreatedAtT = Aws::Utils::DateTime>
157 GetAppResult& WithCreatedAt(CreatedAtT&& value) {
158 SetCreatedAt(std::forward<CreatedAtT>(value));
159 return *this;
160 }
162
164
168 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
169 template <typename UpdatedAtT = Aws::Utils::DateTime>
170 void SetUpdatedAt(UpdatedAtT&& value) {
171 m_updatedAtHasBeenSet = true;
172 m_updatedAt = std::forward<UpdatedAtT>(value);
173 }
174 template <typename UpdatedAtT = Aws::Utils::DateTime>
175 GetAppResult& WithUpdatedAt(UpdatedAtT&& value) {
176 SetUpdatedAt(std::forward<UpdatedAtT>(value));
177 return *this;
178 }
180
182
183 inline const Aws::String& GetRequestId() const { return m_requestId; }
184 template <typename RequestIdT = Aws::String>
185 void SetRequestId(RequestIdT&& value) {
186 m_requestIdHasBeenSet = true;
187 m_requestId = std::forward<RequestIdT>(value);
188 }
189 template <typename RequestIdT = Aws::String>
190 GetAppResult& WithRequestId(RequestIdT&& value) {
191 SetRequestId(std::forward<RequestIdT>(value));
192 return *this;
193 }
195 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
196
197 private:
198 Aws::String m_appName;
199
200 Aws::String m_appArn;
201
202 AppSourceConfig m_sourceConfig;
203
204 AppWebConfig m_web;
205
206 AppBackend m_backend;
207
208 Aws::Vector<WafConfig> m_wafConfigs;
209
210 Aws::Utils::DateTime m_createdAt{};
211
212 Aws::Utils::DateTime m_updatedAt{};
213
214 Aws::String m_requestId;
215 Aws::Http::HttpResponseCode m_HttpResponseCode;
216 bool m_appNameHasBeenSet = false;
217 bool m_appArnHasBeenSet = false;
218 bool m_sourceConfigHasBeenSet = false;
219 bool m_webHasBeenSet = false;
220 bool m_backendHasBeenSet = false;
221 bool m_wafConfigsHasBeenSet = false;
222 bool m_createdAtHasBeenSet = false;
223 bool m_updatedAtHasBeenSet = false;
224 bool m_requestIdHasBeenSet = false;
225};
226
227} // namespace Model
228} // namespace AmplifyGen3
229} // namespace Aws
const Aws::Vector< WafConfig > & GetWafConfigs() const
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const AppBackend & GetBackend() const
void SetAppName(AppNameT &&value)
GetAppResult & WithWafConfigs(WafConfigsT &&value)
AWS_AMPLIFYGEN3_API GetAppResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::String & GetAppName() const
GetAppResult & WithRequestId(RequestIdT &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
void SetWafConfigs(WafConfigsT &&value)
GetAppResult & WithAppName(AppNameT &&value)
void SetUpdatedAt(UpdatedAtT &&value)
AWS_AMPLIFYGEN3_API GetAppResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetAppResult & WithUpdatedAt(UpdatedAtT &&value)
void SetCreatedAt(CreatedAtT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
GetAppResult & AddWafConfigs(WafConfigsT &&value)
const AppWebConfig & GetWeb() const
const Aws::String & GetAppArn() const
void SetRequestId(RequestIdT &&value)
GetAppResult & WithCreatedAt(CreatedAtT &&value)
void SetSourceConfig(SourceConfigT &&value)
GetAppResult & WithSourceConfig(SourceConfigT &&value)
GetAppResult & WithBackend(BackendT &&value)
AWS_AMPLIFYGEN3_API GetAppResult()=default
GetAppResult & WithWeb(WebT &&value)
GetAppResult & WithAppArn(AppArnT &&value)
const Aws::String & GetRequestId() const
const AppSourceConfig & GetSourceConfig() 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