AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
Service.h
1
6#pragma once
7#include <aws/apprunner/AppRunner_EXPORTS.h>
8#include <aws/apprunner/model/AutoScalingConfigurationSummary.h>
9#include <aws/apprunner/model/EncryptionConfiguration.h>
10#include <aws/apprunner/model/HealthCheckConfiguration.h>
11#include <aws/apprunner/model/InstanceConfiguration.h>
12#include <aws/apprunner/model/NetworkConfiguration.h>
13#include <aws/apprunner/model/ServiceObservabilityConfiguration.h>
14#include <aws/apprunner/model/ServiceStatus.h>
15#include <aws/apprunner/model/SourceConfiguration.h>
16#include <aws/core/utils/DateTime.h>
17#include <aws/core/utils/memory/stl/AWSString.h>
18
19#include <utility>
20
21namespace Aws {
22namespace Utils {
23namespace Json {
24class JsonValue;
25class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace AppRunner {
29namespace Model {
30
48class Service {
49 public:
50 AWS_APPRUNNER_API Service() = default;
51 AWS_APPRUNNER_API Service(Aws::Utils::Json::JsonView jsonValue);
52 AWS_APPRUNNER_API Service& operator=(Aws::Utils::Json::JsonView jsonValue);
53 AWS_APPRUNNER_API Aws::Utils::Json::JsonValue Jsonize() const;
54
56
59 inline const Aws::String& GetServiceName() const { return m_serviceName; }
60 inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
61 template <typename ServiceNameT = Aws::String>
62 void SetServiceName(ServiceNameT&& value) {
63 m_serviceNameHasBeenSet = true;
64 m_serviceName = std::forward<ServiceNameT>(value);
65 }
66 template <typename ServiceNameT = Aws::String>
67 Service& WithServiceName(ServiceNameT&& value) {
68 SetServiceName(std::forward<ServiceNameT>(value));
69 return *this;
70 }
72
74
78 inline const Aws::String& GetServiceId() const { return m_serviceId; }
79 inline bool ServiceIdHasBeenSet() const { return m_serviceIdHasBeenSet; }
80 template <typename ServiceIdT = Aws::String>
81 void SetServiceId(ServiceIdT&& value) {
82 m_serviceIdHasBeenSet = true;
83 m_serviceId = std::forward<ServiceIdT>(value);
84 }
85 template <typename ServiceIdT = Aws::String>
86 Service& WithServiceId(ServiceIdT&& value) {
87 SetServiceId(std::forward<ServiceIdT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetServiceArn() const { return m_serviceArn; }
97 inline bool ServiceArnHasBeenSet() const { return m_serviceArnHasBeenSet; }
98 template <typename ServiceArnT = Aws::String>
99 void SetServiceArn(ServiceArnT&& value) {
100 m_serviceArnHasBeenSet = true;
101 m_serviceArn = std::forward<ServiceArnT>(value);
102 }
103 template <typename ServiceArnT = Aws::String>
104 Service& WithServiceArn(ServiceArnT&& value) {
105 SetServiceArn(std::forward<ServiceArnT>(value));
106 return *this;
107 }
109
111
115 inline const Aws::String& GetServiceUrl() const { return m_serviceUrl; }
116 inline bool ServiceUrlHasBeenSet() const { return m_serviceUrlHasBeenSet; }
117 template <typename ServiceUrlT = Aws::String>
118 void SetServiceUrl(ServiceUrlT&& value) {
119 m_serviceUrlHasBeenSet = true;
120 m_serviceUrl = std::forward<ServiceUrlT>(value);
121 }
122 template <typename ServiceUrlT = Aws::String>
123 Service& WithServiceUrl(ServiceUrlT&& value) {
124 SetServiceUrl(std::forward<ServiceUrlT>(value));
125 return *this;
126 }
128
130
134 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
135 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
136 template <typename CreatedAtT = Aws::Utils::DateTime>
137 void SetCreatedAt(CreatedAtT&& value) {
138 m_createdAtHasBeenSet = true;
139 m_createdAt = std::forward<CreatedAtT>(value);
140 }
141 template <typename CreatedAtT = Aws::Utils::DateTime>
142 Service& WithCreatedAt(CreatedAtT&& value) {
143 SetCreatedAt(std::forward<CreatedAtT>(value));
144 return *this;
145 }
147
149
153 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
154 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
155 template <typename UpdatedAtT = Aws::Utils::DateTime>
156 void SetUpdatedAt(UpdatedAtT&& value) {
157 m_updatedAtHasBeenSet = true;
158 m_updatedAt = std::forward<UpdatedAtT>(value);
159 }
160 template <typename UpdatedAtT = Aws::Utils::DateTime>
161 Service& WithUpdatedAt(UpdatedAtT&& value) {
162 SetUpdatedAt(std::forward<UpdatedAtT>(value));
163 return *this;
164 }
166
168
172 inline const Aws::Utils::DateTime& GetDeletedAt() const { return m_deletedAt; }
173 inline bool DeletedAtHasBeenSet() const { return m_deletedAtHasBeenSet; }
174 template <typename DeletedAtT = Aws::Utils::DateTime>
175 void SetDeletedAt(DeletedAtT&& value) {
176 m_deletedAtHasBeenSet = true;
177 m_deletedAt = std::forward<DeletedAtT>(value);
178 }
179 template <typename DeletedAtT = Aws::Utils::DateTime>
180 Service& WithDeletedAt(DeletedAtT&& value) {
181 SetDeletedAt(std::forward<DeletedAtT>(value));
182 return *this;
183 }
185
187
197 inline ServiceStatus GetStatus() const { return m_status; }
198 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
199 inline void SetStatus(ServiceStatus value) {
200 m_statusHasBeenSet = true;
201 m_status = value;
202 }
204 SetStatus(value);
205 return *this;
206 }
208
210
214 inline const SourceConfiguration& GetSourceConfiguration() const { return m_sourceConfiguration; }
215 inline bool SourceConfigurationHasBeenSet() const { return m_sourceConfigurationHasBeenSet; }
216 template <typename SourceConfigurationT = SourceConfiguration>
217 void SetSourceConfiguration(SourceConfigurationT&& value) {
218 m_sourceConfigurationHasBeenSet = true;
219 m_sourceConfiguration = std::forward<SourceConfigurationT>(value);
220 }
221 template <typename SourceConfigurationT = SourceConfiguration>
222 Service& WithSourceConfiguration(SourceConfigurationT&& value) {
223 SetSourceConfiguration(std::forward<SourceConfigurationT>(value));
224 return *this;
225 }
227
229
232 inline const InstanceConfiguration& GetInstanceConfiguration() const { return m_instanceConfiguration; }
233 inline bool InstanceConfigurationHasBeenSet() const { return m_instanceConfigurationHasBeenSet; }
234 template <typename InstanceConfigurationT = InstanceConfiguration>
235 void SetInstanceConfiguration(InstanceConfigurationT&& value) {
236 m_instanceConfigurationHasBeenSet = true;
237 m_instanceConfiguration = std::forward<InstanceConfigurationT>(value);
238 }
239 template <typename InstanceConfigurationT = InstanceConfiguration>
240 Service& WithInstanceConfiguration(InstanceConfigurationT&& value) {
241 SetInstanceConfiguration(std::forward<InstanceConfigurationT>(value));
242 return *this;
243 }
245
247
253 inline const EncryptionConfiguration& GetEncryptionConfiguration() const { return m_encryptionConfiguration; }
254 inline bool EncryptionConfigurationHasBeenSet() const { return m_encryptionConfigurationHasBeenSet; }
255 template <typename EncryptionConfigurationT = EncryptionConfiguration>
256 void SetEncryptionConfiguration(EncryptionConfigurationT&& value) {
257 m_encryptionConfigurationHasBeenSet = true;
258 m_encryptionConfiguration = std::forward<EncryptionConfigurationT>(value);
259 }
260 template <typename EncryptionConfigurationT = EncryptionConfiguration>
261 Service& WithEncryptionConfiguration(EncryptionConfigurationT&& value) {
262 SetEncryptionConfiguration(std::forward<EncryptionConfigurationT>(value));
263 return *this;
264 }
266
268
272 inline const HealthCheckConfiguration& GetHealthCheckConfiguration() const { return m_healthCheckConfiguration; }
273 inline bool HealthCheckConfigurationHasBeenSet() const { return m_healthCheckConfigurationHasBeenSet; }
274 template <typename HealthCheckConfigurationT = HealthCheckConfiguration>
275 void SetHealthCheckConfiguration(HealthCheckConfigurationT&& value) {
276 m_healthCheckConfigurationHasBeenSet = true;
277 m_healthCheckConfiguration = std::forward<HealthCheckConfigurationT>(value);
278 }
279 template <typename HealthCheckConfigurationT = HealthCheckConfiguration>
280 Service& WithHealthCheckConfiguration(HealthCheckConfigurationT&& value) {
281 SetHealthCheckConfiguration(std::forward<HealthCheckConfigurationT>(value));
282 return *this;
283 }
285
287
291 inline const AutoScalingConfigurationSummary& GetAutoScalingConfigurationSummary() const { return m_autoScalingConfigurationSummary; }
292 inline bool AutoScalingConfigurationSummaryHasBeenSet() const { return m_autoScalingConfigurationSummaryHasBeenSet; }
293 template <typename AutoScalingConfigurationSummaryT = AutoScalingConfigurationSummary>
294 void SetAutoScalingConfigurationSummary(AutoScalingConfigurationSummaryT&& value) {
295 m_autoScalingConfigurationSummaryHasBeenSet = true;
296 m_autoScalingConfigurationSummary = std::forward<AutoScalingConfigurationSummaryT>(value);
297 }
298 template <typename AutoScalingConfigurationSummaryT = AutoScalingConfigurationSummary>
299 Service& WithAutoScalingConfigurationSummary(AutoScalingConfigurationSummaryT&& value) {
300 SetAutoScalingConfigurationSummary(std::forward<AutoScalingConfigurationSummaryT>(value));
301 return *this;
302 }
304
306
310 inline const NetworkConfiguration& GetNetworkConfiguration() const { return m_networkConfiguration; }
311 inline bool NetworkConfigurationHasBeenSet() const { return m_networkConfigurationHasBeenSet; }
312 template <typename NetworkConfigurationT = NetworkConfiguration>
313 void SetNetworkConfiguration(NetworkConfigurationT&& value) {
314 m_networkConfigurationHasBeenSet = true;
315 m_networkConfiguration = std::forward<NetworkConfigurationT>(value);
316 }
317 template <typename NetworkConfigurationT = NetworkConfiguration>
318 Service& WithNetworkConfiguration(NetworkConfigurationT&& value) {
319 SetNetworkConfiguration(std::forward<NetworkConfigurationT>(value));
320 return *this;
321 }
323
325
328 inline const ServiceObservabilityConfiguration& GetObservabilityConfiguration() const { return m_observabilityConfiguration; }
329 inline bool ObservabilityConfigurationHasBeenSet() const { return m_observabilityConfigurationHasBeenSet; }
330 template <typename ObservabilityConfigurationT = ServiceObservabilityConfiguration>
331 void SetObservabilityConfiguration(ObservabilityConfigurationT&& value) {
332 m_observabilityConfigurationHasBeenSet = true;
333 m_observabilityConfiguration = std::forward<ObservabilityConfigurationT>(value);
334 }
335 template <typename ObservabilityConfigurationT = ServiceObservabilityConfiguration>
336 Service& WithObservabilityConfiguration(ObservabilityConfigurationT&& value) {
337 SetObservabilityConfiguration(std::forward<ObservabilityConfigurationT>(value));
338 return *this;
339 }
341 private:
342 Aws::String m_serviceName;
343
344 Aws::String m_serviceId;
345
346 Aws::String m_serviceArn;
347
348 Aws::String m_serviceUrl;
349
350 Aws::Utils::DateTime m_createdAt{};
351
352 Aws::Utils::DateTime m_updatedAt{};
353
354 Aws::Utils::DateTime m_deletedAt{};
355
357
358 SourceConfiguration m_sourceConfiguration;
359
360 InstanceConfiguration m_instanceConfiguration;
361
362 EncryptionConfiguration m_encryptionConfiguration;
363
364 HealthCheckConfiguration m_healthCheckConfiguration;
365
366 AutoScalingConfigurationSummary m_autoScalingConfigurationSummary;
367
368 NetworkConfiguration m_networkConfiguration;
369
370 ServiceObservabilityConfiguration m_observabilityConfiguration;
371 bool m_serviceNameHasBeenSet = false;
372 bool m_serviceIdHasBeenSet = false;
373 bool m_serviceArnHasBeenSet = false;
374 bool m_serviceUrlHasBeenSet = false;
375 bool m_createdAtHasBeenSet = false;
376 bool m_updatedAtHasBeenSet = false;
377 bool m_deletedAtHasBeenSet = false;
378 bool m_statusHasBeenSet = false;
379 bool m_sourceConfigurationHasBeenSet = false;
380 bool m_instanceConfigurationHasBeenSet = false;
381 bool m_encryptionConfigurationHasBeenSet = false;
382 bool m_healthCheckConfigurationHasBeenSet = false;
383 bool m_autoScalingConfigurationSummaryHasBeenSet = false;
384 bool m_networkConfigurationHasBeenSet = false;
385 bool m_observabilityConfigurationHasBeenSet = false;
386};
387
388} // namespace Model
389} // namespace AppRunner
390} // namespace Aws
const EncryptionConfiguration & GetEncryptionConfiguration() const
Definition Service.h:253
Service & WithAutoScalingConfigurationSummary(AutoScalingConfigurationSummaryT &&value)
Definition Service.h:299
const Aws::String & GetServiceUrl() const
Definition Service.h:115
Service & WithServiceUrl(ServiceUrlT &&value)
Definition Service.h:123
const ServiceObservabilityConfiguration & GetObservabilityConfiguration() const
Definition Service.h:328
bool NetworkConfigurationHasBeenSet() const
Definition Service.h:311
Service & WithServiceName(ServiceNameT &&value)
Definition Service.h:67
Service & WithServiceArn(ServiceArnT &&value)
Definition Service.h:104
Service & WithHealthCheckConfiguration(HealthCheckConfigurationT &&value)
Definition Service.h:280
Service & WithUpdatedAt(UpdatedAtT &&value)
Definition Service.h:161
bool SourceConfigurationHasBeenSet() const
Definition Service.h:215
const HealthCheckConfiguration & GetHealthCheckConfiguration() const
Definition Service.h:272
const Aws::Utils::DateTime & GetUpdatedAt() const
Definition Service.h:153
const Aws::Utils::DateTime & GetDeletedAt() const
Definition Service.h:172
void SetStatus(ServiceStatus value)
Definition Service.h:199
Service & WithEncryptionConfiguration(EncryptionConfigurationT &&value)
Definition Service.h:261
Service & WithNetworkConfiguration(NetworkConfigurationT &&value)
Definition Service.h:318
void SetServiceUrl(ServiceUrlT &&value)
Definition Service.h:118
Service & WithDeletedAt(DeletedAtT &&value)
Definition Service.h:180
void SetHealthCheckConfiguration(HealthCheckConfigurationT &&value)
Definition Service.h:275
const Aws::String & GetServiceName() const
Definition Service.h:59
void SetAutoScalingConfigurationSummary(AutoScalingConfigurationSummaryT &&value)
Definition Service.h:294
bool EncryptionConfigurationHasBeenSet() const
Definition Service.h:254
Service & WithInstanceConfiguration(InstanceConfigurationT &&value)
Definition Service.h:240
bool DeletedAtHasBeenSet() const
Definition Service.h:173
AWS_APPRUNNER_API Service()=default
Service & WithServiceId(ServiceIdT &&value)
Definition Service.h:86
Service & WithSourceConfiguration(SourceConfigurationT &&value)
Definition Service.h:222
bool ServiceUrlHasBeenSet() const
Definition Service.h:116
bool AutoScalingConfigurationSummaryHasBeenSet() const
Definition Service.h:292
bool ServiceNameHasBeenSet() const
Definition Service.h:60
void SetEncryptionConfiguration(EncryptionConfigurationT &&value)
Definition Service.h:256
const InstanceConfiguration & GetInstanceConfiguration() const
Definition Service.h:232
bool ServiceArnHasBeenSet() const
Definition Service.h:97
const Aws::String & GetServiceId() const
Definition Service.h:78
void SetServiceArn(ServiceArnT &&value)
Definition Service.h:99
void SetUpdatedAt(UpdatedAtT &&value)
Definition Service.h:156
void SetDeletedAt(DeletedAtT &&value)
Definition Service.h:175
Service & WithCreatedAt(CreatedAtT &&value)
Definition Service.h:142
const NetworkConfiguration & GetNetworkConfiguration() const
Definition Service.h:310
bool InstanceConfigurationHasBeenSet() const
Definition Service.h:233
bool ServiceIdHasBeenSet() const
Definition Service.h:79
void SetInstanceConfiguration(InstanceConfigurationT &&value)
Definition Service.h:235
const Aws::String & GetServiceArn() const
Definition Service.h:96
const AutoScalingConfigurationSummary & GetAutoScalingConfigurationSummary() const
Definition Service.h:291
void SetCreatedAt(CreatedAtT &&value)
Definition Service.h:137
ServiceStatus GetStatus() const
Definition Service.h:197
AWS_APPRUNNER_API Service(Aws::Utils::Json::JsonView jsonValue)
AWS_APPRUNNER_API Service & operator=(Aws::Utils::Json::JsonView jsonValue)
const SourceConfiguration & GetSourceConfiguration() const
Definition Service.h:214
void SetServiceId(ServiceIdT &&value)
Definition Service.h:81
Service & WithStatus(ServiceStatus value)
Definition Service.h:203
void SetServiceName(ServiceNameT &&value)
Definition Service.h:62
AWS_APPRUNNER_API Aws::Utils::Json::JsonValue Jsonize() const
bool CreatedAtHasBeenSet() const
Definition Service.h:135
const Aws::Utils::DateTime & GetCreatedAt() const
Definition Service.h:134
void SetObservabilityConfiguration(ObservabilityConfigurationT &&value)
Definition Service.h:331
bool ObservabilityConfigurationHasBeenSet() const
Definition Service.h:329
bool UpdatedAtHasBeenSet() const
Definition Service.h:154
void SetNetworkConfiguration(NetworkConfigurationT &&value)
Definition Service.h:313
void SetSourceConfiguration(SourceConfigurationT &&value)
Definition Service.h:217
bool HealthCheckConfigurationHasBeenSet() const
Definition Service.h:273
Service & WithObservabilityConfiguration(ObservabilityConfigurationT &&value)
Definition Service.h:336
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue