AWS SDK for C++  1.9.104
AWS SDK for C++
DnsConfig.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace ServiceDiscovery
24 {
25 namespace Model
26 {
27 
36  {
37  public:
42 
43 
77  inline const RoutingPolicy& GetRoutingPolicy() const{ return m_routingPolicy; }
78 
112  inline bool RoutingPolicyHasBeenSet() const { return m_routingPolicyHasBeenSet; }
113 
147  inline void SetRoutingPolicy(const RoutingPolicy& value) { m_routingPolicyHasBeenSet = true; m_routingPolicy = value; }
148 
182  inline void SetRoutingPolicy(RoutingPolicy&& value) { m_routingPolicyHasBeenSet = true; m_routingPolicy = std::move(value); }
183 
217  inline DnsConfig& WithRoutingPolicy(const RoutingPolicy& value) { SetRoutingPolicy(value); return *this;}
218 
252  inline DnsConfig& WithRoutingPolicy(RoutingPolicy&& value) { SetRoutingPolicy(std::move(value)); return *this;}
253 
254 
259  inline const Aws::Vector<DnsRecord>& GetDnsRecords() const{ return m_dnsRecords; }
260 
265  inline bool DnsRecordsHasBeenSet() const { return m_dnsRecordsHasBeenSet; }
266 
271  inline void SetDnsRecords(const Aws::Vector<DnsRecord>& value) { m_dnsRecordsHasBeenSet = true; m_dnsRecords = value; }
272 
277  inline void SetDnsRecords(Aws::Vector<DnsRecord>&& value) { m_dnsRecordsHasBeenSet = true; m_dnsRecords = std::move(value); }
278 
283  inline DnsConfig& WithDnsRecords(const Aws::Vector<DnsRecord>& value) { SetDnsRecords(value); return *this;}
284 
289  inline DnsConfig& WithDnsRecords(Aws::Vector<DnsRecord>&& value) { SetDnsRecords(std::move(value)); return *this;}
290 
295  inline DnsConfig& AddDnsRecords(const DnsRecord& value) { m_dnsRecordsHasBeenSet = true; m_dnsRecords.push_back(value); return *this; }
296 
301  inline DnsConfig& AddDnsRecords(DnsRecord&& value) { m_dnsRecordsHasBeenSet = true; m_dnsRecords.push_back(std::move(value)); return *this; }
302 
303  private:
304 
305  RoutingPolicy m_routingPolicy;
306  bool m_routingPolicyHasBeenSet;
307 
308  Aws::Vector<DnsRecord> m_dnsRecords;
309  bool m_dnsRecordsHasBeenSet;
310  };
311 
312 } // namespace Model
313 } // namespace ServiceDiscovery
314 } // namespace Aws
AWS_SERVICEDISCOVERY_API
#define AWS_SERVICEDISCOVERY_API
Definition: ServiceDiscovery_EXPORTS.h:28
Aws::ServiceDiscovery::Model::DnsConfig::SetDnsRecords
void SetDnsRecords(Aws::Vector< DnsRecord > &&value)
Definition: DnsConfig.h:277
Aws::ServiceDiscovery::Model::DnsConfig::AddDnsRecords
DnsConfig & AddDnsRecords(const DnsRecord &value)
Definition: DnsConfig.h:295
Aws::ServiceDiscovery::Model::DnsConfig::SetRoutingPolicy
void SetRoutingPolicy(RoutingPolicy &&value)
Definition: DnsConfig.h:182
Aws::ServiceDiscovery::Model::DnsConfig::DnsRecordsHasBeenSet
bool DnsRecordsHasBeenSet() const
Definition: DnsConfig.h:265
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::DnsConfig::WithRoutingPolicy
DnsConfig & WithRoutingPolicy(const RoutingPolicy &value)
Definition: DnsConfig.h:217
AWSVector.h
Aws::ServiceDiscovery::Model::DnsConfig::WithDnsRecords
DnsConfig & WithDnsRecords(const Aws::Vector< DnsRecord > &value)
Definition: DnsConfig.h:283
Aws::ServiceDiscovery::Model::DnsConfig
Definition: DnsConfig.h:36
Aws::ServiceDiscovery::Model::DnsConfig::DnsConfig
DnsConfig()
Aws::ServiceDiscovery::Model::DnsConfig::AddDnsRecords
DnsConfig & AddDnsRecords(DnsRecord &&value)
Definition: DnsConfig.h:301
RoutingPolicy.h
Aws::ServiceDiscovery::Model::DnsConfig::RoutingPolicyHasBeenSet
bool RoutingPolicyHasBeenSet() const
Definition: DnsConfig.h:112
Aws::ServiceDiscovery::Model::DnsConfig::WithDnsRecords
DnsConfig & WithDnsRecords(Aws::Vector< DnsRecord > &&value)
Definition: DnsConfig.h:289
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::ServiceDiscovery::Model::DnsConfig::SetDnsRecords
void SetDnsRecords(const Aws::Vector< DnsRecord > &value)
Definition: DnsConfig.h:271
Aws::ServiceDiscovery::Model::DnsConfig::DnsConfig
DnsConfig(Aws::Utils::Json::JsonView jsonValue)
Aws::ServiceDiscovery::Model::RoutingPolicy
RoutingPolicy
Definition: RoutingPolicy.h:17
Aws::ServiceDiscovery::Model::DnsConfig::GetRoutingPolicy
const RoutingPolicy & GetRoutingPolicy() const
Definition: DnsConfig.h:77
Aws::ServiceDiscovery::Model::DnsConfig::GetDnsRecords
const Aws::Vector< DnsRecord > & GetDnsRecords() const
Definition: DnsConfig.h:259
Aws
Definition: AccessManagementClient.h:15
Aws::ServiceDiscovery::Model::DnsConfig::operator=
DnsConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
DnsRecord.h
Aws::ServiceDiscovery::Model::DnsConfig::SetRoutingPolicy
void SetRoutingPolicy(const RoutingPolicy &value)
Definition: DnsConfig.h:147
Aws::ServiceDiscovery::Model::DnsConfig::WithRoutingPolicy
DnsConfig & WithRoutingPolicy(RoutingPolicy &&value)
Definition: DnsConfig.h:252
Aws::ServiceDiscovery::Model::DnsConfig::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const