AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Service.h
1
6#pragma once
7#include <aws/apprunner/AppRunner_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/apprunner/model/ServiceStatus.h>
11#include <aws/apprunner/model/SourceConfiguration.h>
12#include <aws/apprunner/model/InstanceConfiguration.h>
13#include <aws/apprunner/model/EncryptionConfiguration.h>
14#include <aws/apprunner/model/HealthCheckConfiguration.h>
15#include <aws/apprunner/model/AutoScalingConfigurationSummary.h>
16#include <aws/apprunner/model/NetworkConfiguration.h>
17#include <aws/apprunner/model/ServiceObservabilityConfiguration.h>
18#include <utility>
19
20namespace Aws
21{
22namespace Utils
23{
24namespace Json
25{
26 class JsonValue;
27 class JsonView;
28} // namespace Json
29} // namespace Utils
30namespace AppRunner
31{
32namespace Model
33{
34
52 class Service
53 {
54 public:
55 AWS_APPRUNNER_API Service() = default;
56 AWS_APPRUNNER_API Service(Aws::Utils::Json::JsonView jsonValue);
57 AWS_APPRUNNER_API Service& operator=(Aws::Utils::Json::JsonView jsonValue);
58 AWS_APPRUNNER_API Aws::Utils::Json::JsonValue Jsonize() const;
59
60
62
65 inline const Aws::String& GetServiceName() const { return m_serviceName; }
66 inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
67 template<typename ServiceNameT = Aws::String>
68 void SetServiceName(ServiceNameT&& value) { m_serviceNameHasBeenSet = true; m_serviceName = std::forward<ServiceNameT>(value); }
69 template<typename ServiceNameT = Aws::String>
70 Service& WithServiceName(ServiceNameT&& value) { SetServiceName(std::forward<ServiceNameT>(value)); return *this;}
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) { m_serviceIdHasBeenSet = true; m_serviceId = std::forward<ServiceIdT>(value); }
82 template<typename ServiceIdT = Aws::String>
83 Service& WithServiceId(ServiceIdT&& value) { SetServiceId(std::forward<ServiceIdT>(value)); return *this;}
85
87
90 inline const Aws::String& GetServiceArn() const { return m_serviceArn; }
91 inline bool ServiceArnHasBeenSet() const { return m_serviceArnHasBeenSet; }
92 template<typename ServiceArnT = Aws::String>
93 void SetServiceArn(ServiceArnT&& value) { m_serviceArnHasBeenSet = true; m_serviceArn = std::forward<ServiceArnT>(value); }
94 template<typename ServiceArnT = Aws::String>
95 Service& WithServiceArn(ServiceArnT&& value) { SetServiceArn(std::forward<ServiceArnT>(value)); return *this;}
97
99
103 inline const Aws::String& GetServiceUrl() const { return m_serviceUrl; }
104 inline bool ServiceUrlHasBeenSet() const { return m_serviceUrlHasBeenSet; }
105 template<typename ServiceUrlT = Aws::String>
106 void SetServiceUrl(ServiceUrlT&& value) { m_serviceUrlHasBeenSet = true; m_serviceUrl = std::forward<ServiceUrlT>(value); }
107 template<typename ServiceUrlT = Aws::String>
108 Service& WithServiceUrl(ServiceUrlT&& value) { SetServiceUrl(std::forward<ServiceUrlT>(value)); return *this;}
110
112
116 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
117 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
118 template<typename CreatedAtT = Aws::Utils::DateTime>
119 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
120 template<typename CreatedAtT = Aws::Utils::DateTime>
121 Service& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
123
125
129 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
130 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
131 template<typename UpdatedAtT = Aws::Utils::DateTime>
132 void SetUpdatedAt(UpdatedAtT&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::forward<UpdatedAtT>(value); }
133 template<typename UpdatedAtT = Aws::Utils::DateTime>
134 Service& WithUpdatedAt(UpdatedAtT&& value) { SetUpdatedAt(std::forward<UpdatedAtT>(value)); return *this;}
136
138
142 inline const Aws::Utils::DateTime& GetDeletedAt() const { return m_deletedAt; }
143 inline bool DeletedAtHasBeenSet() const { return m_deletedAtHasBeenSet; }
144 template<typename DeletedAtT = Aws::Utils::DateTime>
145 void SetDeletedAt(DeletedAtT&& value) { m_deletedAtHasBeenSet = true; m_deletedAt = std::forward<DeletedAtT>(value); }
146 template<typename DeletedAtT = Aws::Utils::DateTime>
147 Service& WithDeletedAt(DeletedAtT&& value) { SetDeletedAt(std::forward<DeletedAtT>(value)); return *this;}
149
151
161 inline ServiceStatus GetStatus() const { return m_status; }
162 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
163 inline void SetStatus(ServiceStatus value) { m_statusHasBeenSet = true; m_status = value; }
164 inline Service& WithStatus(ServiceStatus value) { SetStatus(value); return *this;}
166
168
172 inline const SourceConfiguration& GetSourceConfiguration() const { return m_sourceConfiguration; }
173 inline bool SourceConfigurationHasBeenSet() const { return m_sourceConfigurationHasBeenSet; }
174 template<typename SourceConfigurationT = SourceConfiguration>
175 void SetSourceConfiguration(SourceConfigurationT&& value) { m_sourceConfigurationHasBeenSet = true; m_sourceConfiguration = std::forward<SourceConfigurationT>(value); }
176 template<typename SourceConfigurationT = SourceConfiguration>
177 Service& WithSourceConfiguration(SourceConfigurationT&& value) { SetSourceConfiguration(std::forward<SourceConfigurationT>(value)); return *this;}
179
181
184 inline const InstanceConfiguration& GetInstanceConfiguration() const { return m_instanceConfiguration; }
185 inline bool InstanceConfigurationHasBeenSet() const { return m_instanceConfigurationHasBeenSet; }
186 template<typename InstanceConfigurationT = InstanceConfiguration>
187 void SetInstanceConfiguration(InstanceConfigurationT&& value) { m_instanceConfigurationHasBeenSet = true; m_instanceConfiguration = std::forward<InstanceConfigurationT>(value); }
188 template<typename InstanceConfigurationT = InstanceConfiguration>
189 Service& WithInstanceConfiguration(InstanceConfigurationT&& value) { SetInstanceConfiguration(std::forward<InstanceConfigurationT>(value)); return *this;}
191
193
199 inline const EncryptionConfiguration& GetEncryptionConfiguration() const { return m_encryptionConfiguration; }
200 inline bool EncryptionConfigurationHasBeenSet() const { return m_encryptionConfigurationHasBeenSet; }
201 template<typename EncryptionConfigurationT = EncryptionConfiguration>
202 void SetEncryptionConfiguration(EncryptionConfigurationT&& value) { m_encryptionConfigurationHasBeenSet = true; m_encryptionConfiguration = std::forward<EncryptionConfigurationT>(value); }
203 template<typename EncryptionConfigurationT = EncryptionConfiguration>
204 Service& WithEncryptionConfiguration(EncryptionConfigurationT&& value) { SetEncryptionConfiguration(std::forward<EncryptionConfigurationT>(value)); return *this;}
206
208
212 inline const HealthCheckConfiguration& GetHealthCheckConfiguration() const { return m_healthCheckConfiguration; }
213 inline bool HealthCheckConfigurationHasBeenSet() const { return m_healthCheckConfigurationHasBeenSet; }
214 template<typename HealthCheckConfigurationT = HealthCheckConfiguration>
215 void SetHealthCheckConfiguration(HealthCheckConfigurationT&& value) { m_healthCheckConfigurationHasBeenSet = true; m_healthCheckConfiguration = std::forward<HealthCheckConfigurationT>(value); }
216 template<typename HealthCheckConfigurationT = HealthCheckConfiguration>
217 Service& WithHealthCheckConfiguration(HealthCheckConfigurationT&& value) { SetHealthCheckConfiguration(std::forward<HealthCheckConfigurationT>(value)); return *this;}
219
221
225 inline const AutoScalingConfigurationSummary& GetAutoScalingConfigurationSummary() const { return m_autoScalingConfigurationSummary; }
226 inline bool AutoScalingConfigurationSummaryHasBeenSet() const { return m_autoScalingConfigurationSummaryHasBeenSet; }
227 template<typename AutoScalingConfigurationSummaryT = AutoScalingConfigurationSummary>
228 void SetAutoScalingConfigurationSummary(AutoScalingConfigurationSummaryT&& value) { m_autoScalingConfigurationSummaryHasBeenSet = true; m_autoScalingConfigurationSummary = std::forward<AutoScalingConfigurationSummaryT>(value); }
229 template<typename AutoScalingConfigurationSummaryT = AutoScalingConfigurationSummary>
230 Service& WithAutoScalingConfigurationSummary(AutoScalingConfigurationSummaryT&& value) { SetAutoScalingConfigurationSummary(std::forward<AutoScalingConfigurationSummaryT>(value)); return *this;}
232
234
238 inline const NetworkConfiguration& GetNetworkConfiguration() const { return m_networkConfiguration; }
239 inline bool NetworkConfigurationHasBeenSet() const { return m_networkConfigurationHasBeenSet; }
240 template<typename NetworkConfigurationT = NetworkConfiguration>
241 void SetNetworkConfiguration(NetworkConfigurationT&& value) { m_networkConfigurationHasBeenSet = true; m_networkConfiguration = std::forward<NetworkConfigurationT>(value); }
242 template<typename NetworkConfigurationT = NetworkConfiguration>
243 Service& WithNetworkConfiguration(NetworkConfigurationT&& value) { SetNetworkConfiguration(std::forward<NetworkConfigurationT>(value)); return *this;}
245
247
250 inline const ServiceObservabilityConfiguration& GetObservabilityConfiguration() const { return m_observabilityConfiguration; }
251 inline bool ObservabilityConfigurationHasBeenSet() const { return m_observabilityConfigurationHasBeenSet; }
252 template<typename ObservabilityConfigurationT = ServiceObservabilityConfiguration>
253 void SetObservabilityConfiguration(ObservabilityConfigurationT&& value) { m_observabilityConfigurationHasBeenSet = true; m_observabilityConfiguration = std::forward<ObservabilityConfigurationT>(value); }
254 template<typename ObservabilityConfigurationT = ServiceObservabilityConfiguration>
255 Service& WithObservabilityConfiguration(ObservabilityConfigurationT&& value) { SetObservabilityConfiguration(std::forward<ObservabilityConfigurationT>(value)); return *this;}
257 private:
258
259 Aws::String m_serviceName;
260 bool m_serviceNameHasBeenSet = false;
261
262 Aws::String m_serviceId;
263 bool m_serviceIdHasBeenSet = false;
264
265 Aws::String m_serviceArn;
266 bool m_serviceArnHasBeenSet = false;
267
268 Aws::String m_serviceUrl;
269 bool m_serviceUrlHasBeenSet = false;
270
271 Aws::Utils::DateTime m_createdAt{};
272 bool m_createdAtHasBeenSet = false;
273
274 Aws::Utils::DateTime m_updatedAt{};
275 bool m_updatedAtHasBeenSet = false;
276
277 Aws::Utils::DateTime m_deletedAt{};
278 bool m_deletedAtHasBeenSet = false;
279
281 bool m_statusHasBeenSet = false;
282
283 SourceConfiguration m_sourceConfiguration;
284 bool m_sourceConfigurationHasBeenSet = false;
285
286 InstanceConfiguration m_instanceConfiguration;
287 bool m_instanceConfigurationHasBeenSet = false;
288
289 EncryptionConfiguration m_encryptionConfiguration;
290 bool m_encryptionConfigurationHasBeenSet = false;
291
292 HealthCheckConfiguration m_healthCheckConfiguration;
293 bool m_healthCheckConfigurationHasBeenSet = false;
294
295 AutoScalingConfigurationSummary m_autoScalingConfigurationSummary;
296 bool m_autoScalingConfigurationSummaryHasBeenSet = false;
297
298 NetworkConfiguration m_networkConfiguration;
299 bool m_networkConfigurationHasBeenSet = false;
300
301 ServiceObservabilityConfiguration m_observabilityConfiguration;
302 bool m_observabilityConfigurationHasBeenSet = false;
303 };
304
305} // namespace Model
306} // namespace AppRunner
307} // namespace Aws
const EncryptionConfiguration & GetEncryptionConfiguration() const
Definition Service.h:199
Service & WithAutoScalingConfigurationSummary(AutoScalingConfigurationSummaryT &&value)
Definition Service.h:230
const Aws::String & GetServiceUrl() const
Definition Service.h:103
Service & WithServiceUrl(ServiceUrlT &&value)
Definition Service.h:108
const ServiceObservabilityConfiguration & GetObservabilityConfiguration() const
Definition Service.h:250
bool NetworkConfigurationHasBeenSet() const
Definition Service.h:239
Service & WithServiceName(ServiceNameT &&value)
Definition Service.h:70
Service & WithServiceArn(ServiceArnT &&value)
Definition Service.h:95
Service & WithHealthCheckConfiguration(HealthCheckConfigurationT &&value)
Definition Service.h:217
Service & WithUpdatedAt(UpdatedAtT &&value)
Definition Service.h:134
bool SourceConfigurationHasBeenSet() const
Definition Service.h:173
const HealthCheckConfiguration & GetHealthCheckConfiguration() const
Definition Service.h:212
const Aws::Utils::DateTime & GetUpdatedAt() const
Definition Service.h:129
const Aws::Utils::DateTime & GetDeletedAt() const
Definition Service.h:142
void SetStatus(ServiceStatus value)
Definition Service.h:163
Service & WithEncryptionConfiguration(EncryptionConfigurationT &&value)
Definition Service.h:204
Service & WithNetworkConfiguration(NetworkConfigurationT &&value)
Definition Service.h:243
void SetServiceUrl(ServiceUrlT &&value)
Definition Service.h:106
Service & WithDeletedAt(DeletedAtT &&value)
Definition Service.h:147
void SetHealthCheckConfiguration(HealthCheckConfigurationT &&value)
Definition Service.h:215
const Aws::String & GetServiceName() const
Definition Service.h:65
void SetAutoScalingConfigurationSummary(AutoScalingConfigurationSummaryT &&value)
Definition Service.h:228
bool EncryptionConfigurationHasBeenSet() const
Definition Service.h:200
Service & WithInstanceConfiguration(InstanceConfigurationT &&value)
Definition Service.h:189
bool DeletedAtHasBeenSet() const
Definition Service.h:143
AWS_APPRUNNER_API Service()=default
Service & WithServiceId(ServiceIdT &&value)
Definition Service.h:83
Service & WithSourceConfiguration(SourceConfigurationT &&value)
Definition Service.h:177
bool ServiceUrlHasBeenSet() const
Definition Service.h:104
bool AutoScalingConfigurationSummaryHasBeenSet() const
Definition Service.h:226
bool ServiceNameHasBeenSet() const
Definition Service.h:66
void SetEncryptionConfiguration(EncryptionConfigurationT &&value)
Definition Service.h:202
const InstanceConfiguration & GetInstanceConfiguration() const
Definition Service.h:184
bool ServiceArnHasBeenSet() const
Definition Service.h:91
const Aws::String & GetServiceId() const
Definition Service.h:78
void SetServiceArn(ServiceArnT &&value)
Definition Service.h:93
void SetUpdatedAt(UpdatedAtT &&value)
Definition Service.h:132
void SetDeletedAt(DeletedAtT &&value)
Definition Service.h:145
Service & WithCreatedAt(CreatedAtT &&value)
Definition Service.h:121
const NetworkConfiguration & GetNetworkConfiguration() const
Definition Service.h:238
bool InstanceConfigurationHasBeenSet() const
Definition Service.h:185
bool ServiceIdHasBeenSet() const
Definition Service.h:79
void SetInstanceConfiguration(InstanceConfigurationT &&value)
Definition Service.h:187
const Aws::String & GetServiceArn() const
Definition Service.h:90
const AutoScalingConfigurationSummary & GetAutoScalingConfigurationSummary() const
Definition Service.h:225
void SetCreatedAt(CreatedAtT &&value)
Definition Service.h:119
ServiceStatus GetStatus() const
Definition Service.h:161
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:172
void SetServiceId(ServiceIdT &&value)
Definition Service.h:81
Service & WithStatus(ServiceStatus value)
Definition Service.h:164
void SetServiceName(ServiceNameT &&value)
Definition Service.h:68
AWS_APPRUNNER_API Aws::Utils::Json::JsonValue Jsonize() const
bool CreatedAtHasBeenSet() const
Definition Service.h:117
const Aws::Utils::DateTime & GetCreatedAt() const
Definition Service.h:116
void SetObservabilityConfiguration(ObservabilityConfigurationT &&value)
Definition Service.h:253
bool ObservabilityConfigurationHasBeenSet() const
Definition Service.h:251
bool UpdatedAtHasBeenSet() const
Definition Service.h:130
void SetNetworkConfiguration(NetworkConfigurationT &&value)
Definition Service.h:241
void SetSourceConfiguration(SourceConfigurationT &&value)
Definition Service.h:175
bool HealthCheckConfigurationHasBeenSet() const
Definition Service.h:213
Service & WithObservabilityConfiguration(ObservabilityConfigurationT &&value)
Definition Service.h:255
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue