AWS SDK for C++  1.9.104
AWS SDK for C++
CreateServiceRequest.h
Go to the documentation of this file.
1 
6 #pragma once
16 #include <utility>
17 #include <aws/core/utils/UUID.h>
18 
19 namespace Aws
20 {
21 namespace ServiceDiscovery
22 {
23 namespace Model
24 {
25 
29  {
30  public:
32 
33  // Service request name is the Operation name which will send this request out,
34  // each operation should has unique request name, so that we can get operation's name from this request.
35  // Note: this is not true for response, multiple operations may have the same response name,
36  // so we can not get operation's name from response.
37  inline virtual const char* GetServiceRequestName() const override { return "CreateService"; }
38 
39  Aws::String SerializePayload() const override;
40 
42 
43 
61  inline const Aws::String& GetName() const{ return m_name; }
62 
80  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
81 
99  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
100 
118  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
119 
137  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
138 
156  inline CreateServiceRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
157 
175  inline CreateServiceRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
176 
194  inline CreateServiceRequest& WithName(const char* value) { SetName(value); return *this;}
195 
196 
202  inline const Aws::String& GetNamespaceId() const{ return m_namespaceId; }
203 
209  inline bool NamespaceIdHasBeenSet() const { return m_namespaceIdHasBeenSet; }
210 
216  inline void SetNamespaceId(const Aws::String& value) { m_namespaceIdHasBeenSet = true; m_namespaceId = value; }
217 
223  inline void SetNamespaceId(Aws::String&& value) { m_namespaceIdHasBeenSet = true; m_namespaceId = std::move(value); }
224 
230  inline void SetNamespaceId(const char* value) { m_namespaceIdHasBeenSet = true; m_namespaceId.assign(value); }
231 
237  inline CreateServiceRequest& WithNamespaceId(const Aws::String& value) { SetNamespaceId(value); return *this;}
238 
244  inline CreateServiceRequest& WithNamespaceId(Aws::String&& value) { SetNamespaceId(std::move(value)); return *this;}
245 
251  inline CreateServiceRequest& WithNamespaceId(const char* value) { SetNamespaceId(value); return *this;}
252 
253 
260  inline const Aws::String& GetCreatorRequestId() const{ return m_creatorRequestId; }
261 
268  inline bool CreatorRequestIdHasBeenSet() const { return m_creatorRequestIdHasBeenSet; }
269 
276  inline void SetCreatorRequestId(const Aws::String& value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId = value; }
277 
284  inline void SetCreatorRequestId(Aws::String&& value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId = std::move(value); }
285 
292  inline void SetCreatorRequestId(const char* value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId.assign(value); }
293 
300  inline CreateServiceRequest& WithCreatorRequestId(const Aws::String& value) { SetCreatorRequestId(value); return *this;}
301 
308  inline CreateServiceRequest& WithCreatorRequestId(Aws::String&& value) { SetCreatorRequestId(std::move(value)); return *this;}
309 
316  inline CreateServiceRequest& WithCreatorRequestId(const char* value) { SetCreatorRequestId(value); return *this;}
317 
318 
322  inline const Aws::String& GetDescription() const{ return m_description; }
323 
327  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
328 
332  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
333 
337  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
338 
342  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
343 
347  inline CreateServiceRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
348 
352  inline CreateServiceRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
353 
357  inline CreateServiceRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
358 
359 
364  inline const DnsConfig& GetDnsConfig() const{ return m_dnsConfig; }
365 
370  inline bool DnsConfigHasBeenSet() const { return m_dnsConfigHasBeenSet; }
371 
376  inline void SetDnsConfig(const DnsConfig& value) { m_dnsConfigHasBeenSet = true; m_dnsConfig = value; }
377 
382  inline void SetDnsConfig(DnsConfig&& value) { m_dnsConfigHasBeenSet = true; m_dnsConfig = std::move(value); }
383 
388  inline CreateServiceRequest& WithDnsConfig(const DnsConfig& value) { SetDnsConfig(value); return *this;}
389 
394  inline CreateServiceRequest& WithDnsConfig(DnsConfig&& value) { SetDnsConfig(std::move(value)); return *this;}
395 
396 
408  inline const HealthCheckConfig& GetHealthCheckConfig() const{ return m_healthCheckConfig; }
409 
421  inline bool HealthCheckConfigHasBeenSet() const { return m_healthCheckConfigHasBeenSet; }
422 
434  inline void SetHealthCheckConfig(const HealthCheckConfig& value) { m_healthCheckConfigHasBeenSet = true; m_healthCheckConfig = value; }
435 
447  inline void SetHealthCheckConfig(HealthCheckConfig&& value) { m_healthCheckConfigHasBeenSet = true; m_healthCheckConfig = std::move(value); }
448 
460  inline CreateServiceRequest& WithHealthCheckConfig(const HealthCheckConfig& value) { SetHealthCheckConfig(value); return *this;}
461 
473  inline CreateServiceRequest& WithHealthCheckConfig(HealthCheckConfig&& value) { SetHealthCheckConfig(std::move(value)); return *this;}
474 
475 
484  inline const HealthCheckCustomConfig& GetHealthCheckCustomConfig() const{ return m_healthCheckCustomConfig; }
485 
494  inline bool HealthCheckCustomConfigHasBeenSet() const { return m_healthCheckCustomConfigHasBeenSet; }
495 
504  inline void SetHealthCheckCustomConfig(const HealthCheckCustomConfig& value) { m_healthCheckCustomConfigHasBeenSet = true; m_healthCheckCustomConfig = value; }
505 
514  inline void SetHealthCheckCustomConfig(HealthCheckCustomConfig&& value) { m_healthCheckCustomConfigHasBeenSet = true; m_healthCheckCustomConfig = std::move(value); }
515 
524  inline CreateServiceRequest& WithHealthCheckCustomConfig(const HealthCheckCustomConfig& value) { SetHealthCheckCustomConfig(value); return *this;}
525 
534  inline CreateServiceRequest& WithHealthCheckCustomConfig(HealthCheckCustomConfig&& value) { SetHealthCheckCustomConfig(std::move(value)); return *this;}
535 
536 
542  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
543 
549  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
550 
556  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
557 
563  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
564 
570  inline CreateServiceRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
571 
577  inline CreateServiceRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
578 
584  inline CreateServiceRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
585 
591  inline CreateServiceRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
592 
593 
599  inline const ServiceTypeOption& GetType() const{ return m_type; }
600 
606  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
607 
613  inline void SetType(const ServiceTypeOption& value) { m_typeHasBeenSet = true; m_type = value; }
614 
620  inline void SetType(ServiceTypeOption&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
621 
627  inline CreateServiceRequest& WithType(const ServiceTypeOption& value) { SetType(value); return *this;}
628 
634  inline CreateServiceRequest& WithType(ServiceTypeOption&& value) { SetType(std::move(value)); return *this;}
635 
636  private:
637 
638  Aws::String m_name;
639  bool m_nameHasBeenSet;
640 
641  Aws::String m_namespaceId;
642  bool m_namespaceIdHasBeenSet;
643 
644  Aws::String m_creatorRequestId;
645  bool m_creatorRequestIdHasBeenSet;
646 
647  Aws::String m_description;
648  bool m_descriptionHasBeenSet;
649 
650  DnsConfig m_dnsConfig;
651  bool m_dnsConfigHasBeenSet;
652 
653  HealthCheckConfig m_healthCheckConfig;
654  bool m_healthCheckConfigHasBeenSet;
655 
656  HealthCheckCustomConfig m_healthCheckCustomConfig;
657  bool m_healthCheckCustomConfigHasBeenSet;
658 
659  Aws::Vector<Tag> m_tags;
660  bool m_tagsHasBeenSet;
661 
662  ServiceTypeOption m_type;
663  bool m_typeHasBeenSet;
664  };
665 
666 } // namespace Model
667 } // namespace ServiceDiscovery
668 } // namespace Aws
Aws::ServiceDiscovery::Model::CreateServiceRequest::SetDescription
void SetDescription(const char *value)
Definition: CreateServiceRequest.h:342
ServiceDiscoveryRequest.h
Aws::ServiceDiscovery::Model::CreateServiceRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateServiceRequest.h:542
Aws::ServiceDiscovery::Model::CreateServiceRequest::WithNamespaceId
CreateServiceRequest & WithNamespaceId(const Aws::String &value)
Definition: CreateServiceRequest.h:237
Aws::ServiceDiscovery::Model::CreateServiceRequest::SetDnsConfig
void SetDnsConfig(const DnsConfig &value)
Definition: CreateServiceRequest.h:376
Aws::ServiceDiscovery::Model::CreateServiceRequest::GetDescription
const Aws::String & GetDescription() const
Definition: CreateServiceRequest.h:322
Aws::ServiceDiscovery::Model::CreateServiceRequest::AddTags
CreateServiceRequest & AddTags(Tag &&value)
Definition: CreateServiceRequest.h:591
AWS_SERVICEDISCOVERY_API
#define AWS_SERVICEDISCOVERY_API
Definition: ServiceDiscovery_EXPORTS.h:28
Aws::ServiceDiscovery::Model::HealthCheckConfig
Definition: HealthCheckConfig.h:75
ServiceTypeOption.h
Aws::ServiceDiscovery::Model::CreateServiceRequest::WithType
CreateServiceRequest & WithType(const ServiceTypeOption &value)
Definition: CreateServiceRequest.h:627
Aws::ServiceDiscovery::Model::CreateServiceRequest::SetNamespaceId
void SetNamespaceId(const char *value)
Definition: CreateServiceRequest.h:230
Aws::ServiceDiscovery::Model::CreateServiceRequest::SetName
void SetName(const char *value)
Definition: CreateServiceRequest.h:137
Aws::ServiceDiscovery::Model::CreateServiceRequest::WithCreatorRequestId
CreateServiceRequest & WithCreatorRequestId(const char *value)
Definition: CreateServiceRequest.h:316
Aws::ServiceDiscovery::Model::CreateServiceRequest::SetCreatorRequestId
void SetCreatorRequestId(const Aws::String &value)
Definition: CreateServiceRequest.h:276
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::ServiceDiscovery::Model::CreateServiceRequest::WithCreatorRequestId
CreateServiceRequest & WithCreatorRequestId(const Aws::String &value)
Definition: CreateServiceRequest.h:300
Aws::ServiceDiscovery::Model::CreateServiceRequest::SetNamespaceId
void SetNamespaceId(const Aws::String &value)
Definition: CreateServiceRequest.h:216
Aws::ServiceDiscovery::Model::CreateServiceRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateServiceRequest.h:549
Aws::ServiceDiscovery::Model::ServiceTypeOption
ServiceTypeOption
Definition: ServiceTypeOption.h:17
Aws::ServiceDiscovery::Model::CreateServiceRequest::SetHealthCheckConfig
void SetHealthCheckConfig(const HealthCheckConfig &value)
Definition: CreateServiceRequest.h:434
ServiceDiscovery_EXPORTS.h
Aws::ServiceDiscovery::Model::CreateServiceRequest::WithName
CreateServiceRequest & WithName(Aws::String &&value)
Definition: CreateServiceRequest.h:175
Aws::ServiceDiscovery::Model::CreateServiceRequest::WithDescription
CreateServiceRequest & WithDescription(Aws::String &&value)
Definition: CreateServiceRequest.h:352
Aws::ServiceDiscovery::Model::CreateServiceRequest::SetCreatorRequestId
void SetCreatorRequestId(Aws::String &&value)
Definition: CreateServiceRequest.h:284
Aws::ServiceDiscovery::Model::CreateServiceRequest::DnsConfigHasBeenSet
bool DnsConfigHasBeenSet() const
Definition: CreateServiceRequest.h:370
Aws::ServiceDiscovery::Model::CreateServiceRequest::WithHealthCheckCustomConfig
CreateServiceRequest & WithHealthCheckCustomConfig(const HealthCheckCustomConfig &value)
Definition: CreateServiceRequest.h:524
Aws::ServiceDiscovery::Model::CreateServiceRequest::WithTags
CreateServiceRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreateServiceRequest.h:577
Aws::ServiceDiscovery::Model::CreateServiceRequest::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: CreateServiceRequest.h:606
Aws::ServiceDiscovery::Model::CreateServiceRequest::SetName
void SetName(Aws::String &&value)
Definition: CreateServiceRequest.h:118
Aws::ServiceDiscovery::Model::CreateServiceRequest::NamespaceIdHasBeenSet
bool NamespaceIdHasBeenSet() const
Definition: CreateServiceRequest.h:209
Aws::ServiceDiscovery::Model::CreateServiceRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::ServiceDiscovery::Model::HealthCheckCustomConfig
Definition: HealthCheckCustomConfig.h:56
Aws::ServiceDiscovery::Model::CreateServiceRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: CreateServiceRequest.h:80
HealthCheckConfig.h
Aws::ServiceDiscovery::Model::CreateServiceRequest::HealthCheckConfigHasBeenSet
bool HealthCheckConfigHasBeenSet() const
Definition: CreateServiceRequest.h:421
Aws::ServiceDiscovery::Model::CreateServiceRequest::GetDnsConfig
const DnsConfig & GetDnsConfig() const
Definition: CreateServiceRequest.h:364
AWSVector.h
Aws::ServiceDiscovery::Model::CreateServiceRequest::SetType
void SetType(ServiceTypeOption &&value)
Definition: CreateServiceRequest.h:620
Aws::ServiceDiscovery::Model::CreateServiceRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateServiceRequest.h:37
Aws::ServiceDiscovery::Model::CreateServiceRequest::WithName
CreateServiceRequest & WithName(const Aws::String &value)
Definition: CreateServiceRequest.h:156
Aws::ServiceDiscovery::Model::CreateServiceRequest::WithDnsConfig
CreateServiceRequest & WithDnsConfig(const DnsConfig &value)
Definition: CreateServiceRequest.h:388
Aws::ServiceDiscovery::Model::DnsConfig
Definition: DnsConfig.h:36
Aws::ServiceDiscovery::Model::CreateServiceRequest::CreatorRequestIdHasBeenSet
bool CreatorRequestIdHasBeenSet() const
Definition: CreateServiceRequest.h:268
Aws::ServiceDiscovery::Model::CreateServiceRequest::CreateServiceRequest
CreateServiceRequest()
Aws::ServiceDiscovery::Model::CreateServiceRequest::WithDescription
CreateServiceRequest & WithDescription(const char *value)
Definition: CreateServiceRequest.h:357
Aws::ServiceDiscovery::Model::CreateServiceRequest::SetName
void SetName(const Aws::String &value)
Definition: CreateServiceRequest.h:99
Aws::ServiceDiscovery::Model::CreateServiceRequest::GetName
const Aws::String & GetName() const
Definition: CreateServiceRequest.h:61
Aws::ServiceDiscovery::Model::CreateServiceRequest::SetHealthCheckCustomConfig
void SetHealthCheckCustomConfig(const HealthCheckCustomConfig &value)
Definition: CreateServiceRequest.h:504
Aws::ServiceDiscovery::Model::CreateServiceRequest::WithName
CreateServiceRequest & WithName(const char *value)
Definition: CreateServiceRequest.h:194
Aws::ServiceDiscovery::Model::CreateServiceRequest::SetHealthCheckConfig
void SetHealthCheckConfig(HealthCheckConfig &&value)
Definition: CreateServiceRequest.h:447
Aws::ServiceDiscovery::Model::CreateServiceRequest::WithDnsConfig
CreateServiceRequest & WithDnsConfig(DnsConfig &&value)
Definition: CreateServiceRequest.h:394
Aws::ServiceDiscovery::Model::CreateServiceRequest::WithHealthCheckConfig
CreateServiceRequest & WithHealthCheckConfig(HealthCheckConfig &&value)
Definition: CreateServiceRequest.h:473
Aws::ServiceDiscovery::ServiceDiscoveryRequest
Definition: ServiceDiscoveryRequest.h:17
Aws::ServiceDiscovery::Model::CreateServiceRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreateServiceRequest.h:563
Aws::ServiceDiscovery::Model::CreateServiceRequest
Definition: CreateServiceRequest.h:29
Aws::ServiceDiscovery::Model::CreateServiceRequest::SetDnsConfig
void SetDnsConfig(DnsConfig &&value)
Definition: CreateServiceRequest.h:382
AWSString.h
Aws::ServiceDiscovery::Model::CreateServiceRequest::AddTags
CreateServiceRequest & AddTags(const Tag &value)
Definition: CreateServiceRequest.h:584
Aws::ServiceDiscovery::Model::CreateServiceRequest::GetHealthCheckConfig
const HealthCheckConfig & GetHealthCheckConfig() const
Definition: CreateServiceRequest.h:408
Aws::ServiceDiscovery::Model::CreateServiceRequest::GetHealthCheckCustomConfig
const HealthCheckCustomConfig & GetHealthCheckCustomConfig() const
Definition: CreateServiceRequest.h:484
Aws::ServiceDiscovery::Model::CreateServiceRequest::WithTags
CreateServiceRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreateServiceRequest.h:570
Aws::ServiceDiscovery::Model::Tag
Definition: Tag.h:33
Aws::ServiceDiscovery::Model::CreateServiceRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: CreateServiceRequest.h:337
Aws::ServiceDiscovery::Model::CreateServiceRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: CreateServiceRequest.h:327
Aws::ServiceDiscovery::Model::CreateServiceRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: CreateServiceRequest.h:332
Aws::ServiceDiscovery::Model::CreateServiceRequest::HealthCheckCustomConfigHasBeenSet
bool HealthCheckCustomConfigHasBeenSet() const
Definition: CreateServiceRequest.h:494
Aws::ServiceDiscovery::Model::CreateServiceRequest::WithNamespaceId
CreateServiceRequest & WithNamespaceId(Aws::String &&value)
Definition: CreateServiceRequest.h:244
Aws::ServiceDiscovery::Model::CreateServiceRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::ServiceDiscovery::Model::CreateServiceRequest::GetNamespaceId
const Aws::String & GetNamespaceId() const
Definition: CreateServiceRequest.h:202
Aws::ServiceDiscovery::Model::CreateServiceRequest::WithDescription
CreateServiceRequest & WithDescription(const Aws::String &value)
Definition: CreateServiceRequest.h:347
DnsConfig.h
Aws::ServiceDiscovery::Model::CreateServiceRequest::WithType
CreateServiceRequest & WithType(ServiceTypeOption &&value)
Definition: CreateServiceRequest.h:634
Aws
Definition: AccessManagementClient.h:15
HealthCheckCustomConfig.h
Aws::ServiceDiscovery::Model::CreateServiceRequest::GetType
const ServiceTypeOption & GetType() const
Definition: CreateServiceRequest.h:599
Aws::ServiceDiscovery::Model::CreateServiceRequest::WithHealthCheckConfig
CreateServiceRequest & WithHealthCheckConfig(const HealthCheckConfig &value)
Definition: CreateServiceRequest.h:460
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ServiceDiscovery::Model::CreateServiceRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreateServiceRequest.h:556
Aws::ServiceDiscovery::Model::CreateServiceRequest::SetHealthCheckCustomConfig
void SetHealthCheckCustomConfig(HealthCheckCustomConfig &&value)
Definition: CreateServiceRequest.h:514
Aws::ServiceDiscovery::Model::CreateServiceRequest::GetCreatorRequestId
const Aws::String & GetCreatorRequestId() const
Definition: CreateServiceRequest.h:260
Aws::ServiceDiscovery::Model::CreateServiceRequest::WithHealthCheckCustomConfig
CreateServiceRequest & WithHealthCheckCustomConfig(HealthCheckCustomConfig &&value)
Definition: CreateServiceRequest.h:534
Aws::ServiceDiscovery::Model::CreateServiceRequest::SetCreatorRequestId
void SetCreatorRequestId(const char *value)
Definition: CreateServiceRequest.h:292
Aws::ServiceDiscovery::Model::CreateServiceRequest::WithNamespaceId
CreateServiceRequest & WithNamespaceId(const char *value)
Definition: CreateServiceRequest.h:251
UUID.h
Aws::ServiceDiscovery::Model::CreateServiceRequest::WithCreatorRequestId
CreateServiceRequest & WithCreatorRequestId(Aws::String &&value)
Definition: CreateServiceRequest.h:308
Aws::ServiceDiscovery::Model::CreateServiceRequest::SetType
void SetType(const ServiceTypeOption &value)
Definition: CreateServiceRequest.h:613
Tag.h
Aws::ServiceDiscovery::Model::CreateServiceRequest::SetNamespaceId
void SetNamespaceId(Aws::String &&value)
Definition: CreateServiceRequest.h:223