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>
82 template<
typename ResourceOwnerT = Aws::String>
83 void SetResourceOwner(ResourceOwnerT&& value) { m_resourceOwnerHasBeenSet =
true; m_resourceOwner = std::forward<ResourceOwnerT>(value); }
84 template<
typename ResourceOwnerT = Aws::String>
94 template<
typename NameT = Aws::String>
95 void SetName(NameT&& value) { m_nameHasBeenSet =
true; m_name = std::forward<NameT>(value); }
96 template<
typename NameT = Aws::String>
106 template<
typename NamespaceIdT = Aws::String>
107 void SetNamespaceId(NamespaceIdT&& value) { m_namespaceIdHasBeenSet =
true; m_namespaceId = std::forward<NamespaceIdT>(value); }
108 template<
typename NamespaceIdT = Aws::String>
118 template<
typename DescriptionT = Aws::String>
119 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet =
true; m_description = std::forward<DescriptionT>(value); }
120 template<
typename DescriptionT = Aws::String>
133 inline void SetInstanceCount(
int value) { m_instanceCountHasBeenSet =
true; m_instanceCount = value; }
146 template<
typename DnsConfigT = DnsConfig>
147 void SetDnsConfig(DnsConfigT&& value) { m_dnsConfigHasBeenSet =
true; m_dnsConfig = std::forward<DnsConfigT>(value); }
148 template<
typename DnsConfigT = DnsConfig>
178 template<
typename HealthCheckConfigT = HealthCheckConfig>
179 void SetHealthCheckConfig(HealthCheckConfigT&& value) { m_healthCheckConfigHasBeenSet =
true; m_healthCheckConfig = std::forward<HealthCheckConfigT>(value); }
180 template<
typename HealthCheckConfigT = HealthCheckConfig>
193 template<
typename HealthCheckCustomConfigT = HealthCheckCustomConfig>
194 void SetHealthCheckCustomConfig(HealthCheckCustomConfigT&& value) { m_healthCheckCustomConfigHasBeenSet =
true; m_healthCheckCustomConfig = std::forward<HealthCheckCustomConfigT>(value); }
195 template<
typename HealthCheckCustomConfigT = HealthCheckCustomConfig>
208 template<
typename CreateDateT = Aws::Utils::DateTime>
209 void SetCreateDate(CreateDateT&& value) { m_createDateHasBeenSet =
true; m_createDate = std::forward<CreateDateT>(value); }
210 template<
typename CreateDateT = Aws::Utils::DateTime>
223 template<
typename CreatorRequestIdT = Aws::String>
224 void SetCreatorRequestId(CreatorRequestIdT&& value) { m_creatorRequestIdHasBeenSet =
true; m_creatorRequestId = std::forward<CreatorRequestIdT>(value); }
225 template<
typename CreatorRequestIdT = Aws::String>
240 template<
typename CreatedByAccountT = Aws::String>
241 void SetCreatedByAccount(CreatedByAccountT&& value) { m_createdByAccountHasBeenSet =
true; m_createdByAccount = std::forward<CreatedByAccountT>(value); }
242 template<
typename CreatedByAccountT = Aws::String>
248 bool m_idHasBeenSet =
false;
251 bool m_arnHasBeenSet =
false;
254 bool m_resourceOwnerHasBeenSet =
false;
257 bool m_nameHasBeenSet =
false;
260 bool m_namespaceIdHasBeenSet =
false;
263 bool m_descriptionHasBeenSet =
false;
265 int m_instanceCount{0};
266 bool m_instanceCountHasBeenSet =
false;
268 DnsConfig m_dnsConfig;
269 bool m_dnsConfigHasBeenSet =
false;
272 bool m_typeHasBeenSet =
false;
274 HealthCheckConfig m_healthCheckConfig;
275 bool m_healthCheckConfigHasBeenSet =
false;
277 HealthCheckCustomConfig m_healthCheckCustomConfig;
278 bool m_healthCheckCustomConfigHasBeenSet =
false;
281 bool m_createDateHasBeenSet =
false;
284 bool m_creatorRequestIdHasBeenSet =
false;
287 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