7#include <aws/servicediscovery/ServiceDiscovery_EXPORTS.h>
8#include <aws/servicediscovery/ServiceDiscoveryRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/servicediscovery/model/DnsConfig.h>
11#include <aws/servicediscovery/model/HealthCheckConfig.h>
12#include <aws/servicediscovery/model/HealthCheckCustomConfig.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/servicediscovery/model/ServiceTypeOption.h>
15#include <aws/servicediscovery/model/Tag.h>
17#include <aws/core/utils/UUID.h>
21namespace ServiceDiscovery
66 template<
typename NameT = Aws::String>
67 void SetName(NameT&& value) { m_nameHasBeenSet =
true; m_name = std::forward<NameT>(value); }
68 template<
typename NameT = Aws::String>
80 template<
typename NamespaceIdT = Aws::String>
81 void SetNamespaceId(NamespaceIdT&& value) { m_namespaceIdHasBeenSet =
true; m_namespaceId = std::forward<NamespaceIdT>(value); }
82 template<
typename NamespaceIdT = Aws::String>
95 template<
typename CreatorRequestIdT = Aws::String>
96 void SetCreatorRequestId(CreatorRequestIdT&& value) { m_creatorRequestIdHasBeenSet =
true; m_creatorRequestId = std::forward<CreatorRequestIdT>(value); }
97 template<
typename CreatorRequestIdT = Aws::String>
107 template<
typename DescriptionT = Aws::String>
108 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet =
true; m_description = std::forward<DescriptionT>(value); }
109 template<
typename DescriptionT = Aws::String>
120 template<
typename DnsConfigT = DnsConfig>
121 void SetDnsConfig(DnsConfigT&& value) { m_dnsConfigHasBeenSet =
true; m_dnsConfig = std::forward<DnsConfigT>(value); }
122 template<
typename DnsConfigT = DnsConfig>
140 template<
typename HealthCheckConfigT = HealthCheckConfig>
141 void SetHealthCheckConfig(HealthCheckConfigT&& value) { m_healthCheckConfigHasBeenSet =
true; m_healthCheckConfig = std::forward<HealthCheckConfigT>(value); }
142 template<
typename HealthCheckConfigT = HealthCheckConfig>
157 template<
typename HealthCheckCustomConfigT = HealthCheckCustomConfig>
158 void SetHealthCheckCustomConfig(HealthCheckCustomConfigT&& value) { m_healthCheckCustomConfigHasBeenSet =
true; m_healthCheckCustomConfig = std::forward<HealthCheckCustomConfigT>(value); }
159 template<
typename HealthCheckCustomConfigT = HealthCheckCustomConfig>
171 template<
typename TagsT = Aws::Vector<Tag>>
172 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
173 template<
typename TagsT = Aws::Vector<Tag>>
175 template<
typename TagsT = Tag>
193 bool m_nameHasBeenSet =
false;
196 bool m_namespaceIdHasBeenSet =
false;
199 bool m_creatorRequestIdHasBeenSet =
true;
202 bool m_descriptionHasBeenSet =
false;
204 DnsConfig m_dnsConfig;
205 bool m_dnsConfigHasBeenSet =
false;
207 HealthCheckConfig m_healthCheckConfig;
208 bool m_healthCheckConfigHasBeenSet =
false;
210 HealthCheckCustomConfig m_healthCheckCustomConfig;
211 bool m_healthCheckCustomConfigHasBeenSet =
false;
214 bool m_tagsHasBeenSet =
false;
217 bool m_typeHasBeenSet =
false;
bool HealthCheckConfigHasBeenSet() const
CreateServiceRequest & WithType(ServiceTypeOption value)
const HealthCheckConfig & GetHealthCheckConfig() const
CreateServiceRequest & WithTags(TagsT &&value)
bool TypeHasBeenSet() const
void SetDnsConfig(DnsConfigT &&value)
CreateServiceRequest & WithNamespaceId(NamespaceIdT &&value)
const Aws::String & GetNamespaceId() const
void SetCreatorRequestId(CreatorRequestIdT &&value)
ServiceTypeOption GetType() const
AWS_SERVICEDISCOVERY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateServiceRequest & AddTags(TagsT &&value)
bool NameHasBeenSet() const
CreateServiceRequest & WithDescription(DescriptionT &&value)
bool CreatorRequestIdHasBeenSet() const
void SetNamespaceId(NamespaceIdT &&value)
void SetType(ServiceTypeOption value)
CreateServiceRequest & WithName(NameT &&value)
AWS_SERVICEDISCOVERY_API CreateServiceRequest()=default
void SetHealthCheckConfig(HealthCheckConfigT &&value)
bool HealthCheckCustomConfigHasBeenSet() const
bool DnsConfigHasBeenSet() const
const Aws::String & GetName() const
const Aws::String & GetDescription() const
void SetHealthCheckCustomConfig(HealthCheckCustomConfigT &&value)
virtual const char * GetServiceRequestName() const override
void SetName(NameT &&value)
void SetDescription(DescriptionT &&value)
bool TagsHasBeenSet() const
const HealthCheckCustomConfig & GetHealthCheckCustomConfig() const
const Aws::String & GetCreatorRequestId() const
bool DescriptionHasBeenSet() const
CreateServiceRequest & WithHealthCheckConfig(HealthCheckConfigT &&value)
CreateServiceRequest & WithHealthCheckCustomConfig(HealthCheckCustomConfigT &&value)
void SetTags(TagsT &&value)
const Aws::Vector< Tag > & GetTags() const
AWS_SERVICEDISCOVERY_API Aws::String SerializePayload() const override
bool NamespaceIdHasBeenSet() const
const DnsConfig & GetDnsConfig() const
CreateServiceRequest & WithCreatorRequestId(CreatorRequestIdT &&value)
CreateServiceRequest & WithDnsConfig(DnsConfigT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector