7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/servicediscovery/ServiceDiscovery_EXPORTS.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/servicediscovery/model/ServiceType.h>
24namespace ServiceDiscovery {
35 AWS_SERVICEDISCOVERY_API
Service() =
default;
46 template <
typename IdT = Aws::String>
48 m_idHasBeenSet =
true;
49 m_id = std::forward<IdT>(value);
51 template <
typename IdT = Aws::String>
53 SetId(std::forward<IdT>(value));
65 template <
typename ArnT = Aws::String>
67 m_arnHasBeenSet =
true;
68 m_arn = std::forward<ArnT>(value);
70 template <
typename ArnT = Aws::String>
72 SetArn(std::forward<ArnT>(value));
88 template <
typename ResourceOwnerT = Aws::String>
90 m_resourceOwnerHasBeenSet =
true;
91 m_resourceOwner = std::forward<ResourceOwnerT>(value);
93 template <
typename ResourceOwnerT = Aws::String>
106 template <
typename NameT = Aws::String>
108 m_nameHasBeenSet =
true;
109 m_name = std::forward<NameT>(value);
111 template <
typename NameT = Aws::String>
113 SetName(std::forward<NameT>(value));
124 template <
typename NamespaceIdT = Aws::String>
126 m_namespaceIdHasBeenSet =
true;
127 m_namespaceId = std::forward<NamespaceIdT>(value);
129 template <
typename NamespaceIdT = Aws::String>
142 template <
typename DescriptionT = Aws::String>
144 m_descriptionHasBeenSet =
true;
145 m_description = std::forward<DescriptionT>(value);
147 template <
typename DescriptionT = Aws::String>
164 m_instanceCountHasBeenSet =
true;
165 m_instanceCount = value;
182 template <
typename DnsConfigT = DnsConfig>
184 m_dnsConfigHasBeenSet =
true;
185 m_dnsConfig = std::forward<DnsConfigT>(value);
187 template <
typename DnsConfigT = DnsConfig>
206 m_typeHasBeenSet =
true;
226 template <
typename HealthCheckConfigT = HealthCheckConfig>
228 m_healthCheckConfigHasBeenSet =
true;
229 m_healthCheckConfig = std::forward<HealthCheckConfigT>(value);
231 template <
typename HealthCheckConfigT = HealthCheckConfig>
247 template <
typename HealthCheckCustomConfigT = HealthCheckCustomConfig>
249 m_healthCheckCustomConfigHasBeenSet =
true;
250 m_healthCheckCustomConfig = std::forward<HealthCheckCustomConfigT>(value);
252 template <
typename HealthCheckCustomConfigT = HealthCheckCustomConfig>
268 template <
typename CreateDateT = Aws::Utils::DateTime>
270 m_createDateHasBeenSet =
true;
271 m_createDate = std::forward<CreateDateT>(value);
273 template <
typename CreateDateT = Aws::Utils::DateTime>
289 template <
typename CreatorRequestIdT = Aws::String>
291 m_creatorRequestIdHasBeenSet =
true;
292 m_creatorRequestId = std::forward<CreatorRequestIdT>(value);
294 template <
typename CreatorRequestIdT = Aws::String>
312 template <
typename CreatedByAccountT = Aws::String>
314 m_createdByAccountHasBeenSet =
true;
315 m_createdByAccount = std::forward<CreatedByAccountT>(value);
317 template <
typename CreatedByAccountT = Aws::String>
336 int m_instanceCount{0};
338 DnsConfig m_dnsConfig;
342 HealthCheckConfig m_healthCheckConfig;
344 HealthCheckCustomConfig m_healthCheckCustomConfig;
351 bool m_idHasBeenSet =
false;
352 bool m_arnHasBeenSet =
false;
353 bool m_resourceOwnerHasBeenSet =
false;
354 bool m_nameHasBeenSet =
false;
355 bool m_namespaceIdHasBeenSet =
false;
356 bool m_descriptionHasBeenSet =
false;
357 bool m_instanceCountHasBeenSet =
false;
358 bool m_dnsConfigHasBeenSet =
false;
359 bool m_typeHasBeenSet =
false;
360 bool m_healthCheckConfigHasBeenSet =
false;
361 bool m_healthCheckCustomConfigHasBeenSet =
false;
362 bool m_createDateHasBeenSet =
false;
363 bool m_creatorRequestIdHasBeenSet =
false;
364 bool m_createdByAccountHasBeenSet =
false;
AWS_SERVICEDISCOVERY_API Service(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetDescription() const
bool IdHasBeenSet() const
void SetInstanceCount(int value)
bool ResourceOwnerHasBeenSet() const
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
void SetResourceOwner(ResourceOwnerT &&value)
bool NameHasBeenSet() const
Service & WithDescription(DescriptionT &&value)
bool CreatedByAccountHasBeenSet() const
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)
const Aws::String & GetResourceOwner() const
void SetDescription(DescriptionT &&value)
ServiceType GetType() const
const Aws::String & GetCreatorRequestId() const
const Aws::String & GetCreatedByAccount() 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 & WithResourceOwner(ResourceOwnerT &&value)
Service & WithNamespaceId(NamespaceIdT &&value)
void SetNamespaceId(NamespaceIdT &&value)
void SetCreatedByAccount(CreatedByAccountT &&value)
bool DescriptionHasBeenSet() const
Service & WithCreatedByAccount(CreatedByAccountT &&value)
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