AWS SDK for C++  1.9.104
AWS SDK for C++
ServiceSummary.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 ServiceSummary& WithId(const Aws::String& value) { SetId(value); return *this;}
75 
79  inline ServiceSummary& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
80 
84  inline ServiceSummary& 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 ServiceSummary& WithArn(const Aws::String& value) { SetArn(value); return *this;}
122 
127  inline ServiceSummary& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
128 
133  inline ServiceSummary& 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 ServiceSummary& WithName(const Aws::String& value) { SetName(value); return *this;}
165 
169  inline ServiceSummary& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
170 
174  inline ServiceSummary& WithName(const char* value) { SetName(value); return *this;}
175 
176 
185  inline const ServiceType& GetType() const{ return m_type; }
186 
195  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
196 
205  inline void SetType(const ServiceType& value) { m_typeHasBeenSet = true; m_type = value; }
206 
215  inline void SetType(ServiceType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
216 
225  inline ServiceSummary& WithType(const ServiceType& value) { SetType(value); return *this;}
226 
235  inline ServiceSummary& WithType(ServiceType&& value) { SetType(std::move(value)); return *this;}
236 
237 
241  inline const Aws::String& GetDescription() const{ return m_description; }
242 
246  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
247 
251  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
252 
256  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
257 
261  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
262 
266  inline ServiceSummary& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
267 
271  inline ServiceSummary& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
272 
276  inline ServiceSummary& WithDescription(const char* value) { SetDescription(value); return *this;}
277 
278 
285  inline int GetInstanceCount() const{ return m_instanceCount; }
286 
293  inline bool InstanceCountHasBeenSet() const { return m_instanceCountHasBeenSet; }
294 
301  inline void SetInstanceCount(int value) { m_instanceCountHasBeenSet = true; m_instanceCount = value; }
302 
309  inline ServiceSummary& WithInstanceCount(int value) { SetInstanceCount(value); return *this;}
310 
311 
316  inline const DnsConfig& GetDnsConfig() const{ return m_dnsConfig; }
317 
322  inline bool DnsConfigHasBeenSet() const { return m_dnsConfigHasBeenSet; }
323 
328  inline void SetDnsConfig(const DnsConfig& value) { m_dnsConfigHasBeenSet = true; m_dnsConfig = value; }
329 
334  inline void SetDnsConfig(DnsConfig&& value) { m_dnsConfigHasBeenSet = true; m_dnsConfig = std::move(value); }
335 
340  inline ServiceSummary& WithDnsConfig(const DnsConfig& value) { SetDnsConfig(value); return *this;}
341 
346  inline ServiceSummary& WithDnsConfig(DnsConfig&& value) { SetDnsConfig(std::move(value)); return *this;}
347 
348 
354  inline const HealthCheckConfig& GetHealthCheckConfig() const{ return m_healthCheckConfig; }
355 
361  inline bool HealthCheckConfigHasBeenSet() const { return m_healthCheckConfigHasBeenSet; }
362 
368  inline void SetHealthCheckConfig(const HealthCheckConfig& value) { m_healthCheckConfigHasBeenSet = true; m_healthCheckConfig = value; }
369 
375  inline void SetHealthCheckConfig(HealthCheckConfig&& value) { m_healthCheckConfigHasBeenSet = true; m_healthCheckConfig = std::move(value); }
376 
382  inline ServiceSummary& WithHealthCheckConfig(const HealthCheckConfig& value) { SetHealthCheckConfig(value); return *this;}
383 
389  inline ServiceSummary& WithHealthCheckConfig(HealthCheckConfig&& value) { SetHealthCheckConfig(std::move(value)); return *this;}
390 
391 
406  inline const HealthCheckCustomConfig& GetHealthCheckCustomConfig() const{ return m_healthCheckCustomConfig; }
407 
422  inline bool HealthCheckCustomConfigHasBeenSet() const { return m_healthCheckCustomConfigHasBeenSet; }
423 
438  inline void SetHealthCheckCustomConfig(const HealthCheckCustomConfig& value) { m_healthCheckCustomConfigHasBeenSet = true; m_healthCheckCustomConfig = value; }
439 
454  inline void SetHealthCheckCustomConfig(HealthCheckCustomConfig&& value) { m_healthCheckCustomConfigHasBeenSet = true; m_healthCheckCustomConfig = std::move(value); }
455 
470  inline ServiceSummary& WithHealthCheckCustomConfig(const HealthCheckCustomConfig& value) { SetHealthCheckCustomConfig(value); return *this;}
471 
486  inline ServiceSummary& WithHealthCheckCustomConfig(HealthCheckCustomConfig&& value) { SetHealthCheckCustomConfig(std::move(value)); return *this;}
487 
488 
492  inline const Aws::Utils::DateTime& GetCreateDate() const{ return m_createDate; }
493 
497  inline bool CreateDateHasBeenSet() const { return m_createDateHasBeenSet; }
498 
502  inline void SetCreateDate(const Aws::Utils::DateTime& value) { m_createDateHasBeenSet = true; m_createDate = value; }
503 
507  inline void SetCreateDate(Aws::Utils::DateTime&& value) { m_createDateHasBeenSet = true; m_createDate = std::move(value); }
508 
512  inline ServiceSummary& WithCreateDate(const Aws::Utils::DateTime& value) { SetCreateDate(value); return *this;}
513 
517  inline ServiceSummary& WithCreateDate(Aws::Utils::DateTime&& value) { SetCreateDate(std::move(value)); return *this;}
518 
519  private:
520 
521  Aws::String m_id;
522  bool m_idHasBeenSet;
523 
524  Aws::String m_arn;
525  bool m_arnHasBeenSet;
526 
527  Aws::String m_name;
528  bool m_nameHasBeenSet;
529 
530  ServiceType m_type;
531  bool m_typeHasBeenSet;
532 
533  Aws::String m_description;
534  bool m_descriptionHasBeenSet;
535 
536  int m_instanceCount;
537  bool m_instanceCountHasBeenSet;
538 
539  DnsConfig m_dnsConfig;
540  bool m_dnsConfigHasBeenSet;
541 
542  HealthCheckConfig m_healthCheckConfig;
543  bool m_healthCheckConfigHasBeenSet;
544 
545  HealthCheckCustomConfig m_healthCheckCustomConfig;
546  bool m_healthCheckCustomConfigHasBeenSet;
547 
548  Aws::Utils::DateTime m_createDate;
549  bool m_createDateHasBeenSet;
550  };
551 
552 } // namespace Model
553 } // namespace ServiceDiscovery
554 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::ServiceDiscovery::Model::ServiceSummary::SetHealthCheckCustomConfig
void SetHealthCheckCustomConfig(const HealthCheckCustomConfig &value)
Definition: ServiceSummary.h:438
Aws::ServiceDiscovery::Model::ServiceSummary::SetDescription
void SetDescription(Aws::String &&value)
Definition: ServiceSummary.h:256
Aws::ServiceDiscovery::Model::ServiceSummary::GetHealthCheckCustomConfig
const HealthCheckCustomConfig & GetHealthCheckCustomConfig() const
Definition: ServiceSummary.h:406
Aws::ServiceDiscovery::Model::ServiceSummary::SetId
void SetId(const Aws::String &value)
Definition: ServiceSummary.h:59
AWS_SERVICEDISCOVERY_API
#define AWS_SERVICEDISCOVERY_API
Definition: ServiceDiscovery_EXPORTS.h:28
Aws::ServiceDiscovery::Model::HealthCheckConfig
Definition: HealthCheckConfig.h:75
Aws::ServiceDiscovery::Model::ServiceSummary::SetName
void SetName(const Aws::String &value)
Definition: ServiceSummary.h:149
Aws::ServiceDiscovery::Model::ServiceSummary::SetDnsConfig
void SetDnsConfig(const DnsConfig &value)
Definition: ServiceSummary.h:328
Aws::ServiceDiscovery::Model::ServiceSummary::GetName
const Aws::String & GetName() const
Definition: ServiceSummary.h:139
Aws::ServiceDiscovery::Model::ServiceSummary::SetDescription
void SetDescription(const char *value)
Definition: ServiceSummary.h:261
Aws::ServiceDiscovery::Model::ServiceSummary::WithInstanceCount
ServiceSummary & WithInstanceCount(int value)
Definition: ServiceSummary.h:309
Aws::ServiceDiscovery::Model::ServiceSummary::InstanceCountHasBeenSet
bool InstanceCountHasBeenSet() const
Definition: ServiceSummary.h:293
Aws::ServiceDiscovery::Model::ServiceSummary::SetHealthCheckConfig
void SetHealthCheckConfig(const HealthCheckConfig &value)
Definition: ServiceSummary.h:368
Aws::ServiceDiscovery::Model::ServiceSummary::IdHasBeenSet
bool IdHasBeenSet() const
Definition: ServiceSummary.h:54
Aws::ServiceDiscovery::Model::ServiceSummary::WithName
ServiceSummary & WithName(const char *value)
Definition: ServiceSummary.h:174
Aws::ServiceDiscovery::Model::ServiceSummary::SetArn
void SetArn(const char *value)
Definition: ServiceSummary.h:115
ServiceType.h
ServiceDiscovery_EXPORTS.h
DateTime.h
Aws::ServiceDiscovery::Model::ServiceSummary::operator=
ServiceSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::ServiceDiscovery::Model::ServiceSummary::WithArn
ServiceSummary & WithArn(const Aws::String &value)
Definition: ServiceSummary.h:121
Aws::ServiceDiscovery::Model::ServiceSummary::WithHealthCheckConfig
ServiceSummary & WithHealthCheckConfig(HealthCheckConfig &&value)
Definition: ServiceSummary.h:389
Aws::ServiceDiscovery::Model::ServiceSummary::WithArn
ServiceSummary & WithArn(const char *value)
Definition: ServiceSummary.h:133
Aws::ServiceDiscovery::Model::ServiceType
ServiceType
Definition: ServiceType.h:17
Aws::ServiceDiscovery::Model::ServiceSummary::SetHealthCheckConfig
void SetHealthCheckConfig(HealthCheckConfig &&value)
Definition: ServiceSummary.h:375
Aws::ServiceDiscovery::Model::ServiceSummary::GetType
const ServiceType & GetType() const
Definition: ServiceSummary.h:185
Aws::ServiceDiscovery::Model::ServiceSummary::HealthCheckConfigHasBeenSet
bool HealthCheckConfigHasBeenSet() const
Definition: ServiceSummary.h:361
Aws::ServiceDiscovery::Model::ServiceSummary::WithHealthCheckCustomConfig
ServiceSummary & WithHealthCheckCustomConfig(HealthCheckCustomConfig &&value)
Definition: ServiceSummary.h:486
Aws::ServiceDiscovery::Model::ServiceSummary::ArnHasBeenSet
bool ArnHasBeenSet() const
Definition: ServiceSummary.h:97
Aws::ServiceDiscovery::Model::ServiceSummary::SetHealthCheckCustomConfig
void SetHealthCheckCustomConfig(HealthCheckCustomConfig &&value)
Definition: ServiceSummary.h:454
Aws::ServiceDiscovery::Model::HealthCheckCustomConfig
Definition: HealthCheckCustomConfig.h:56
HealthCheckConfig.h
Aws::ServiceDiscovery::Model::ServiceSummary::SetName
void SetName(Aws::String &&value)
Definition: ServiceSummary.h:154
Aws::ServiceDiscovery::Model::ServiceSummary::GetDescription
const Aws::String & GetDescription() const
Definition: ServiceSummary.h:241
Aws::ServiceDiscovery::Model::ServiceSummary::SetDescription
void SetDescription(const Aws::String &value)
Definition: ServiceSummary.h:251
Aws::ServiceDiscovery::Model::ServiceSummary::WithHealthCheckCustomConfig
ServiceSummary & WithHealthCheckCustomConfig(const HealthCheckCustomConfig &value)
Definition: ServiceSummary.h:470
Aws::ServiceDiscovery::Model::ServiceSummary::WithName
ServiceSummary & WithName(const Aws::String &value)
Definition: ServiceSummary.h:164
Aws::ServiceDiscovery::Model::ServiceSummary::GetArn
const Aws::String & GetArn() const
Definition: ServiceSummary.h:91
Aws::ServiceDiscovery::Model::DnsConfig
Definition: DnsConfig.h:36
Aws::ServiceDiscovery::Model::ServiceSummary::GetDnsConfig
const DnsConfig & GetDnsConfig() const
Definition: ServiceSummary.h:316
Aws::ServiceDiscovery::Model::ServiceSummary::WithId
ServiceSummary & WithId(const char *value)
Definition: ServiceSummary.h:84
Aws::ServiceDiscovery::Model::ServiceSummary::SetType
void SetType(ServiceType &&value)
Definition: ServiceSummary.h:215
Aws::ServiceDiscovery::Model::ServiceSummary::WithName
ServiceSummary & WithName(Aws::String &&value)
Definition: ServiceSummary.h:169
Aws::ServiceDiscovery::Model::ServiceSummary::WithId
ServiceSummary & WithId(Aws::String &&value)
Definition: ServiceSummary.h:79
Aws::ServiceDiscovery::Model::ServiceSummary::SetType
void SetType(const ServiceType &value)
Definition: ServiceSummary.h:205
Aws::ServiceDiscovery::Model::ServiceSummary::SetArn
void SetArn(const Aws::String &value)
Definition: ServiceSummary.h:103
Aws::ServiceDiscovery::Model::ServiceSummary::ServiceSummary
ServiceSummary()
Aws::ServiceDiscovery::Model::ServiceSummary::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: ServiceSummary.h:246
Aws::ServiceDiscovery::Model::ServiceSummary::SetInstanceCount
void SetInstanceCount(int value)
Definition: ServiceSummary.h:301
Aws::ServiceDiscovery::Model::ServiceSummary::WithCreateDate
ServiceSummary & WithCreateDate(const Aws::Utils::DateTime &value)
Definition: ServiceSummary.h:512
Aws::ServiceDiscovery::Model::ServiceSummary::WithArn
ServiceSummary & WithArn(Aws::String &&value)
Definition: ServiceSummary.h:127
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::ServiceDiscovery::Model::ServiceSummary::SetId
void SetId(Aws::String &&value)
Definition: ServiceSummary.h:64
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::ServiceDiscovery::Model::ServiceSummary::GetId
const Aws::String & GetId() const
Definition: ServiceSummary.h:49
Aws::ServiceDiscovery::Model::ServiceSummary::CreateDateHasBeenSet
bool CreateDateHasBeenSet() const
Definition: ServiceSummary.h:497
Aws::ServiceDiscovery::Model::ServiceSummary::WithType
ServiceSummary & WithType(const ServiceType &value)
Definition: ServiceSummary.h:225
Aws::ServiceDiscovery::Model::ServiceSummary::WithType
ServiceSummary & WithType(ServiceType &&value)
Definition: ServiceSummary.h:235
Aws::ServiceDiscovery::Model::ServiceSummary::NameHasBeenSet
bool NameHasBeenSet() const
Definition: ServiceSummary.h:144
Aws::ServiceDiscovery::Model::ServiceSummary::WithHealthCheckConfig
ServiceSummary & WithHealthCheckConfig(const HealthCheckConfig &value)
Definition: ServiceSummary.h:382
Aws::ServiceDiscovery::Model::ServiceSummary::SetName
void SetName(const char *value)
Definition: ServiceSummary.h:159
DnsConfig.h
Aws::ServiceDiscovery::Model::ServiceSummary::WithDescription
ServiceSummary & WithDescription(const Aws::String &value)
Definition: ServiceSummary.h:266
Aws::ServiceDiscovery::Model::ServiceSummary::ServiceSummary
ServiceSummary(Aws::Utils::Json::JsonView jsonValue)
Aws
Definition: AccessManagementClient.h:15
Aws::ServiceDiscovery::Model::ServiceSummary::SetCreateDate
void SetCreateDate(const Aws::Utils::DateTime &value)
Definition: ServiceSummary.h:502
HealthCheckCustomConfig.h
Aws::ServiceDiscovery::Model::ServiceSummary::SetId
void SetId(const char *value)
Definition: ServiceSummary.h:69
Aws::ServiceDiscovery::Model::ServiceSummary::GetHealthCheckConfig
const HealthCheckConfig & GetHealthCheckConfig() const
Definition: ServiceSummary.h:354
Aws::ServiceDiscovery::Model::ServiceSummary::WithDescription
ServiceSummary & WithDescription(Aws::String &&value)
Definition: ServiceSummary.h:271
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ServiceDiscovery::Model::ServiceSummary::GetCreateDate
const Aws::Utils::DateTime & GetCreateDate() const
Definition: ServiceSummary.h:492
Aws::ServiceDiscovery::Model::ServiceSummary::HealthCheckCustomConfigHasBeenSet
bool HealthCheckCustomConfigHasBeenSet() const
Definition: ServiceSummary.h:422
Aws::ServiceDiscovery::Model::ServiceSummary::WithDnsConfig
ServiceSummary & WithDnsConfig(const DnsConfig &value)
Definition: ServiceSummary.h:340
Aws::ServiceDiscovery::Model::ServiceSummary::SetCreateDate
void SetCreateDate(Aws::Utils::DateTime &&value)
Definition: ServiceSummary.h:507
Aws::ServiceDiscovery::Model::ServiceSummary::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: ServiceSummary.h:195
Aws::ServiceDiscovery::Model::ServiceSummary::SetDnsConfig
void SetDnsConfig(DnsConfig &&value)
Definition: ServiceSummary.h:334
Aws::ServiceDiscovery::Model::ServiceSummary::WithDescription
ServiceSummary & WithDescription(const char *value)
Definition: ServiceSummary.h:276
Aws::ServiceDiscovery::Model::ServiceSummary::WithId
ServiceSummary & WithId(const Aws::String &value)
Definition: ServiceSummary.h:74
Aws::ServiceDiscovery::Model::ServiceSummary
Definition: ServiceSummary.h:38
Aws::ServiceDiscovery::Model::ServiceSummary::GetInstanceCount
int GetInstanceCount() const
Definition: ServiceSummary.h:285
Aws::ServiceDiscovery::Model::ServiceSummary::DnsConfigHasBeenSet
bool DnsConfigHasBeenSet() const
Definition: ServiceSummary.h:322
Aws::ServiceDiscovery::Model::ServiceSummary::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::ServiceDiscovery::Model::ServiceSummary::SetArn
void SetArn(Aws::String &&value)
Definition: ServiceSummary.h:109
Aws::ServiceDiscovery::Model::ServiceSummary::WithCreateDate
ServiceSummary & WithCreateDate(Aws::Utils::DateTime &&value)
Definition: ServiceSummary.h:517
Aws::ServiceDiscovery::Model::ServiceSummary::WithDnsConfig
ServiceSummary & WithDnsConfig(DnsConfig &&value)
Definition: ServiceSummary.h:346