100 lines
3.6 KiB
C++
100 lines
3.6 KiB
C++
/**
|
||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||
* SPDX-License-Identifier: Apache-2.0.
|
||
*/
|
||
|
||
#pragma once
|
||
#include <aws/servicediscovery/ServiceDiscovery_EXPORTS.h>
|
||
#include <aws/core/utils/memory/stl/AWSVector.h>
|
||
#include <aws/servicediscovery/model/DnsRecord.h>
|
||
#include <utility>
|
||
|
||
namespace Aws
|
||
{
|
||
namespace Utils
|
||
{
|
||
namespace Json
|
||
{
|
||
class JsonValue;
|
||
class JsonView;
|
||
} // namespace Json
|
||
} // namespace Utils
|
||
namespace ServiceDiscovery
|
||
{
|
||
namespace Model
|
||
{
|
||
|
||
/**
|
||
* <p>A complex type that contains information about changes to the Route 53 DNS
|
||
* records that AWS Cloud Map creates when you register an instance.</p><p><h3>See
|
||
* Also:</h3> <a
|
||
* href="http://docs.aws.amazon.com/goto/WebAPI/servicediscovery-2017-03-14/DnsConfigChange">AWS
|
||
* API Reference</a></p>
|
||
*/
|
||
class AWS_SERVICEDISCOVERY_API DnsConfigChange
|
||
{
|
||
public:
|
||
DnsConfigChange();
|
||
DnsConfigChange(Aws::Utils::Json::JsonView jsonValue);
|
||
DnsConfigChange& operator=(Aws::Utils::Json::JsonView jsonValue);
|
||
Aws::Utils::Json::JsonValue Jsonize() const;
|
||
|
||
|
||
/**
|
||
* <p>An array that contains one <code>DnsRecord</code> object for each Route 53
|
||
* record that you want AWS Cloud Map to create when you register an instance.</p>
|
||
*/
|
||
inline const Aws::Vector<DnsRecord>& GetDnsRecords() const{ return m_dnsRecords; }
|
||
|
||
/**
|
||
* <p>An array that contains one <code>DnsRecord</code> object for each Route 53
|
||
* record that you want AWS Cloud Map to create when you register an instance.</p>
|
||
*/
|
||
inline bool DnsRecordsHasBeenSet() const { return m_dnsRecordsHasBeenSet; }
|
||
|
||
/**
|
||
* <p>An array that contains one <code>DnsRecord</code> object for each Route 53
|
||
* record that you want AWS Cloud Map to create when you register an instance.</p>
|
||
*/
|
||
inline void SetDnsRecords(const Aws::Vector<DnsRecord>& value) { m_dnsRecordsHasBeenSet = true; m_dnsRecords = value; }
|
||
|
||
/**
|
||
* <p>An array that contains one <code>DnsRecord</code> object for each Route 53
|
||
* record that you want AWS Cloud Map to create when you register an instance.</p>
|
||
*/
|
||
inline void SetDnsRecords(Aws::Vector<DnsRecord>&& value) { m_dnsRecordsHasBeenSet = true; m_dnsRecords = std::move(value); }
|
||
|
||
/**
|
||
* <p>An array that contains one <code>DnsRecord</code> object for each Route 53
|
||
* record that you want AWS Cloud Map to create when you register an instance.</p>
|
||
*/
|
||
inline DnsConfigChange& WithDnsRecords(const Aws::Vector<DnsRecord>& value) { SetDnsRecords(value); return *this;}
|
||
|
||
/**
|
||
* <p>An array that contains one <code>DnsRecord</code> object for each Route 53
|
||
* record that you want AWS Cloud Map to create when you register an instance.</p>
|
||
*/
|
||
inline DnsConfigChange& WithDnsRecords(Aws::Vector<DnsRecord>&& value) { SetDnsRecords(std::move(value)); return *this;}
|
||
|
||
/**
|
||
* <p>An array that contains one <code>DnsRecord</code> object for each Route 53
|
||
* record that you want AWS Cloud Map to create when you register an instance.</p>
|
||
*/
|
||
inline DnsConfigChange& AddDnsRecords(const DnsRecord& value) { m_dnsRecordsHasBeenSet = true; m_dnsRecords.push_back(value); return *this; }
|
||
|
||
/**
|
||
* <p>An array that contains one <code>DnsRecord</code> object for each Route 53
|
||
* record that you want AWS Cloud Map to create when you register an instance.</p>
|
||
*/
|
||
inline DnsConfigChange& AddDnsRecords(DnsRecord&& value) { m_dnsRecordsHasBeenSet = true; m_dnsRecords.push_back(std::move(value)); return *this; }
|
||
|
||
private:
|
||
|
||
Aws::Vector<DnsRecord> m_dnsRecords;
|
||
bool m_dnsRecordsHasBeenSet;
|
||
};
|
||
|
||
} // namespace Model
|
||
} // namespace ServiceDiscovery
|
||
} // namespace Aws
|