/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace ServiceDiscovery { namespace Model { /** *

A complex type that contains changes to an existing service.

See * Also:

AWS * API Reference

*/ class ServiceChange { public: AWS_SERVICEDISCOVERY_API ServiceChange(); AWS_SERVICEDISCOVERY_API ServiceChange(Aws::Utils::Json::JsonView jsonValue); AWS_SERVICEDISCOVERY_API ServiceChange& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SERVICEDISCOVERY_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

A description for the service.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

A description for the service.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

A description for the service.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

A description for the service.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

A description for the service.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

A description for the service.

*/ inline ServiceChange& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

A description for the service.

*/ inline ServiceChange& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

A description for the service.

*/ inline ServiceChange& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

Information about the Route 53 DNS records that you want Cloud Map to create * when you register an instance.

*/ inline const DnsConfigChange& GetDnsConfig() const{ return m_dnsConfig; } /** *

Information about the Route 53 DNS records that you want Cloud Map to create * when you register an instance.

*/ inline bool DnsConfigHasBeenSet() const { return m_dnsConfigHasBeenSet; } /** *

Information about the Route 53 DNS records that you want Cloud Map to create * when you register an instance.

*/ inline void SetDnsConfig(const DnsConfigChange& value) { m_dnsConfigHasBeenSet = true; m_dnsConfig = value; } /** *

Information about the Route 53 DNS records that you want Cloud Map to create * when you register an instance.

*/ inline void SetDnsConfig(DnsConfigChange&& value) { m_dnsConfigHasBeenSet = true; m_dnsConfig = std::move(value); } /** *

Information about the Route 53 DNS records that you want Cloud Map to create * when you register an instance.

*/ inline ServiceChange& WithDnsConfig(const DnsConfigChange& value) { SetDnsConfig(value); return *this;} /** *

Information about the Route 53 DNS records that you want Cloud Map to create * when you register an instance.

*/ inline ServiceChange& WithDnsConfig(DnsConfigChange&& value) { SetDnsConfig(std::move(value)); return *this;} /** *

Public DNS and HTTP namespaces only. Settings for an optional health * check. If you specify settings for a health check, Cloud Map associates the * health check with the records that you specify in DnsConfig.

*/ inline const HealthCheckConfig& GetHealthCheckConfig() const{ return m_healthCheckConfig; } /** *

Public DNS and HTTP namespaces only. Settings for an optional health * check. If you specify settings for a health check, Cloud Map associates the * health check with the records that you specify in DnsConfig.

*/ inline bool HealthCheckConfigHasBeenSet() const { return m_healthCheckConfigHasBeenSet; } /** *

Public DNS and HTTP namespaces only. Settings for an optional health * check. If you specify settings for a health check, Cloud Map associates the * health check with the records that you specify in DnsConfig.

*/ inline void SetHealthCheckConfig(const HealthCheckConfig& value) { m_healthCheckConfigHasBeenSet = true; m_healthCheckConfig = value; } /** *

Public DNS and HTTP namespaces only. Settings for an optional health * check. If you specify settings for a health check, Cloud Map associates the * health check with the records that you specify in DnsConfig.

*/ inline void SetHealthCheckConfig(HealthCheckConfig&& value) { m_healthCheckConfigHasBeenSet = true; m_healthCheckConfig = std::move(value); } /** *

Public DNS and HTTP namespaces only. Settings for an optional health * check. If you specify settings for a health check, Cloud Map associates the * health check with the records that you specify in DnsConfig.

*/ inline ServiceChange& WithHealthCheckConfig(const HealthCheckConfig& value) { SetHealthCheckConfig(value); return *this;} /** *

Public DNS and HTTP namespaces only. Settings for an optional health * check. If you specify settings for a health check, Cloud Map associates the * health check with the records that you specify in DnsConfig.

*/ inline ServiceChange& WithHealthCheckConfig(HealthCheckConfig&& value) { SetHealthCheckConfig(std::move(value)); return *this;} private: Aws::String m_description; bool m_descriptionHasBeenSet = false; DnsConfigChange m_dnsConfig; bool m_dnsConfigHasBeenSet = false; HealthCheckConfig m_healthCheckConfig; bool m_healthCheckConfigHasBeenSet = false; }; } // namespace Model } // namespace ServiceDiscovery } // namespace Aws