AWS SDK for C++

AWS SDK for C++ Version 1.11.942

Loading...
Searching...
No Matches
EnvironmentSummary.h
1
6#pragma once
7#include <aws/amplifygen3/AmplifyGen3_EXPORTS.h>
8#include <aws/amplifygen3/model/EnvironmentBackendSummary.h>
9#include <aws/amplifygen3/model/EnvironmentSourceConfig.h>
10#include <aws/amplifygen3/model/EnvironmentType.h>
11#include <aws/amplifygen3/model/EnvironmentWebConfigSummary.h>
12#include <aws/amplifygen3/model/WafLogConfig.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 {
20namespace Utils {
21namespace Json {
22class JsonValue;
23class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace AmplifyGen3 {
27namespace Model {
28
35 public:
36 AWS_AMPLIFYGEN3_API EnvironmentSummary() = default;
37 AWS_AMPLIFYGEN3_API EnvironmentSummary(Aws::Utils::Json::JsonView jsonValue);
39 AWS_AMPLIFYGEN3_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
45 inline const Aws::String& GetAppName() const { return m_appName; }
46 inline bool AppNameHasBeenSet() const { return m_appNameHasBeenSet; }
47 template <typename AppNameT = Aws::String>
48 void SetAppName(AppNameT&& value) {
49 m_appNameHasBeenSet = true;
50 m_appName = std::forward<AppNameT>(value);
51 }
52 template <typename AppNameT = Aws::String>
53 EnvironmentSummary& WithAppName(AppNameT&& value) {
54 SetAppName(std::forward<AppNameT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetEnvironmentName() const { return m_environmentName; }
64 inline bool EnvironmentNameHasBeenSet() const { return m_environmentNameHasBeenSet; }
65 template <typename EnvironmentNameT = Aws::String>
66 void SetEnvironmentName(EnvironmentNameT&& value) {
67 m_environmentNameHasBeenSet = true;
68 m_environmentName = std::forward<EnvironmentNameT>(value);
69 }
70 template <typename EnvironmentNameT = Aws::String>
71 EnvironmentSummary& WithEnvironmentName(EnvironmentNameT&& value) {
72 SetEnvironmentName(std::forward<EnvironmentNameT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetEnvironmentArn() const { return m_environmentArn; }
82 inline bool EnvironmentArnHasBeenSet() const { return m_environmentArnHasBeenSet; }
83 template <typename EnvironmentArnT = Aws::String>
84 void SetEnvironmentArn(EnvironmentArnT&& value) {
85 m_environmentArnHasBeenSet = true;
86 m_environmentArn = std::forward<EnvironmentArnT>(value);
87 }
88 template <typename EnvironmentArnT = Aws::String>
89 EnvironmentSummary& WithEnvironmentArn(EnvironmentArnT&& value) {
90 SetEnvironmentArn(std::forward<EnvironmentArnT>(value));
91 return *this;
92 }
94
96
99 inline EnvironmentType GetType() const { return m_type; }
100 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
101 inline void SetType(EnvironmentType value) {
102 m_typeHasBeenSet = true;
103 m_type = value;
104 }
106 SetType(value);
107 return *this;
108 }
110
112
115 inline const EnvironmentSourceConfig& GetSourceConfig() const { return m_sourceConfig; }
116 inline bool SourceConfigHasBeenSet() const { return m_sourceConfigHasBeenSet; }
117 template <typename SourceConfigT = EnvironmentSourceConfig>
118 void SetSourceConfig(SourceConfigT&& value) {
119 m_sourceConfigHasBeenSet = true;
120 m_sourceConfig = std::forward<SourceConfigT>(value);
121 }
122 template <typename SourceConfigT = EnvironmentSourceConfig>
123 EnvironmentSummary& WithSourceConfig(SourceConfigT&& value) {
124 SetSourceConfig(std::forward<SourceConfigT>(value));
125 return *this;
126 }
128
130
134 inline const Aws::Vector<WafLogConfig>& GetWafLogConfigs() const { return m_wafLogConfigs; }
135 inline bool WafLogConfigsHasBeenSet() const { return m_wafLogConfigsHasBeenSet; }
136 template <typename WafLogConfigsT = Aws::Vector<WafLogConfig>>
137 void SetWafLogConfigs(WafLogConfigsT&& value) {
138 m_wafLogConfigsHasBeenSet = true;
139 m_wafLogConfigs = std::forward<WafLogConfigsT>(value);
140 }
141 template <typename WafLogConfigsT = Aws::Vector<WafLogConfig>>
142 EnvironmentSummary& WithWafLogConfigs(WafLogConfigsT&& value) {
143 SetWafLogConfigs(std::forward<WafLogConfigsT>(value));
144 return *this;
145 }
146 template <typename WafLogConfigsT = WafLogConfig>
147 EnvironmentSummary& AddWafLogConfigs(WafLogConfigsT&& value) {
148 m_wafLogConfigsHasBeenSet = true;
149 m_wafLogConfigs.emplace_back(std::forward<WafLogConfigsT>(value));
150 return *this;
151 }
153
155
158 inline const EnvironmentWebConfigSummary& GetWeb() const { return m_web; }
159 inline bool WebHasBeenSet() const { return m_webHasBeenSet; }
160 template <typename WebT = EnvironmentWebConfigSummary>
161 void SetWeb(WebT&& value) {
162 m_webHasBeenSet = true;
163 m_web = std::forward<WebT>(value);
164 }
165 template <typename WebT = EnvironmentWebConfigSummary>
167 SetWeb(std::forward<WebT>(value));
168 return *this;
169 }
171
173
177 inline const EnvironmentBackendSummary& GetBackend() const { return m_backend; }
178 inline bool BackendHasBeenSet() const { return m_backendHasBeenSet; }
179 template <typename BackendT = EnvironmentBackendSummary>
180 void SetBackend(BackendT&& value) {
181 m_backendHasBeenSet = true;
182 m_backend = std::forward<BackendT>(value);
183 }
184 template <typename BackendT = EnvironmentBackendSummary>
185 EnvironmentSummary& WithBackend(BackendT&& value) {
186 SetBackend(std::forward<BackendT>(value));
187 return *this;
188 }
190
192
196 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
197 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
198 template <typename CreatedAtT = Aws::Utils::DateTime>
199 void SetCreatedAt(CreatedAtT&& value) {
200 m_createdAtHasBeenSet = true;
201 m_createdAt = std::forward<CreatedAtT>(value);
202 }
203 template <typename CreatedAtT = Aws::Utils::DateTime>
204 EnvironmentSummary& WithCreatedAt(CreatedAtT&& value) {
205 SetCreatedAt(std::forward<CreatedAtT>(value));
206 return *this;
207 }
209
211
215 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
216 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
217 template <typename UpdatedAtT = Aws::Utils::DateTime>
218 void SetUpdatedAt(UpdatedAtT&& value) {
219 m_updatedAtHasBeenSet = true;
220 m_updatedAt = std::forward<UpdatedAtT>(value);
221 }
222 template <typename UpdatedAtT = Aws::Utils::DateTime>
223 EnvironmentSummary& WithUpdatedAt(UpdatedAtT&& value) {
224 SetUpdatedAt(std::forward<UpdatedAtT>(value));
225 return *this;
226 }
228 private:
229 Aws::String m_appName;
230
231 Aws::String m_environmentName;
232
233 Aws::String m_environmentArn;
234
236
237 EnvironmentSourceConfig m_sourceConfig;
238
239 Aws::Vector<WafLogConfig> m_wafLogConfigs;
240
241 EnvironmentWebConfigSummary m_web;
242
243 EnvironmentBackendSummary m_backend;
244
245 Aws::Utils::DateTime m_createdAt{};
246
247 Aws::Utils::DateTime m_updatedAt{};
248 bool m_appNameHasBeenSet = false;
249 bool m_environmentNameHasBeenSet = false;
250 bool m_environmentArnHasBeenSet = false;
251 bool m_typeHasBeenSet = false;
252 bool m_sourceConfigHasBeenSet = false;
253 bool m_wafLogConfigsHasBeenSet = false;
254 bool m_webHasBeenSet = false;
255 bool m_backendHasBeenSet = false;
256 bool m_createdAtHasBeenSet = false;
257 bool m_updatedAtHasBeenSet = false;
258};
259
260} // namespace Model
261} // namespace AmplifyGen3
262} // namespace Aws
void SetEnvironmentName(EnvironmentNameT &&value)
EnvironmentSummary & WithAppName(AppNameT &&value)
EnvironmentSummary & WithUpdatedAt(UpdatedAtT &&value)
EnvironmentSummary & AddWafLogConfigs(WafLogConfigsT &&value)
AWS_AMPLIFYGEN3_API EnvironmentSummary(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetCreatedAt() const
EnvironmentSummary & WithType(EnvironmentType value)
EnvironmentSummary & WithWafLogConfigs(WafLogConfigsT &&value)
EnvironmentSummary & WithBackend(BackendT &&value)
EnvironmentSummary & WithCreatedAt(CreatedAtT &&value)
EnvironmentSummary & WithSourceConfig(SourceConfigT &&value)
AWS_AMPLIFYGEN3_API EnvironmentSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
const EnvironmentSourceConfig & GetSourceConfig() const
EnvironmentSummary & WithEnvironmentArn(EnvironmentArnT &&value)
AWS_AMPLIFYGEN3_API Aws::Utils::Json::JsonValue Jsonize() const
EnvironmentSummary & WithEnvironmentName(EnvironmentNameT &&value)
const Aws::Vector< WafLogConfig > & GetWafLogConfigs() const
AWS_AMPLIFYGEN3_API EnvironmentSummary()=default
void SetEnvironmentArn(EnvironmentArnT &&value)
const EnvironmentWebConfigSummary & GetWeb() const
const Aws::Utils::DateTime & GetUpdatedAt() const
const EnvironmentBackendSummary & GetBackend() const
EnvironmentSummary & WithWeb(WebT &&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