AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TargetAddress.h
1
6#pragma once
7#include <aws/route53resolver/Route53Resolver_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/route53resolver/model/Protocol.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 Route53Resolver
23{
24namespace Model
25{
26
36 {
37 public:
38 AWS_ROUTE53RESOLVER_API TargetAddress();
39 AWS_ROUTE53RESOLVER_API TargetAddress(Aws::Utils::Json::JsonView jsonValue);
40 AWS_ROUTE53RESOLVER_API TargetAddress& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_ROUTE53RESOLVER_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetIp() const{ return m_ip; }
49 inline bool IpHasBeenSet() const { return m_ipHasBeenSet; }
50 inline void SetIp(const Aws::String& value) { m_ipHasBeenSet = true; m_ip = value; }
51 inline void SetIp(Aws::String&& value) { m_ipHasBeenSet = true; m_ip = std::move(value); }
52 inline void SetIp(const char* value) { m_ipHasBeenSet = true; m_ip.assign(value); }
53 inline TargetAddress& WithIp(const Aws::String& value) { SetIp(value); return *this;}
54 inline TargetAddress& WithIp(Aws::String&& value) { SetIp(std::move(value)); return *this;}
55 inline TargetAddress& WithIp(const char* value) { SetIp(value); return *this;}
57
59
62 inline int GetPort() const{ return m_port; }
63 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
64 inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
65 inline TargetAddress& WithPort(int value) { SetPort(value); return *this;}
67
69
72 inline const Aws::String& GetIpv6() const{ return m_ipv6; }
73 inline bool Ipv6HasBeenSet() const { return m_ipv6HasBeenSet; }
74 inline void SetIpv6(const Aws::String& value) { m_ipv6HasBeenSet = true; m_ipv6 = value; }
75 inline void SetIpv6(Aws::String&& value) { m_ipv6HasBeenSet = true; m_ipv6 = std::move(value); }
76 inline void SetIpv6(const char* value) { m_ipv6HasBeenSet = true; m_ipv6.assign(value); }
77 inline TargetAddress& WithIpv6(const Aws::String& value) { SetIpv6(value); return *this;}
78 inline TargetAddress& WithIpv6(Aws::String&& value) { SetIpv6(std::move(value)); return *this;}
79 inline TargetAddress& WithIpv6(const char* value) { SetIpv6(value); return *this;}
81
83
94 inline const Protocol& GetProtocol() const{ return m_protocol; }
95 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
96 inline void SetProtocol(const Protocol& value) { m_protocolHasBeenSet = true; m_protocol = value; }
97 inline void SetProtocol(Protocol&& value) { m_protocolHasBeenSet = true; m_protocol = std::move(value); }
98 inline TargetAddress& WithProtocol(const Protocol& value) { SetProtocol(value); return *this;}
99 inline TargetAddress& WithProtocol(Protocol&& value) { SetProtocol(std::move(value)); return *this;}
101
103
108 inline const Aws::String& GetServerNameIndication() const{ return m_serverNameIndication; }
109 inline bool ServerNameIndicationHasBeenSet() const { return m_serverNameIndicationHasBeenSet; }
110 inline void SetServerNameIndication(const Aws::String& value) { m_serverNameIndicationHasBeenSet = true; m_serverNameIndication = value; }
111 inline void SetServerNameIndication(Aws::String&& value) { m_serverNameIndicationHasBeenSet = true; m_serverNameIndication = std::move(value); }
112 inline void SetServerNameIndication(const char* value) { m_serverNameIndicationHasBeenSet = true; m_serverNameIndication.assign(value); }
113 inline TargetAddress& WithServerNameIndication(const Aws::String& value) { SetServerNameIndication(value); return *this;}
114 inline TargetAddress& WithServerNameIndication(Aws::String&& value) { SetServerNameIndication(std::move(value)); return *this;}
115 inline TargetAddress& WithServerNameIndication(const char* value) { SetServerNameIndication(value); return *this;}
117 private:
118
119 Aws::String m_ip;
120 bool m_ipHasBeenSet = false;
121
122 int m_port;
123 bool m_portHasBeenSet = false;
124
125 Aws::String m_ipv6;
126 bool m_ipv6HasBeenSet = false;
127
128 Protocol m_protocol;
129 bool m_protocolHasBeenSet = false;
130
131 Aws::String m_serverNameIndication;
132 bool m_serverNameIndicationHasBeenSet = false;
133 };
134
135} // namespace Model
136} // namespace Route53Resolver
137} // namespace Aws
TargetAddress & WithIpv6(const Aws::String &value)
TargetAddress & WithServerNameIndication(const char *value)
TargetAddress & WithIpv6(const char *value)
TargetAddress & WithIpv6(Aws::String &&value)
TargetAddress & WithProtocol(const Protocol &value)
void SetIpv6(const Aws::String &value)
const Aws::String & GetServerNameIndication() const
const Aws::String & GetIpv6() const
TargetAddress & WithServerNameIndication(const Aws::String &value)
AWS_ROUTE53RESOLVER_API TargetAddress & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetServerNameIndication(const Aws::String &value)
AWS_ROUTE53RESOLVER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetServerNameIndication(const char *value)
AWS_ROUTE53RESOLVER_API TargetAddress()
TargetAddress & WithProtocol(Protocol &&value)
TargetAddress & WithIp(const char *value)
void SetProtocol(const Protocol &value)
void SetServerNameIndication(Aws::String &&value)
AWS_ROUTE53RESOLVER_API TargetAddress(Aws::Utils::Json::JsonView jsonValue)
void SetIp(const Aws::String &value)
TargetAddress & WithIp(const Aws::String &value)
TargetAddress & WithServerNameIndication(Aws::String &&value)
TargetAddress & WithIp(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue