AWS SDK for C++  1.9.105
AWS SDK for C++
DnsConfigChange.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace ServiceDiscovery
23 {
24 namespace Model
25 {
26 
35  {
36  public:
41 
42 
47  inline const Aws::Vector<DnsRecord>& GetDnsRecords() const{ return m_dnsRecords; }
48 
53  inline bool DnsRecordsHasBeenSet() const { return m_dnsRecordsHasBeenSet; }
54 
59  inline void SetDnsRecords(const Aws::Vector<DnsRecord>& value) { m_dnsRecordsHasBeenSet = true; m_dnsRecords = value; }
60 
65  inline void SetDnsRecords(Aws::Vector<DnsRecord>&& value) { m_dnsRecordsHasBeenSet = true; m_dnsRecords = std::move(value); }
66 
71  inline DnsConfigChange& WithDnsRecords(const Aws::Vector<DnsRecord>& value) { SetDnsRecords(value); return *this;}
72 
77  inline DnsConfigChange& WithDnsRecords(Aws::Vector<DnsRecord>&& value) { SetDnsRecords(std::move(value)); return *this;}
78 
83  inline DnsConfigChange& AddDnsRecords(const DnsRecord& value) { m_dnsRecordsHasBeenSet = true; m_dnsRecords.push_back(value); return *this; }
84 
89  inline DnsConfigChange& AddDnsRecords(DnsRecord&& value) { m_dnsRecordsHasBeenSet = true; m_dnsRecords.push_back(std::move(value)); return *this; }
90 
91  private:
92 
93  Aws::Vector<DnsRecord> m_dnsRecords;
94  bool m_dnsRecordsHasBeenSet;
95  };
96 
97 } // namespace Model
98 } // namespace ServiceDiscovery
99 } // namespace Aws
AWS_SERVICEDISCOVERY_API
#define AWS_SERVICEDISCOVERY_API
Definition: ServiceDiscovery_EXPORTS.h:28
Aws::ServiceDiscovery::Model::DnsConfigChange::WithDnsRecords
DnsConfigChange & WithDnsRecords(const Aws::Vector< DnsRecord > &value)
Definition: DnsConfigChange.h:71
ServiceDiscovery_EXPORTS.h
Aws::ServiceDiscovery::Model::DnsRecord
Definition: DnsRecord.h:34
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::ServiceDiscovery::Model::DnsConfigChange::AddDnsRecords
DnsConfigChange & AddDnsRecords(DnsRecord &&value)
Definition: DnsConfigChange.h:89
Aws::ServiceDiscovery::Model::DnsConfigChange::WithDnsRecords
DnsConfigChange & WithDnsRecords(Aws::Vector< DnsRecord > &&value)
Definition: DnsConfigChange.h:77
Aws::ServiceDiscovery::Model::DnsConfigChange::GetDnsRecords
const Aws::Vector< DnsRecord > & GetDnsRecords() const
Definition: DnsConfigChange.h:47
AWSVector.h
Aws::ServiceDiscovery::Model::DnsConfigChange::AddDnsRecords
DnsConfigChange & AddDnsRecords(const DnsRecord &value)
Definition: DnsConfigChange.h:83
Aws::ServiceDiscovery::Model::DnsConfigChange::operator=
DnsConfigChange & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::ServiceDiscovery::Model::DnsConfigChange::DnsConfigChange
DnsConfigChange()
Aws::ServiceDiscovery::Model::DnsConfigChange::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::ServiceDiscovery::Model::DnsConfigChange::DnsConfigChange
DnsConfigChange(Aws::Utils::Json::JsonView jsonValue)
Aws::ServiceDiscovery::Model::DnsConfigChange::SetDnsRecords
void SetDnsRecords(const Aws::Vector< DnsRecord > &value)
Definition: DnsConfigChange.h:59
Aws::ServiceDiscovery::Model::DnsConfigChange::DnsRecordsHasBeenSet
bool DnsRecordsHasBeenSet() const
Definition: DnsConfigChange.h:53
Aws
Definition: AccessManagementClient.h:15
Aws::ServiceDiscovery::Model::DnsConfigChange
Definition: DnsConfigChange.h:35
DnsRecord.h
Aws::ServiceDiscovery::Model::DnsConfigChange::SetDnsRecords
void SetDnsRecords(Aws::Vector< DnsRecord > &&value)
Definition: DnsConfigChange.h:65