AWS SDK for C++  1.9.104
AWS SDK for C++
Service.h
Go to the documentation of this file.
1 
6 #pragma once
14 #include <utility>
15 
16 namespace Aws
17 {
18 namespace Utils
19 {
20 namespace Json
21 {
22  class JsonValue;
23  class JsonView;
24 } // namespace Json
25 } // namespace Utils
26 namespace ServiceDiscovery
27 {
28 namespace Model
29 {
30 
38  {
39  public:
44 
45 
49  inline const Aws::String& GetId() const{ return m_id; }
50 
54  inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
55 
59  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
60 
64  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
65 
69  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
70 
74  inline Service& WithId(const Aws::String& value) { SetId(value); return *this;}
75 
79  inline Service& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
80 
84  inline Service& WithId(const char* value) { SetId(value); return *this;}
85 
86 
91  inline const Aws::String& GetArn() const{ return m_arn; }
92 
97  inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
98 
103  inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
104 
109  inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
110 
115  inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
116 
121  inline Service& WithArn(const Aws::String& value) { SetArn(value); return *this;}
122 
127  inline Service& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
128 
133  inline Service& WithArn(const char* value) { SetArn(value); return *this;}
134 
135 
139  inline const Aws::String& GetName() const{ return m_name; }
140 
144  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
145 
149  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
150 
154  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
155 
159  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
160 
164  inline Service& WithName(const Aws::String& value) { SetName(value); return *this;}
165 
169  inline Service& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
170 
174  inline Service& WithName(const char* value) { SetName(value); return *this;}
175 
176 
180  inline const Aws::String& GetNamespaceId() const{ return m_namespaceId; }
181 
185  inline bool NamespaceIdHasBeenSet() const { return m_namespaceIdHasBeenSet; }
186 
190  inline void SetNamespaceId(const Aws::String& value) { m_namespaceIdHasBeenSet = true; m_namespaceId = value; }
191 
195  inline void SetNamespaceId(Aws::String&& value) { m_namespaceIdHasBeenSet = true; m_namespaceId = std::move(value); }
196 
200  inline void SetNamespaceId(const char* value) { m_namespaceIdHasBeenSet = true; m_namespaceId.assign(value); }
201 
205  inline Service& WithNamespaceId(const Aws::String& value) { SetNamespaceId(value); return *this;}
206 
210  inline Service& WithNamespaceId(Aws::String&& value) { SetNamespaceId(std::move(value)); return *this;}
211 
215  inline Service& WithNamespaceId(const char* value) { SetNamespaceId(value); return *this;}
216 
217 
221  inline const Aws::String& GetDescription() const{ return m_description; }
222 
226  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
227 
231  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
232 
236  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
237 
241  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
242 
246  inline Service& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
247 
251  inline Service& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
252 
256  inline Service& WithDescription(const char* value) { SetDescription(value); return *this;}
257 
258 
265  inline int GetInstanceCount() const{ return m_instanceCount; }
266 
273  inline bool InstanceCountHasBeenSet() const { return m_instanceCountHasBeenSet; }
274 
281  inline void SetInstanceCount(int value) { m_instanceCountHasBeenSet = true; m_instanceCount = value; }
282 
289  inline Service& WithInstanceCount(int value) { SetInstanceCount(value); return *this;}
290 
291 
296  inline const DnsConfig& GetDnsConfig() const{ return m_dnsConfig; }
297 
302  inline bool DnsConfigHasBeenSet() const { return m_dnsConfigHasBeenSet; }
303 
308  inline void SetDnsConfig(const DnsConfig& value) { m_dnsConfigHasBeenSet = true; m_dnsConfig = value; }
309 
314  inline void SetDnsConfig(DnsConfig&& value) { m_dnsConfigHasBeenSet = true; m_dnsConfig = std::move(value); }
315 
320  inline Service& WithDnsConfig(const DnsConfig& value) { SetDnsConfig(value); return *this;}
321 
326  inline Service& WithDnsConfig(DnsConfig&& value) { SetDnsConfig(std::move(value)); return *this;}
327 
328 
337  inline const ServiceType& GetType() const{ return m_type; }
338 
347  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
348 
357  inline void SetType(const ServiceType& value) { m_typeHasBeenSet = true; m_type = value; }
358 
367  inline void SetType(ServiceType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
368 
377  inline Service& WithType(const ServiceType& value) { SetType(value); return *this;}
378 
387  inline Service& WithType(ServiceType&& value) { SetType(std::move(value)); return *this;}
388 
389 
398  inline const HealthCheckConfig& GetHealthCheckConfig() const{ return m_healthCheckConfig; }
399 
408  inline bool HealthCheckConfigHasBeenSet() const { return m_healthCheckConfigHasBeenSet; }
409 
418  inline void SetHealthCheckConfig(const HealthCheckConfig& value) { m_healthCheckConfigHasBeenSet = true; m_healthCheckConfig = value; }
419 
428  inline void SetHealthCheckConfig(HealthCheckConfig&& value) { m_healthCheckConfigHasBeenSet = true; m_healthCheckConfig = std::move(value); }
429 
438  inline Service& WithHealthCheckConfig(const HealthCheckConfig& value) { SetHealthCheckConfig(value); return *this;}
439 
448  inline Service& WithHealthCheckConfig(HealthCheckConfig&& value) { SetHealthCheckConfig(std::move(value)); return *this;}
449 
450 
457  inline const HealthCheckCustomConfig& GetHealthCheckCustomConfig() const{ return m_healthCheckCustomConfig; }
458 
465  inline bool HealthCheckCustomConfigHasBeenSet() const { return m_healthCheckCustomConfigHasBeenSet; }
466 
473  inline void SetHealthCheckCustomConfig(const HealthCheckCustomConfig& value) { m_healthCheckCustomConfigHasBeenSet = true; m_healthCheckCustomConfig = value; }
474 
481  inline void SetHealthCheckCustomConfig(HealthCheckCustomConfig&& value) { m_healthCheckCustomConfigHasBeenSet = true; m_healthCheckCustomConfig = std::move(value); }
482 
489  inline Service& WithHealthCheckCustomConfig(const HealthCheckCustomConfig& value) { SetHealthCheckCustomConfig(value); return *this;}
490 
497  inline Service& WithHealthCheckCustomConfig(HealthCheckCustomConfig&& value) { SetHealthCheckCustomConfig(std::move(value)); return *this;}
498 
499 
506  inline const Aws::Utils::DateTime& GetCreateDate() const{ return m_createDate; }
507 
514  inline bool CreateDateHasBeenSet() const { return m_createDateHasBeenSet; }
515 
522  inline void SetCreateDate(const Aws::Utils::DateTime& value) { m_createDateHasBeenSet = true; m_createDate = value; }
523 
530  inline void SetCreateDate(Aws::Utils::DateTime&& value) { m_createDateHasBeenSet = true; m_createDate = std::move(value); }
531 
538  inline Service& WithCreateDate(const Aws::Utils::DateTime& value) { SetCreateDate(value); return *this;}
539 
546  inline Service& WithCreateDate(Aws::Utils::DateTime&& value) { SetCreateDate(std::move(value)); return *this;}
547 
548 
555  inline const Aws::String& GetCreatorRequestId() const{ return m_creatorRequestId; }
556 
563  inline bool CreatorRequestIdHasBeenSet() const { return m_creatorRequestIdHasBeenSet; }
564 
571  inline void SetCreatorRequestId(const Aws::String& value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId = value; }
572 
579  inline void SetCreatorRequestId(Aws::String&& value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId = std::move(value); }
580 
587  inline void SetCreatorRequestId(const char* value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId.assign(value); }
588 
595  inline Service& WithCreatorRequestId(const Aws::String& value) { SetCreatorRequestId(value); return *this;}
596 
603  inline Service& WithCreatorRequestId(Aws::String&& value) { SetCreatorRequestId(std::move(value)); return *this;}
604 
611  inline Service& WithCreatorRequestId(const char* value) { SetCreatorRequestId(value); return *this;}
612 
613  private:
614 
615  Aws::String m_id;
616  bool m_idHasBeenSet;
617 
618  Aws::String m_arn;
619  bool m_arnHasBeenSet;
620 
621  Aws::String m_name;
622  bool m_nameHasBeenSet;
623 
624  Aws::String m_namespaceId;
625  bool m_namespaceIdHasBeenSet;
626 
627  Aws::String m_description;
628  bool m_descriptionHasBeenSet;
629 
630  int m_instanceCount;
631  bool m_instanceCountHasBeenSet;
632 
633  DnsConfig m_dnsConfig;
634  bool m_dnsConfigHasBeenSet;
635 
636  ServiceType m_type;
637  bool m_typeHasBeenSet;
638 
639  HealthCheckConfig m_healthCheckConfig;
640  bool m_healthCheckConfigHasBeenSet;
641 
642  HealthCheckCustomConfig m_healthCheckCustomConfig;
643  bool m_healthCheckCustomConfigHasBeenSet;
644 
645  Aws::Utils::DateTime m_createDate;
646  bool m_createDateHasBeenSet;
647 
648  Aws::String m_creatorRequestId;
649  bool m_creatorRequestIdHasBeenSet;
650  };
651 
652 } // namespace Model
653 } // namespace ServiceDiscovery
654 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::ServiceDiscovery::Model::Service::SetDescription
void SetDescription(Aws::String &&value)
Definition: Service.h:236
Aws::ServiceDiscovery::Model::Service::SetCreateDate
void SetCreateDate(Aws::Utils::DateTime &&value)
Definition: Service.h:530
Aws::ServiceDiscovery::Model::Service::SetNamespaceId
void SetNamespaceId(const Aws::String &value)
Definition: Service.h:190
Aws::ServiceDiscovery::Model::Service::SetId
void SetId(const char *value)
Definition: Service.h:69
AWS_SERVICEDISCOVERY_API
#define AWS_SERVICEDISCOVERY_API
Definition: ServiceDiscovery_EXPORTS.h:28
Aws::ServiceDiscovery::Model::HealthCheckConfig
Definition: HealthCheckConfig.h:75
Aws::ServiceDiscovery::Model::Service::GetCreatorRequestId
const Aws::String & GetCreatorRequestId() const
Definition: Service.h:555
Aws::ServiceDiscovery::Model::Service::CreateDateHasBeenSet
bool CreateDateHasBeenSet() const
Definition: Service.h:514
Aws::ServiceDiscovery::Model::Service::WithCreateDate
Service & WithCreateDate(Aws::Utils::DateTime &&value)
Definition: Service.h:546
Aws::ServiceDiscovery::Model::Service::SetHealthCheckConfig
void SetHealthCheckConfig(const HealthCheckConfig &value)
Definition: Service.h:418
Aws::ServiceDiscovery::Model::Service::WithInstanceCount
Service & WithInstanceCount(int value)
Definition: Service.h:289
Aws::ServiceDiscovery::Model::Service::IdHasBeenSet
bool IdHasBeenSet() const
Definition: Service.h:54
Aws::ServiceDiscovery::Model::Service::operator=
Service & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::ServiceDiscovery::Model::Service::GetCreateDate
const Aws::Utils::DateTime & GetCreateDate() const
Definition: Service.h:506
Aws::ServiceDiscovery::Model::Service::Service
Service(Aws::Utils::Json::JsonView jsonValue)
Aws::ServiceDiscovery::Model::Service::WithCreatorRequestId
Service & WithCreatorRequestId(Aws::String &&value)
Definition: Service.h:603
Aws::ServiceDiscovery::Model::Service::WithDescription
Service & WithDescription(const char *value)
Definition: Service.h:256
Aws::ServiceDiscovery::Model::Service::NameHasBeenSet
bool NameHasBeenSet() const
Definition: Service.h:144
Aws::ServiceDiscovery::Model::Service::WithCreatorRequestId
Service & WithCreatorRequestId(const Aws::String &value)
Definition: Service.h:595
Aws::ServiceDiscovery::Model::Service::GetType
const ServiceType & GetType() const
Definition: Service.h:337
Aws::ServiceDiscovery::Model::Service::SetDnsConfig
void SetDnsConfig(DnsConfig &&value)
Definition: Service.h:314
Aws::ServiceDiscovery::Model::Service::SetName
void SetName(const char *value)
Definition: Service.h:159
Aws::ServiceDiscovery::Model::Service::WithName
Service & WithName(const Aws::String &value)
Definition: Service.h:164
ServiceType.h
ServiceDiscovery_EXPORTS.h
DateTime.h
Aws::ServiceDiscovery::Model::Service::WithArn
Service & WithArn(const char *value)
Definition: Service.h:133
Aws::ServiceDiscovery::Model::Service::DnsConfigHasBeenSet
bool DnsConfigHasBeenSet() const
Definition: Service.h:302
Aws::ServiceDiscovery::Model::ServiceType
ServiceType
Definition: ServiceType.h:17
Aws::ServiceDiscovery::Model::Service::WithHealthCheckCustomConfig
Service & WithHealthCheckCustomConfig(const HealthCheckCustomConfig &value)
Definition: Service.h:489
Aws::ServiceDiscovery::Model::Service::InstanceCountHasBeenSet
bool InstanceCountHasBeenSet() const
Definition: Service.h:273
Aws::ServiceDiscovery::Model::Service::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::ServiceDiscovery::Model::Service::HealthCheckConfigHasBeenSet
bool HealthCheckConfigHasBeenSet() const
Definition: Service.h:408
Aws::ServiceDiscovery::Model::Service::GetName
const Aws::String & GetName() const
Definition: Service.h:139
Aws::ServiceDiscovery::Model::HealthCheckCustomConfig
Definition: HealthCheckCustomConfig.h:56
HealthCheckConfig.h
Aws::ServiceDiscovery::Model::Service::GetDnsConfig
const DnsConfig & GetDnsConfig() const
Definition: Service.h:296
Aws::ServiceDiscovery::Model::Service::WithId
Service & WithId(const char *value)
Definition: Service.h:84
Aws::ServiceDiscovery::Model::Service::WithType
Service & WithType(ServiceType &&value)
Definition: Service.h:387
Aws::ServiceDiscovery::Model::Service::GetNamespaceId
const Aws::String & GetNamespaceId() const
Definition: Service.h:180
Aws::ServiceDiscovery::Model::Service::SetNamespaceId
void SetNamespaceId(const char *value)
Definition: Service.h:200
Aws::ServiceDiscovery::Model::Service::SetName
void SetName(Aws::String &&value)
Definition: Service.h:154
Aws::ServiceDiscovery::Model::Service::GetHealthCheckCustomConfig
const HealthCheckCustomConfig & GetHealthCheckCustomConfig() const
Definition: Service.h:457
Aws::ServiceDiscovery::Model::Service::WithHealthCheckConfig
Service & WithHealthCheckConfig(HealthCheckConfig &&value)
Definition: Service.h:448
Aws::ServiceDiscovery::Model::Service::GetId
const Aws::String & GetId() const
Definition: Service.h:49
Aws::ServiceDiscovery::Model::DnsConfig
Definition: DnsConfig.h:36
Aws::ServiceDiscovery::Model::Service::SetId
void SetId(Aws::String &&value)
Definition: Service.h:64
Aws::ServiceDiscovery::Model::Service::SetHealthCheckCustomConfig
void SetHealthCheckCustomConfig(const HealthCheckCustomConfig &value)
Definition: Service.h:473
Aws::ServiceDiscovery::Model::Service::WithDescription
Service & WithDescription(const Aws::String &value)
Definition: Service.h:246
Aws::ServiceDiscovery::Model::Service::SetDescription
void SetDescription(const char *value)
Definition: Service.h:241
Aws::ServiceDiscovery::Model::Service::GetHealthCheckConfig
const HealthCheckConfig & GetHealthCheckConfig() const
Definition: Service.h:398
Aws::ServiceDiscovery::Model::Service::WithNamespaceId
Service & WithNamespaceId(const char *value)
Definition: Service.h:215
Aws::ServiceDiscovery::Model::Service::NamespaceIdHasBeenSet
bool NamespaceIdHasBeenSet() const
Definition: Service.h:185
Aws::ServiceDiscovery::Model::Service::WithNamespaceId
Service & WithNamespaceId(const Aws::String &value)
Definition: Service.h:205
Aws::ServiceDiscovery::Model::Service::GetDescription
const Aws::String & GetDescription() const
Definition: Service.h:221
Aws::ServiceDiscovery::Model::Service::SetArn
void SetArn(Aws::String &&value)
Definition: Service.h:109
Aws::ServiceDiscovery::Model::Service::SetDnsConfig
void SetDnsConfig(const DnsConfig &value)
Definition: Service.h:308
Aws::ServiceDiscovery::Model::Service::SetId
void SetId(const Aws::String &value)
Definition: Service.h:59
Aws::ServiceDiscovery::Model::Service::WithType
Service & WithType(const ServiceType &value)
Definition: Service.h:377
Aws::ServiceDiscovery::Model::Service::WithCreatorRequestId
Service & WithCreatorRequestId(const char *value)
Definition: Service.h:611
Aws::ServiceDiscovery::Model::Service::SetNamespaceId
void SetNamespaceId(Aws::String &&value)
Definition: Service.h:195
Aws::ServiceDiscovery::Model::Service::SetHealthCheckConfig
void SetHealthCheckConfig(HealthCheckConfig &&value)
Definition: Service.h:428
Aws::ServiceDiscovery::Model::Service::SetCreatorRequestId
void SetCreatorRequestId(const char *value)
Definition: Service.h:587
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::ServiceDiscovery::Model::Service::SetType
void SetType(ServiceType &&value)
Definition: Service.h:367
Aws::ServiceDiscovery::Model::Service::SetArn
void SetArn(const Aws::String &value)
Definition: Service.h:103
Aws::ServiceDiscovery::Model::Service::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: Service.h:226
Aws::ServiceDiscovery::Model::Service::GetInstanceCount
int GetInstanceCount() const
Definition: Service.h:265
Aws::ServiceDiscovery::Model::Service::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: Service.h:347
Aws::ServiceDiscovery::Model::Service::WithNamespaceId
Service & WithNamespaceId(Aws::String &&value)
Definition: Service.h:210
Aws::ServiceDiscovery::Model::Service::WithName
Service & WithName(Aws::String &&value)
Definition: Service.h:169
Aws::ServiceDiscovery::Model::Service::SetCreatorRequestId
void SetCreatorRequestId(const Aws::String &value)
Definition: Service.h:571
Aws::ServiceDiscovery::Model::Service::WithArn
Service & WithArn(const Aws::String &value)
Definition: Service.h:121
Aws::ServiceDiscovery::Model::Service
Definition: Service.h:38
DnsConfig.h
Aws::ServiceDiscovery::Model::Service::WithId
Service & WithId(Aws::String &&value)
Definition: Service.h:79
Aws::ServiceDiscovery::Model::Service::SetName
void SetName(const Aws::String &value)
Definition: Service.h:149
Aws::ServiceDiscovery::Model::Service::SetDescription
void SetDescription(const Aws::String &value)
Definition: Service.h:231
Aws::ServiceDiscovery::Model::Service::WithHealthCheckCustomConfig
Service & WithHealthCheckCustomConfig(HealthCheckCustomConfig &&value)
Definition: Service.h:497
Aws
Definition: AccessManagementClient.h:15
HealthCheckCustomConfig.h
Aws::ServiceDiscovery::Model::Service::WithDnsConfig
Service & WithDnsConfig(DnsConfig &&value)
Definition: Service.h:326
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ServiceDiscovery::Model::Service::WithArn
Service & WithArn(Aws::String &&value)
Definition: Service.h:127
Aws::ServiceDiscovery::Model::Service::Service
Service()
Aws::ServiceDiscovery::Model::Service::SetType
void SetType(const ServiceType &value)
Definition: Service.h:357
Aws::ServiceDiscovery::Model::Service::WithHealthCheckConfig
Service & WithHealthCheckConfig(const HealthCheckConfig &value)
Definition: Service.h:438
Aws::ServiceDiscovery::Model::Service::SetHealthCheckCustomConfig
void SetHealthCheckCustomConfig(HealthCheckCustomConfig &&value)
Definition: Service.h:481
Aws::ServiceDiscovery::Model::Service::SetInstanceCount
void SetInstanceCount(int value)
Definition: Service.h:281
Aws::ServiceDiscovery::Model::Service::WithDnsConfig
Service & WithDnsConfig(const DnsConfig &value)
Definition: Service.h:320
Aws::ServiceDiscovery::Model::Service::WithDescription
Service & WithDescription(Aws::String &&value)
Definition: Service.h:251
Aws::ServiceDiscovery::Model::Service::WithCreateDate
Service & WithCreateDate(const Aws::Utils::DateTime &value)
Definition: Service.h:538
Aws::ServiceDiscovery::Model::Service::HealthCheckCustomConfigHasBeenSet
bool HealthCheckCustomConfigHasBeenSet() const
Definition: Service.h:465
Aws::ServiceDiscovery::Model::Service::GetArn
const Aws::String & GetArn() const
Definition: Service.h:91
Aws::ServiceDiscovery::Model::Service::SetCreateDate
void SetCreateDate(const Aws::Utils::DateTime &value)
Definition: Service.h:522
Aws::ServiceDiscovery::Model::Service::WithName
Service & WithName(const char *value)
Definition: Service.h:174
Aws::ServiceDiscovery::Model::Service::SetCreatorRequestId
void SetCreatorRequestId(Aws::String &&value)
Definition: Service.h:579
Aws::ServiceDiscovery::Model::Service::WithId
Service & WithId(const Aws::String &value)
Definition: Service.h:74
Aws::ServiceDiscovery::Model::Service::CreatorRequestIdHasBeenSet
bool CreatorRequestIdHasBeenSet() const
Definition: Service.h:563
Aws::ServiceDiscovery::Model::Service::SetArn
void SetArn(const char *value)
Definition: Service.h:115
Aws::ServiceDiscovery::Model::Service::ArnHasBeenSet
bool ArnHasBeenSet() const
Definition: Service.h:97