7#include <aws/servicediscovery/ServiceDiscovery_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/servicediscovery/model/DnsConfig.h>
10#include <aws/servicediscovery/model/ServiceType.h>
11#include <aws/servicediscovery/model/HealthCheckConfig.h>
12#include <aws/servicediscovery/model/HealthCheckCustomConfig.h>
13#include <aws/core/utils/DateTime.h>
26namespace ServiceDiscovery
40 AWS_SERVICEDISCOVERY_API
Service() =
default;
52 template<
typename IdT = Aws::String>
53 void SetId(IdT&& value) { m_idHasBeenSet =
true; m_id = std::forward<IdT>(value); }
54 template<
typename IdT = Aws::String>
65 template<
typename ArnT = Aws::String>
66 void SetArn(ArnT&& value) { m_arnHasBeenSet =
true; m_arn = std::forward<ArnT>(value); }
67 template<
typename ArnT = Aws::String>
77 template<
typename NameT = Aws::String>
78 void SetName(NameT&& value) { m_nameHasBeenSet =
true; m_name = std::forward<NameT>(value); }
79 template<
typename NameT = Aws::String>
89 template<
typename NamespaceIdT = Aws::String>
90 void SetNamespaceId(NamespaceIdT&& value) { m_namespaceIdHasBeenSet =
true; m_namespaceId = std::forward<NamespaceIdT>(value); }
91 template<
typename NamespaceIdT = Aws::String>
101 template<
typename DescriptionT = Aws::String>
102 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet =
true; m_description = std::forward<DescriptionT>(value); }
103 template<
typename DescriptionT = Aws::String>
116 inline void SetInstanceCount(
int value) { m_instanceCountHasBeenSet =
true; m_instanceCount = value; }
129 template<
typename DnsConfigT = DnsConfig>
130 void SetDnsConfig(DnsConfigT&& value) { m_dnsConfigHasBeenSet =
true; m_dnsConfig = std::forward<DnsConfigT>(value); }
131 template<
typename DnsConfigT = DnsConfig>
161 template<
typename HealthCheckConfigT = HealthCheckConfig>
162 void SetHealthCheckConfig(HealthCheckConfigT&& value) { m_healthCheckConfigHasBeenSet =
true; m_healthCheckConfig = std::forward<HealthCheckConfigT>(value); }
163 template<
typename HealthCheckConfigT = HealthCheckConfig>
176 template<
typename HealthCheckCustomConfigT = HealthCheckCustomConfig>
177 void SetHealthCheckCustomConfig(HealthCheckCustomConfigT&& value) { m_healthCheckCustomConfigHasBeenSet =
true; m_healthCheckCustomConfig = std::forward<HealthCheckCustomConfigT>(value); }
178 template<
typename HealthCheckCustomConfigT = HealthCheckCustomConfig>
191 template<
typename CreateDateT = Aws::Utils::DateTime>
192 void SetCreateDate(CreateDateT&& value) { m_createDateHasBeenSet =
true; m_createDate = std::forward<CreateDateT>(value); }
193 template<
typename CreateDateT = Aws::Utils::DateTime>
206 template<
typename CreatorRequestIdT = Aws::String>
207 void SetCreatorRequestId(CreatorRequestIdT&& value) { m_creatorRequestIdHasBeenSet =
true; m_creatorRequestId = std::forward<CreatorRequestIdT>(value); }
208 template<
typename CreatorRequestIdT = Aws::String>
214 bool m_idHasBeenSet =
false;
217 bool m_arnHasBeenSet =
false;
220 bool m_nameHasBeenSet =
false;
223 bool m_namespaceIdHasBeenSet =
false;
226 bool m_descriptionHasBeenSet =
false;
228 int m_instanceCount{0};
229 bool m_instanceCountHasBeenSet =
false;
231 DnsConfig m_dnsConfig;
232 bool m_dnsConfigHasBeenSet =
false;
235 bool m_typeHasBeenSet =
false;
237 HealthCheckConfig m_healthCheckConfig;
238 bool m_healthCheckConfigHasBeenSet =
false;
240 HealthCheckCustomConfig m_healthCheckCustomConfig;
241 bool m_healthCheckCustomConfigHasBeenSet =
false;
244 bool m_createDateHasBeenSet =
false;
247 bool m_creatorRequestIdHasBeenSet =
false;
AWS_SERVICEDISCOVERY_API Service(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetDescription() const
bool IdHasBeenSet() const
void SetInstanceCount(int value)
Service & WithCreatorRequestId(CreatorRequestIdT &&value)
const Aws::String & GetArn() const
const Aws::String & GetId() const
bool InstanceCountHasBeenSet() const
void SetHealthCheckConfig(HealthCheckConfigT &&value)
AWS_SERVICEDISCOVERY_API Aws::Utils::Json::JsonValue Jsonize() const
void SetCreateDate(CreateDateT &&value)
const Aws::String & GetName() const
void SetArn(ArnT &&value)
bool DnsConfigHasBeenSet() const
Service & WithHealthCheckConfig(HealthCheckConfigT &&value)
bool HealthCheckConfigHasBeenSet() const
bool CreateDateHasBeenSet() const
AWS_SERVICEDISCOVERY_API Service & operator=(Aws::Utils::Json::JsonView jsonValue)
bool TypeHasBeenSet() const
const HealthCheckCustomConfig & GetHealthCheckCustomConfig() const
Service & WithInstanceCount(int value)
int GetInstanceCount() const
bool NameHasBeenSet() const
Service & WithDescription(DescriptionT &&value)
Service & WithName(NameT &&value)
const Aws::String & GetNamespaceId() const
bool HealthCheckCustomConfigHasBeenSet() const
bool CreatorRequestIdHasBeenSet() const
const Aws::Utils::DateTime & GetCreateDate() const
void SetCreatorRequestId(CreatorRequestIdT &&value)
Service & WithArn(ArnT &&value)
void SetDescription(DescriptionT &&value)
ServiceType GetType() const
const Aws::String & GetCreatorRequestId() const
const DnsConfig & GetDnsConfig() const
bool NamespaceIdHasBeenSet() const
Service & WithCreateDate(CreateDateT &&value)
const HealthCheckConfig & GetHealthCheckConfig() const
bool ArnHasBeenSet() const
Service & WithHealthCheckCustomConfig(HealthCheckCustomConfigT &&value)
AWS_SERVICEDISCOVERY_API Service()=default
Service & WithDnsConfig(DnsConfigT &&value)
void SetDnsConfig(DnsConfigT &&value)
void SetType(ServiceType value)
Service & WithNamespaceId(NamespaceIdT &&value)
void SetNamespaceId(NamespaceIdT &&value)
bool DescriptionHasBeenSet() const
void SetName(NameT &&value)
void SetHealthCheckCustomConfig(HealthCheckCustomConfigT &&value)
Service & WithType(ServiceType value)
Service & WithId(IdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue