AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DnsConfig.h
1
6#pragma once
7#include <aws/servicediscovery/ServiceDiscovery_EXPORTS.h>
8#include <aws/servicediscovery/model/RoutingPolicy.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/servicediscovery/model/DnsRecord.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace ServiceDiscovery
24{
25namespace Model
26{
27
38 {
39 public:
40 AWS_SERVICEDISCOVERY_API DnsConfig();
41 AWS_SERVICEDISCOVERY_API DnsConfig(Aws::Utils::Json::JsonView jsonValue);
42 AWS_SERVICEDISCOVERY_API DnsConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_SERVICEDISCOVERY_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
80 inline const RoutingPolicy& GetRoutingPolicy() const{ return m_routingPolicy; }
81 inline bool RoutingPolicyHasBeenSet() const { return m_routingPolicyHasBeenSet; }
82 inline void SetRoutingPolicy(const RoutingPolicy& value) { m_routingPolicyHasBeenSet = true; m_routingPolicy = value; }
83 inline void SetRoutingPolicy(RoutingPolicy&& value) { m_routingPolicyHasBeenSet = true; m_routingPolicy = std::move(value); }
84 inline DnsConfig& WithRoutingPolicy(const RoutingPolicy& value) { SetRoutingPolicy(value); return *this;}
85 inline DnsConfig& WithRoutingPolicy(RoutingPolicy&& value) { SetRoutingPolicy(std::move(value)); return *this;}
87
89
93 inline const Aws::Vector<DnsRecord>& GetDnsRecords() const{ return m_dnsRecords; }
94 inline bool DnsRecordsHasBeenSet() const { return m_dnsRecordsHasBeenSet; }
95 inline void SetDnsRecords(const Aws::Vector<DnsRecord>& value) { m_dnsRecordsHasBeenSet = true; m_dnsRecords = value; }
96 inline void SetDnsRecords(Aws::Vector<DnsRecord>&& value) { m_dnsRecordsHasBeenSet = true; m_dnsRecords = std::move(value); }
97 inline DnsConfig& WithDnsRecords(const Aws::Vector<DnsRecord>& value) { SetDnsRecords(value); return *this;}
98 inline DnsConfig& WithDnsRecords(Aws::Vector<DnsRecord>&& value) { SetDnsRecords(std::move(value)); return *this;}
99 inline DnsConfig& AddDnsRecords(const DnsRecord& value) { m_dnsRecordsHasBeenSet = true; m_dnsRecords.push_back(value); return *this; }
100 inline DnsConfig& AddDnsRecords(DnsRecord&& value) { m_dnsRecordsHasBeenSet = true; m_dnsRecords.push_back(std::move(value)); return *this; }
102 private:
103
104 RoutingPolicy m_routingPolicy;
105 bool m_routingPolicyHasBeenSet = false;
106
107 Aws::Vector<DnsRecord> m_dnsRecords;
108 bool m_dnsRecordsHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace ServiceDiscovery
113} // namespace Aws
DnsConfig & WithDnsRecords(const Aws::Vector< DnsRecord > &value)
Definition DnsConfig.h:97
AWS_SERVICEDISCOVERY_API DnsConfig(Aws::Utils::Json::JsonView jsonValue)
const RoutingPolicy & GetRoutingPolicy() const
Definition DnsConfig.h:80
DnsConfig & WithDnsRecords(Aws::Vector< DnsRecord > &&value)
Definition DnsConfig.h:98
void SetDnsRecords(const Aws::Vector< DnsRecord > &value)
Definition DnsConfig.h:95
DnsConfig & AddDnsRecords(DnsRecord &&value)
Definition DnsConfig.h:100
void SetDnsRecords(Aws::Vector< DnsRecord > &&value)
Definition DnsConfig.h:96
AWS_SERVICEDISCOVERY_API DnsConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
DnsConfig & WithRoutingPolicy(RoutingPolicy &&value)
Definition DnsConfig.h:85
void SetRoutingPolicy(RoutingPolicy &&value)
Definition DnsConfig.h:83
AWS_SERVICEDISCOVERY_API DnsConfig()
AWS_SERVICEDISCOVERY_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< DnsRecord > & GetDnsRecords() const
Definition DnsConfig.h:93
DnsConfig & AddDnsRecords(const DnsRecord &value)
Definition DnsConfig.h:99
void SetRoutingPolicy(const RoutingPolicy &value)
Definition DnsConfig.h:82
DnsConfig & WithRoutingPolicy(const RoutingPolicy &value)
Definition DnsConfig.h:84
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue