AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DnsConfigChange.h
1
6#pragma once
7#include <aws/servicediscovery/ServiceDiscovery_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/servicediscovery/model/DnsRecord.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace ServiceDiscovery
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_SERVICEDISCOVERY_API DnsConfigChange();
38 AWS_SERVICEDISCOVERY_API DnsConfigChange(Aws::Utils::Json::JsonView jsonValue);
39 AWS_SERVICEDISCOVERY_API DnsConfigChange& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_SERVICEDISCOVERY_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const Aws::Vector<DnsRecord>& GetDnsRecords() const{ return m_dnsRecords; }
49 inline bool DnsRecordsHasBeenSet() const { return m_dnsRecordsHasBeenSet; }
50 inline void SetDnsRecords(const Aws::Vector<DnsRecord>& value) { m_dnsRecordsHasBeenSet = true; m_dnsRecords = value; }
51 inline void SetDnsRecords(Aws::Vector<DnsRecord>&& value) { m_dnsRecordsHasBeenSet = true; m_dnsRecords = std::move(value); }
52 inline DnsConfigChange& WithDnsRecords(const Aws::Vector<DnsRecord>& value) { SetDnsRecords(value); return *this;}
53 inline DnsConfigChange& WithDnsRecords(Aws::Vector<DnsRecord>&& value) { SetDnsRecords(std::move(value)); return *this;}
54 inline DnsConfigChange& AddDnsRecords(const DnsRecord& value) { m_dnsRecordsHasBeenSet = true; m_dnsRecords.push_back(value); return *this; }
55 inline DnsConfigChange& AddDnsRecords(DnsRecord&& value) { m_dnsRecordsHasBeenSet = true; m_dnsRecords.push_back(std::move(value)); return *this; }
57 private:
58
59 Aws::Vector<DnsRecord> m_dnsRecords;
60 bool m_dnsRecordsHasBeenSet = false;
61 };
62
63} // namespace Model
64} // namespace ServiceDiscovery
65} // namespace Aws
DnsConfigChange & AddDnsRecords(const DnsRecord &value)
void SetDnsRecords(const Aws::Vector< DnsRecord > &value)
DnsConfigChange & WithDnsRecords(Aws::Vector< DnsRecord > &&value)
const Aws::Vector< DnsRecord > & GetDnsRecords() const
DnsConfigChange & AddDnsRecords(DnsRecord &&value)
DnsConfigChange & WithDnsRecords(const Aws::Vector< DnsRecord > &value)
AWS_SERVICEDISCOVERY_API DnsConfigChange & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetDnsRecords(Aws::Vector< DnsRecord > &&value)
AWS_SERVICEDISCOVERY_API DnsConfigChange(Aws::Utils::Json::JsonView jsonValue)
AWS_SERVICEDISCOVERY_API DnsConfigChange()
AWS_SERVICEDISCOVERY_API Aws::Utils::Json::JsonValue Jsonize() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue