AWS SDK for C++

AWS SDK for C++ Version 1.11.938

Loading...
Searching...
No Matches
UpdateIpAddressEntry.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/route53globalresolver/Route53GlobalResolver_EXPORTS.h>
10#include <aws/route53globalresolver/model/RegionScopeType.h>
11#include <aws/route53globalresolver/model/UpdateIpAddressOperation.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Route53GlobalResolver {
23namespace Model {
24
33 public:
34 AWS_ROUTE53GLOBALRESOLVER_API UpdateIpAddressEntry() = default;
35 AWS_ROUTE53GLOBALRESOLVER_API UpdateIpAddressEntry(Aws::Utils::Json::JsonView jsonValue);
36 AWS_ROUTE53GLOBALRESOLVER_API UpdateIpAddressEntry& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_ROUTE53GLOBALRESOLVER_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
44 inline UpdateIpAddressOperation GetOperation() const { return m_operation; }
45 inline bool OperationHasBeenSet() const { return m_operationHasBeenSet; }
47 m_operationHasBeenSet = true;
48 m_operation = value;
49 }
51 SetOperation(value);
52 return *this;
53 }
55
57
60 inline const Aws::String& GetIpv4Address() const { return m_ipv4Address; }
61 inline bool Ipv4AddressHasBeenSet() const { return m_ipv4AddressHasBeenSet; }
62 template <typename Ipv4AddressT = Aws::String>
63 void SetIpv4Address(Ipv4AddressT&& value) {
64 m_ipv4AddressHasBeenSet = true;
65 m_ipv4Address = std::forward<Ipv4AddressT>(value);
66 }
67 template <typename Ipv4AddressT = Aws::String>
68 UpdateIpAddressEntry& WithIpv4Address(Ipv4AddressT&& value) {
69 SetIpv4Address(std::forward<Ipv4AddressT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetIpv6Address() const { return m_ipv6Address; }
79 inline bool Ipv6AddressHasBeenSet() const { return m_ipv6AddressHasBeenSet; }
80 template <typename Ipv6AddressT = Aws::String>
81 void SetIpv6Address(Ipv6AddressT&& value) {
82 m_ipv6AddressHasBeenSet = true;
83 m_ipv6Address = std::forward<Ipv6AddressT>(value);
84 }
85 template <typename Ipv6AddressT = Aws::String>
86 UpdateIpAddressEntry& WithIpv6Address(Ipv6AddressT&& value) {
87 SetIpv6Address(std::forward<Ipv6AddressT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetDnsLabel() const { return m_dnsLabel; }
97 inline bool DnsLabelHasBeenSet() const { return m_dnsLabelHasBeenSet; }
98 template <typename DnsLabelT = Aws::String>
99 void SetDnsLabel(DnsLabelT&& value) {
100 m_dnsLabelHasBeenSet = true;
101 m_dnsLabel = std::forward<DnsLabelT>(value);
102 }
103 template <typename DnsLabelT = Aws::String>
104 UpdateIpAddressEntry& WithDnsLabel(DnsLabelT&& value) {
105 SetDnsLabel(std::forward<DnsLabelT>(value));
106 return *this;
107 }
109
111
117 inline RegionScopeType GetRegionScope() const { return m_regionScope; }
118 inline bool RegionScopeHasBeenSet() const { return m_regionScopeHasBeenSet; }
119 inline void SetRegionScope(RegionScopeType value) {
120 m_regionScopeHasBeenSet = true;
121 m_regionScope = value;
122 }
124 SetRegionScope(value);
125 return *this;
126 }
128
130
134 inline const Aws::Vector<Aws::String>& GetRegions() const { return m_regions; }
135 inline bool RegionsHasBeenSet() const { return m_regionsHasBeenSet; }
136 template <typename RegionsT = Aws::Vector<Aws::String>>
137 void SetRegions(RegionsT&& value) {
138 m_regionsHasBeenSet = true;
139 m_regions = std::forward<RegionsT>(value);
140 }
141 template <typename RegionsT = Aws::Vector<Aws::String>>
143 SetRegions(std::forward<RegionsT>(value));
144 return *this;
145 }
146 template <typename RegionsT = Aws::String>
147 UpdateIpAddressEntry& AddRegions(RegionsT&& value) {
148 m_regionsHasBeenSet = true;
149 m_regions.emplace_back(std::forward<RegionsT>(value));
150 return *this;
151 }
153 private:
155
156 Aws::String m_ipv4Address;
157
158 Aws::String m_ipv6Address;
159
160 Aws::String m_dnsLabel;
161
163
164 Aws::Vector<Aws::String> m_regions;
165 bool m_operationHasBeenSet = false;
166 bool m_ipv4AddressHasBeenSet = false;
167 bool m_ipv6AddressHasBeenSet = false;
168 bool m_dnsLabelHasBeenSet = false;
169 bool m_regionScopeHasBeenSet = false;
170 bool m_regionsHasBeenSet = false;
171};
172
173} // namespace Model
174} // namespace Route53GlobalResolver
175} // namespace Aws
const Aws::String & GetIpv6Address() const
UpdateIpAddressEntry & WithRegions(RegionsT &&value)
void SetRegions(RegionsT &&value)
void SetIpv4Address(Ipv4AddressT &&value)
void SetDnsLabel(DnsLabelT &&value)
AWS_ROUTE53GLOBALRESOLVER_API UpdateIpAddressEntry()=default
void SetRegionScope(RegionScopeType value)
UpdateIpAddressEntry & WithRegionScope(RegionScopeType value)
UpdateIpAddressEntry & WithOperation(UpdateIpAddressOperation value)
AWS_ROUTE53GLOBALRESOLVER_API Aws::Utils::Json::JsonValue Jsonize() const
UpdateIpAddressEntry & WithDnsLabel(DnsLabelT &&value)
RegionScopeType GetRegionScope() const
bool OperationHasBeenSet() const
bool RegionScopeHasBeenSet() const
AWS_ROUTE53GLOBALRESOLVER_API UpdateIpAddressEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetRegions() const
bool DnsLabelHasBeenSet() const
void SetOperation(UpdateIpAddressOperation value)
bool RegionsHasBeenSet() const
bool Ipv6AddressHasBeenSet() const
AWS_ROUTE53GLOBALRESOLVER_API UpdateIpAddressEntry(Aws::Utils::Json::JsonView jsonValue)
UpdateIpAddressEntry & WithIpv6Address(Ipv6AddressT &&value)
const Aws::String & GetIpv4Address() const
UpdateIpAddressEntry & AddRegions(RegionsT &&value)
const Aws::String & GetDnsLabel() const
bool Ipv4AddressHasBeenSet() const
void SetIpv6Address(Ipv6AddressT &&value)
UpdateIpAddressOperation GetOperation() const
UpdateIpAddressEntry & WithIpv4Address(Ipv4AddressT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue