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>
82 template<
typename NamespaceIdT = Aws::String>
83 void SetNamespaceId(NamespaceIdT&& value) { m_namespaceIdHasBeenSet =
true; m_namespaceId = std::forward<NamespaceIdT>(value); }
84 template<
typename NamespaceIdT = Aws::String>
97 template<
typename CreatorRequestIdT = Aws::String>
98 void SetCreatorRequestId(CreatorRequestIdT&& value) { m_creatorRequestIdHasBeenSet =
true; m_creatorRequestId = std::forward<CreatorRequestIdT>(value); }
99 template<
typename CreatorRequestIdT = Aws::String>
109 template<
typename DescriptionT = Aws::String>
110 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet =
true; m_description = std::forward<DescriptionT>(value); }
111 template<
typename DescriptionT = Aws::String>
122 template<
typename DnsConfigT = DnsConfig>
123 void SetDnsConfig(DnsConfigT&& value) { m_dnsConfigHasBeenSet =
true; m_dnsConfig = std::forward<DnsConfigT>(value); }
124 template<
typename DnsConfigT = DnsConfig>
142 template<
typename HealthCheckConfigT = HealthCheckConfig>
143 void SetHealthCheckConfig(HealthCheckConfigT&& value) { m_healthCheckConfigHasBeenSet =
true; m_healthCheckConfig = std::forward<HealthCheckConfigT>(value); }
144 template<
typename HealthCheckConfigT = HealthCheckConfig>
159 template<
typename HealthCheckCustomConfigT = HealthCheckCustomConfig>
160 void SetHealthCheckCustomConfig(HealthCheckCustomConfigT&& value) { m_healthCheckCustomConfigHasBeenSet =
true; m_healthCheckCustomConfig = std::forward<HealthCheckCustomConfigT>(value); }
161 template<
typename HealthCheckCustomConfigT = HealthCheckCustomConfig>
173 template<
typename TagsT = Aws::Vector<Tag>>
174 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
175 template<
typename TagsT = Aws::Vector<Tag>>
177 template<
typename TagsT = Tag>
195 bool m_nameHasBeenSet =
false;
198 bool m_namespaceIdHasBeenSet =
false;
201 bool m_creatorRequestIdHasBeenSet =
true;
204 bool m_descriptionHasBeenSet =
false;
206 DnsConfig m_dnsConfig;
207 bool m_dnsConfigHasBeenSet =
false;
209 HealthCheckConfig m_healthCheckConfig;
210 bool m_healthCheckConfigHasBeenSet =
false;
212 HealthCheckCustomConfig m_healthCheckCustomConfig;
213 bool m_healthCheckCustomConfigHasBeenSet =
false;
216 bool m_tagsHasBeenSet =
false;
219 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