/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#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 information about changes to the Route 53 DNS
* records that Cloud Map creates when you register an instance.
See
* Also:
AWS
* API Reference
*/
class DnsConfigChange
{
public:
AWS_SERVICEDISCOVERY_API DnsConfigChange();
AWS_SERVICEDISCOVERY_API DnsConfigChange(Aws::Utils::Json::JsonView jsonValue);
AWS_SERVICEDISCOVERY_API DnsConfigChange& operator=(Aws::Utils::Json::JsonView jsonValue);
AWS_SERVICEDISCOVERY_API Aws::Utils::Json::JsonValue Jsonize() const;
/**
* An array that contains one DnsRecord
object for each Route 53
* record that you want Cloud Map to create when you register an instance.
*/
inline const Aws::Vector& GetDnsRecords() const{ return m_dnsRecords; }
/**
* An array that contains one DnsRecord
object for each Route 53
* record that you want Cloud Map to create when you register an instance.
*/
inline bool DnsRecordsHasBeenSet() const { return m_dnsRecordsHasBeenSet; }
/**
* An array that contains one DnsRecord
object for each Route 53
* record that you want Cloud Map to create when you register an instance.
*/
inline void SetDnsRecords(const Aws::Vector& value) { m_dnsRecordsHasBeenSet = true; m_dnsRecords = value; }
/**
* An array that contains one DnsRecord
object for each Route 53
* record that you want Cloud Map to create when you register an instance.
*/
inline void SetDnsRecords(Aws::Vector&& value) { m_dnsRecordsHasBeenSet = true; m_dnsRecords = std::move(value); }
/**
* An array that contains one DnsRecord
object for each Route 53
* record that you want Cloud Map to create when you register an instance.
*/
inline DnsConfigChange& WithDnsRecords(const Aws::Vector& value) { SetDnsRecords(value); return *this;}
/**
* An array that contains one DnsRecord
object for each Route 53
* record that you want Cloud Map to create when you register an instance.
*/
inline DnsConfigChange& WithDnsRecords(Aws::Vector&& value) { SetDnsRecords(std::move(value)); return *this;}
/**
* An array that contains one DnsRecord
object for each Route 53
* record that you want Cloud Map to create when you register an instance.
*/
inline DnsConfigChange& AddDnsRecords(const DnsRecord& value) { m_dnsRecordsHasBeenSet = true; m_dnsRecords.push_back(value); return *this; }
/**
* An array that contains one DnsRecord
object for each Route 53
* record that you want Cloud Map to create when you register an instance.
*/
inline DnsConfigChange& AddDnsRecords(DnsRecord&& value) { m_dnsRecordsHasBeenSet = true; m_dnsRecords.push_back(std::move(value)); return *this; }
private:
Aws::Vector m_dnsRecords;
bool m_dnsRecordsHasBeenSet = false;
};
} // namespace Model
} // namespace ServiceDiscovery
} // namespace Aws