AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetServiceName(const Aws::String& value) { m_serviceNameHasBeenSet = true; m_serviceName = value; }
68 inline void SetServiceName(Aws::String&& value) { m_serviceNameHasBeenSet = true; m_serviceName = std::move(value); }
69 inline void SetServiceName(const char* value) { m_serviceNameHasBeenSet = true; m_serviceName.assign(value); }
70 inline Service& WithServiceName(const Aws::String& value) { SetServiceName(value); return *this;}
71 inline Service& WithServiceName(Aws::String&& value) { SetServiceName(std::move(value)); return *this;}
72 inline Service& WithServiceName(const char* value) { SetServiceName(value); return *this;}
74
76
80 inline const Aws::String& GetServiceId() const{ return m_serviceId; }
81 inline bool ServiceIdHasBeenSet() const { return m_serviceIdHasBeenSet; }
82 inline void SetServiceId(const Aws::String& value) { m_serviceIdHasBeenSet = true; m_serviceId = value; }
83 inline void SetServiceId(Aws::String&& value) { m_serviceIdHasBeenSet = true; m_serviceId = std::move(value); }
84 inline void SetServiceId(const char* value) { m_serviceIdHasBeenSet = true; m_serviceId.assign(value); }
85 inline Service& WithServiceId(const Aws::String& value) { SetServiceId(value); return *this;}
86 inline Service& WithServiceId(Aws::String&& value) { SetServiceId(std::move(value)); return *this;}
87 inline Service& WithServiceId(const char* value) { SetServiceId(value); return *this;}
89
91
94 inline const Aws::String& GetServiceArn() const{ return m_serviceArn; }
95 inline bool ServiceArnHasBeenSet() const { return m_serviceArnHasBeenSet; }
96 inline void SetServiceArn(const Aws::String& value) { m_serviceArnHasBeenSet = true; m_serviceArn = value; }
97 inline void SetServiceArn(Aws::String&& value) { m_serviceArnHasBeenSet = true; m_serviceArn = std::move(value); }
98 inline void SetServiceArn(const char* value) { m_serviceArnHasBeenSet = true; m_serviceArn.assign(value); }
99 inline Service& WithServiceArn(const Aws::String& value) { SetServiceArn(value); return *this;}
100 inline Service& WithServiceArn(Aws::String&& value) { SetServiceArn(std::move(value)); return *this;}
101 inline Service& WithServiceArn(const char* value) { SetServiceArn(value); return *this;}
103
105
109 inline const Aws::String& GetServiceUrl() const{ return m_serviceUrl; }
110 inline bool ServiceUrlHasBeenSet() const { return m_serviceUrlHasBeenSet; }
111 inline void SetServiceUrl(const Aws::String& value) { m_serviceUrlHasBeenSet = true; m_serviceUrl = value; }
112 inline void SetServiceUrl(Aws::String&& value) { m_serviceUrlHasBeenSet = true; m_serviceUrl = std::move(value); }
113 inline void SetServiceUrl(const char* value) { m_serviceUrlHasBeenSet = true; m_serviceUrl.assign(value); }
114 inline Service& WithServiceUrl(const Aws::String& value) { SetServiceUrl(value); return *this;}
115 inline Service& WithServiceUrl(Aws::String&& value) { SetServiceUrl(std::move(value)); return *this;}
116 inline Service& WithServiceUrl(const char* value) { SetServiceUrl(value); return *this;}
118
120
124 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
125 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
126 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
127 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
128 inline Service& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
129 inline Service& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
131
133
137 inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; }
138 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
139 inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAtHasBeenSet = true; m_updatedAt = value; }
140 inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::move(value); }
141 inline Service& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;}
142 inline Service& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;}
144
146
150 inline const Aws::Utils::DateTime& GetDeletedAt() const{ return m_deletedAt; }
151 inline bool DeletedAtHasBeenSet() const { return m_deletedAtHasBeenSet; }
152 inline void SetDeletedAt(const Aws::Utils::DateTime& value) { m_deletedAtHasBeenSet = true; m_deletedAt = value; }
153 inline void SetDeletedAt(Aws::Utils::DateTime&& value) { m_deletedAtHasBeenSet = true; m_deletedAt = std::move(value); }
154 inline Service& WithDeletedAt(const Aws::Utils::DateTime& value) { SetDeletedAt(value); return *this;}
155 inline Service& WithDeletedAt(Aws::Utils::DateTime&& value) { SetDeletedAt(std::move(value)); return *this;}
157
159
169 inline const ServiceStatus& GetStatus() const{ return m_status; }
170 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
171 inline void SetStatus(const ServiceStatus& value) { m_statusHasBeenSet = true; m_status = value; }
172 inline void SetStatus(ServiceStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
173 inline Service& WithStatus(const ServiceStatus& value) { SetStatus(value); return *this;}
174 inline Service& WithStatus(ServiceStatus&& value) { SetStatus(std::move(value)); return *this;}
176
178
182 inline const SourceConfiguration& GetSourceConfiguration() const{ return m_sourceConfiguration; }
183 inline bool SourceConfigurationHasBeenSet() const { return m_sourceConfigurationHasBeenSet; }
184 inline void SetSourceConfiguration(const SourceConfiguration& value) { m_sourceConfigurationHasBeenSet = true; m_sourceConfiguration = value; }
185 inline void SetSourceConfiguration(SourceConfiguration&& value) { m_sourceConfigurationHasBeenSet = true; m_sourceConfiguration = std::move(value); }
186 inline Service& WithSourceConfiguration(const SourceConfiguration& value) { SetSourceConfiguration(value); return *this;}
187 inline Service& WithSourceConfiguration(SourceConfiguration&& value) { SetSourceConfiguration(std::move(value)); return *this;}
189
191
194 inline const InstanceConfiguration& GetInstanceConfiguration() const{ return m_instanceConfiguration; }
195 inline bool InstanceConfigurationHasBeenSet() const { return m_instanceConfigurationHasBeenSet; }
196 inline void SetInstanceConfiguration(const InstanceConfiguration& value) { m_instanceConfigurationHasBeenSet = true; m_instanceConfiguration = value; }
197 inline void SetInstanceConfiguration(InstanceConfiguration&& value) { m_instanceConfigurationHasBeenSet = true; m_instanceConfiguration = std::move(value); }
199 inline Service& WithInstanceConfiguration(InstanceConfiguration&& value) { SetInstanceConfiguration(std::move(value)); return *this;}
201
203
209 inline const EncryptionConfiguration& GetEncryptionConfiguration() const{ return m_encryptionConfiguration; }
210 inline bool EncryptionConfigurationHasBeenSet() const { return m_encryptionConfigurationHasBeenSet; }
211 inline void SetEncryptionConfiguration(const EncryptionConfiguration& value) { m_encryptionConfigurationHasBeenSet = true; m_encryptionConfiguration = value; }
212 inline void SetEncryptionConfiguration(EncryptionConfiguration&& value) { m_encryptionConfigurationHasBeenSet = true; m_encryptionConfiguration = std::move(value); }
216
218
222 inline const HealthCheckConfiguration& GetHealthCheckConfiguration() const{ return m_healthCheckConfiguration; }
223 inline bool HealthCheckConfigurationHasBeenSet() const { return m_healthCheckConfigurationHasBeenSet; }
224 inline void SetHealthCheckConfiguration(const HealthCheckConfiguration& value) { m_healthCheckConfigurationHasBeenSet = true; m_healthCheckConfiguration = value; }
225 inline void SetHealthCheckConfiguration(HealthCheckConfiguration&& value) { m_healthCheckConfigurationHasBeenSet = true; m_healthCheckConfiguration = std::move(value); }
229
231
235 inline const AutoScalingConfigurationSummary& GetAutoScalingConfigurationSummary() const{ return m_autoScalingConfigurationSummary; }
236 inline bool AutoScalingConfigurationSummaryHasBeenSet() const { return m_autoScalingConfigurationSummaryHasBeenSet; }
237 inline void SetAutoScalingConfigurationSummary(const AutoScalingConfigurationSummary& value) { m_autoScalingConfigurationSummaryHasBeenSet = true; m_autoScalingConfigurationSummary = value; }
238 inline void SetAutoScalingConfigurationSummary(AutoScalingConfigurationSummary&& value) { m_autoScalingConfigurationSummaryHasBeenSet = true; m_autoScalingConfigurationSummary = std::move(value); }
242
244
248 inline const NetworkConfiguration& GetNetworkConfiguration() const{ return m_networkConfiguration; }
249 inline bool NetworkConfigurationHasBeenSet() const { return m_networkConfigurationHasBeenSet; }
250 inline void SetNetworkConfiguration(const NetworkConfiguration& value) { m_networkConfigurationHasBeenSet = true; m_networkConfiguration = value; }
251 inline void SetNetworkConfiguration(NetworkConfiguration&& value) { m_networkConfigurationHasBeenSet = true; m_networkConfiguration = std::move(value); }
253 inline Service& WithNetworkConfiguration(NetworkConfiguration&& value) { SetNetworkConfiguration(std::move(value)); return *this;}
255
257
260 inline const ServiceObservabilityConfiguration& GetObservabilityConfiguration() const{ return m_observabilityConfiguration; }
261 inline bool ObservabilityConfigurationHasBeenSet() const { return m_observabilityConfigurationHasBeenSet; }
262 inline void SetObservabilityConfiguration(const ServiceObservabilityConfiguration& value) { m_observabilityConfigurationHasBeenSet = true; m_observabilityConfiguration = value; }
263 inline void SetObservabilityConfiguration(ServiceObservabilityConfiguration&& value) { m_observabilityConfigurationHasBeenSet = true; m_observabilityConfiguration = std::move(value); }
267 private:
268
269 Aws::String m_serviceName;
270 bool m_serviceNameHasBeenSet = false;
271
272 Aws::String m_serviceId;
273 bool m_serviceIdHasBeenSet = false;
274
275 Aws::String m_serviceArn;
276 bool m_serviceArnHasBeenSet = false;
277
278 Aws::String m_serviceUrl;
279 bool m_serviceUrlHasBeenSet = false;
280
281 Aws::Utils::DateTime m_createdAt;
282 bool m_createdAtHasBeenSet = false;
283
284 Aws::Utils::DateTime m_updatedAt;
285 bool m_updatedAtHasBeenSet = false;
286
287 Aws::Utils::DateTime m_deletedAt;
288 bool m_deletedAtHasBeenSet = false;
289
290 ServiceStatus m_status;
291 bool m_statusHasBeenSet = false;
292
293 SourceConfiguration m_sourceConfiguration;
294 bool m_sourceConfigurationHasBeenSet = false;
295
296 InstanceConfiguration m_instanceConfiguration;
297 bool m_instanceConfigurationHasBeenSet = false;
298
299 EncryptionConfiguration m_encryptionConfiguration;
300 bool m_encryptionConfigurationHasBeenSet = false;
301
302 HealthCheckConfiguration m_healthCheckConfiguration;
303 bool m_healthCheckConfigurationHasBeenSet = false;
304
305 AutoScalingConfigurationSummary m_autoScalingConfigurationSummary;
306 bool m_autoScalingConfigurationSummaryHasBeenSet = false;
307
308 NetworkConfiguration m_networkConfiguration;
309 bool m_networkConfigurationHasBeenSet = false;
310
311 ServiceObservabilityConfiguration m_observabilityConfiguration;
312 bool m_observabilityConfigurationHasBeenSet = false;
313 };
314
315} // namespace Model
316} // namespace AppRunner
317} // namespace Aws
const EncryptionConfiguration & GetEncryptionConfiguration() const
Definition Service.h:209
Service & WithServiceName(const char *value)
Definition Service.h:72
void SetAutoScalingConfigurationSummary(const AutoScalingConfigurationSummary &value)
Definition Service.h:237
void SetServiceName(const char *value)
Definition Service.h:69
const Aws::String & GetServiceUrl() const
Definition Service.h:109
const ServiceObservabilityConfiguration & GetObservabilityConfiguration() const
Definition Service.h:260
void SetServiceArn(const Aws::String &value)
Definition Service.h:96
bool NetworkConfigurationHasBeenSet() const
Definition Service.h:249
Service & WithInstanceConfiguration(const InstanceConfiguration &value)
Definition Service.h:198
void SetEncryptionConfiguration(EncryptionConfiguration &&value)
Definition Service.h:212
bool SourceConfigurationHasBeenSet() const
Definition Service.h:183
void SetNetworkConfiguration(NetworkConfiguration &&value)
Definition Service.h:251
Service & WithServiceArn(Aws::String &&value)
Definition Service.h:100
void SetObservabilityConfiguration(ServiceObservabilityConfiguration &&value)
Definition Service.h:263
void SetStatus(ServiceStatus &&value)
Definition Service.h:172
const HealthCheckConfiguration & GetHealthCheckConfiguration() const
Definition Service.h:222
const Aws::Utils::DateTime & GetUpdatedAt() const
Definition Service.h:137
Service & WithStatus(ServiceStatus &&value)
Definition Service.h:174
Service & WithServiceName(Aws::String &&value)
Definition Service.h:71
const Aws::Utils::DateTime & GetDeletedAt() const
Definition Service.h:150
void SetCreatedAt(Aws::Utils::DateTime &&value)
Definition Service.h:127
void SetServiceId(const Aws::String &value)
Definition Service.h:82
void SetHealthCheckConfiguration(const HealthCheckConfiguration &value)
Definition Service.h:224
Service & WithHealthCheckConfiguration(const HealthCheckConfiguration &value)
Definition Service.h:226
const Aws::String & GetServiceName() const
Definition Service.h:65
Service & WithStatus(const ServiceStatus &value)
Definition Service.h:173
void SetServiceUrl(Aws::String &&value)
Definition Service.h:112
void SetServiceUrl(const char *value)
Definition Service.h:113
bool EncryptionConfigurationHasBeenSet() const
Definition Service.h:210
Service & WithEncryptionConfiguration(EncryptionConfiguration &&value)
Definition Service.h:214
void SetDeletedAt(const Aws::Utils::DateTime &value)
Definition Service.h:152
void SetInstanceConfiguration(const InstanceConfiguration &value)
Definition Service.h:196
Service & WithServiceName(const Aws::String &value)
Definition Service.h:70
Service & WithSourceConfiguration(const SourceConfiguration &value)
Definition Service.h:186
bool DeletedAtHasBeenSet() const
Definition Service.h:151
void SetInstanceConfiguration(InstanceConfiguration &&value)
Definition Service.h:197
void SetCreatedAt(const Aws::Utils::DateTime &value)
Definition Service.h:126
Service & WithEncryptionConfiguration(const EncryptionConfiguration &value)
Definition Service.h:213
bool ServiceUrlHasBeenSet() const
Definition Service.h:110
bool AutoScalingConfigurationSummaryHasBeenSet() const
Definition Service.h:236
bool ServiceNameHasBeenSet() const
Definition Service.h:66
void SetEncryptionConfiguration(const EncryptionConfiguration &value)
Definition Service.h:211
void SetHealthCheckConfiguration(HealthCheckConfiguration &&value)
Definition Service.h:225
void SetUpdatedAt(Aws::Utils::DateTime &&value)
Definition Service.h:140
void SetStatus(const ServiceStatus &value)
Definition Service.h:171
const InstanceConfiguration & GetInstanceConfiguration() const
Definition Service.h:194
Service & WithServiceId(Aws::String &&value)
Definition Service.h:86
bool ServiceArnHasBeenSet() const
Definition Service.h:95
const Aws::String & GetServiceId() const
Definition Service.h:80
void SetServiceArn(Aws::String &&value)
Definition Service.h:97
Service & WithUpdatedAt(Aws::Utils::DateTime &&value)
Definition Service.h:142
Service & WithServiceArn(const char *value)
Definition Service.h:101
Service & WithCreatedAt(const Aws::Utils::DateTime &value)
Definition Service.h:128
const NetworkConfiguration & GetNetworkConfiguration() const
Definition Service.h:248
bool InstanceConfigurationHasBeenSet() const
Definition Service.h:195
Service & WithUpdatedAt(const Aws::Utils::DateTime &value)
Definition Service.h:141
Service & WithServiceUrl(const Aws::String &value)
Definition Service.h:114
bool ServiceIdHasBeenSet() const
Definition Service.h:81
AWS_APPRUNNER_API Service()
Service & WithCreatedAt(Aws::Utils::DateTime &&value)
Definition Service.h:129
void SetSourceConfiguration(const SourceConfiguration &value)
Definition Service.h:184
const Aws::String & GetServiceArn() const
Definition Service.h:94
void SetAutoScalingConfigurationSummary(AutoScalingConfigurationSummary &&value)
Definition Service.h:238
void SetServiceId(const char *value)
Definition Service.h:84
const AutoScalingConfigurationSummary & GetAutoScalingConfigurationSummary() const
Definition Service.h:235
void SetNetworkConfiguration(const NetworkConfiguration &value)
Definition Service.h:250
Service & WithServiceUrl(const char *value)
Definition Service.h:116
Service & WithAutoScalingConfigurationSummary(AutoScalingConfigurationSummary &&value)
Definition Service.h:240
Service & WithServiceId(const char *value)
Definition Service.h:87
void SetSourceConfiguration(SourceConfiguration &&value)
Definition Service.h:185
Service & WithServiceUrl(Aws::String &&value)
Definition Service.h:115
Service & WithObservabilityConfiguration(ServiceObservabilityConfiguration &&value)
Definition Service.h:265
void SetServiceName(const Aws::String &value)
Definition Service.h:67
AWS_APPRUNNER_API Service(Aws::Utils::Json::JsonView jsonValue)
AWS_APPRUNNER_API Service & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetObservabilityConfiguration(const ServiceObservabilityConfiguration &value)
Definition Service.h:262
const SourceConfiguration & GetSourceConfiguration() const
Definition Service.h:182
Service & WithDeletedAt(Aws::Utils::DateTime &&value)
Definition Service.h:155
Service & WithNetworkConfiguration(const NetworkConfiguration &value)
Definition Service.h:252
Service & WithServiceArn(const Aws::String &value)
Definition Service.h:99
AWS_APPRUNNER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetUpdatedAt(const Aws::Utils::DateTime &value)
Definition Service.h:139
Service & WithSourceConfiguration(SourceConfiguration &&value)
Definition Service.h:187
bool CreatedAtHasBeenSet() const
Definition Service.h:125
const Aws::Utils::DateTime & GetCreatedAt() const
Definition Service.h:124
Service & WithHealthCheckConfiguration(HealthCheckConfiguration &&value)
Definition Service.h:227
Service & WithNetworkConfiguration(NetworkConfiguration &&value)
Definition Service.h:253
const ServiceStatus & GetStatus() const
Definition Service.h:169
void SetServiceId(Aws::String &&value)
Definition Service.h:83
void SetDeletedAt(Aws::Utils::DateTime &&value)
Definition Service.h:153
Service & WithInstanceConfiguration(InstanceConfiguration &&value)
Definition Service.h:199
bool ObservabilityConfigurationHasBeenSet() const
Definition Service.h:261
void SetServiceName(Aws::String &&value)
Definition Service.h:68
Service & WithDeletedAt(const Aws::Utils::DateTime &value)
Definition Service.h:154
bool UpdatedAtHasBeenSet() const
Definition Service.h:138
void SetServiceUrl(const Aws::String &value)
Definition Service.h:111
Service & WithAutoScalingConfigurationSummary(const AutoScalingConfigurationSummary &value)
Definition Service.h:239
void SetServiceArn(const char *value)
Definition Service.h:98
bool HealthCheckConfigurationHasBeenSet() const
Definition Service.h:223
Service & WithObservabilityConfiguration(const ServiceObservabilityConfiguration &value)
Definition Service.h:264
Service & WithServiceId(const Aws::String &value)
Definition Service.h:85
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue