AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
IpAddressResponse.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/route53resolver/Route53Resolver_EXPORTS.h>
9#include <aws/route53resolver/model/IpAddressStatus.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Route53Resolver {
21namespace Model {
22
32 public:
33 AWS_ROUTE53RESOLVER_API IpAddressResponse() = default;
34 AWS_ROUTE53RESOLVER_API IpAddressResponse(Aws::Utils::Json::JsonView jsonValue);
35 AWS_ROUTE53RESOLVER_API IpAddressResponse& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_ROUTE53RESOLVER_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetIpId() const { return m_ipId; }
43 inline bool IpIdHasBeenSet() const { return m_ipIdHasBeenSet; }
44 template <typename IpIdT = Aws::String>
45 void SetIpId(IpIdT&& value) {
46 m_ipIdHasBeenSet = true;
47 m_ipId = std::forward<IpIdT>(value);
48 }
49 template <typename IpIdT = Aws::String>
50 IpAddressResponse& WithIpId(IpIdT&& value) {
51 SetIpId(std::forward<IpIdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetSubnetId() const { return m_subnetId; }
61 inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
62 template <typename SubnetIdT = Aws::String>
63 void SetSubnetId(SubnetIdT&& value) {
64 m_subnetIdHasBeenSet = true;
65 m_subnetId = std::forward<SubnetIdT>(value);
66 }
67 template <typename SubnetIdT = Aws::String>
68 IpAddressResponse& WithSubnetId(SubnetIdT&& value) {
69 SetSubnetId(std::forward<SubnetIdT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetIp() const { return m_ip; }
79 inline bool IpHasBeenSet() const { return m_ipHasBeenSet; }
80 template <typename IpT = Aws::String>
81 void SetIp(IpT&& value) {
82 m_ipHasBeenSet = true;
83 m_ip = std::forward<IpT>(value);
84 }
85 template <typename IpT = Aws::String>
86 IpAddressResponse& WithIp(IpT&& value) {
87 SetIp(std::forward<IpT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetIpv6() const { return m_ipv6; }
97 inline bool Ipv6HasBeenSet() const { return m_ipv6HasBeenSet; }
98 template <typename Ipv6T = Aws::String>
99 void SetIpv6(Ipv6T&& value) {
100 m_ipv6HasBeenSet = true;
101 m_ipv6 = std::forward<Ipv6T>(value);
102 }
103 template <typename Ipv6T = Aws::String>
104 IpAddressResponse& WithIpv6(Ipv6T&& value) {
105 SetIpv6(std::forward<Ipv6T>(value));
106 return *this;
107 }
109
111
114 inline IpAddressStatus GetStatus() const { return m_status; }
115 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
116 inline void SetStatus(IpAddressStatus value) {
117 m_statusHasBeenSet = true;
118 m_status = value;
119 }
121 SetStatus(value);
122 return *this;
123 }
125
127
131 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
132 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
133 template <typename StatusMessageT = Aws::String>
134 void SetStatusMessage(StatusMessageT&& value) {
135 m_statusMessageHasBeenSet = true;
136 m_statusMessage = std::forward<StatusMessageT>(value);
137 }
138 template <typename StatusMessageT = Aws::String>
139 IpAddressResponse& WithStatusMessage(StatusMessageT&& value) {
140 SetStatusMessage(std::forward<StatusMessageT>(value));
141 return *this;
142 }
144
146
150 inline const Aws::String& GetCreationTime() const { return m_creationTime; }
151 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
152 template <typename CreationTimeT = Aws::String>
153 void SetCreationTime(CreationTimeT&& value) {
154 m_creationTimeHasBeenSet = true;
155 m_creationTime = std::forward<CreationTimeT>(value);
156 }
157 template <typename CreationTimeT = Aws::String>
158 IpAddressResponse& WithCreationTime(CreationTimeT&& value) {
159 SetCreationTime(std::forward<CreationTimeT>(value));
160 return *this;
161 }
163
165
169 inline const Aws::String& GetModificationTime() const { return m_modificationTime; }
170 inline bool ModificationTimeHasBeenSet() const { return m_modificationTimeHasBeenSet; }
171 template <typename ModificationTimeT = Aws::String>
172 void SetModificationTime(ModificationTimeT&& value) {
173 m_modificationTimeHasBeenSet = true;
174 m_modificationTime = std::forward<ModificationTimeT>(value);
175 }
176 template <typename ModificationTimeT = Aws::String>
177 IpAddressResponse& WithModificationTime(ModificationTimeT&& value) {
178 SetModificationTime(std::forward<ModificationTimeT>(value));
179 return *this;
180 }
182 private:
183 Aws::String m_ipId;
184
185 Aws::String m_subnetId;
186
187 Aws::String m_ip;
188
189 Aws::String m_ipv6;
190
192
193 Aws::String m_statusMessage;
194
195 Aws::String m_creationTime;
196
197 Aws::String m_modificationTime;
198 bool m_ipIdHasBeenSet = false;
199 bool m_subnetIdHasBeenSet = false;
200 bool m_ipHasBeenSet = false;
201 bool m_ipv6HasBeenSet = false;
202 bool m_statusHasBeenSet = false;
203 bool m_statusMessageHasBeenSet = false;
204 bool m_creationTimeHasBeenSet = false;
205 bool m_modificationTimeHasBeenSet = false;
206};
207
208} // namespace Model
209} // namespace Route53Resolver
210} // namespace Aws
IpAddressResponse & WithModificationTime(ModificationTimeT &&value)
IpAddressResponse & WithIpId(IpIdT &&value)
IpAddressResponse & WithStatus(IpAddressStatus value)
IpAddressResponse & WithSubnetId(SubnetIdT &&value)
IpAddressResponse & WithStatusMessage(StatusMessageT &&value)
AWS_ROUTE53RESOLVER_API IpAddressResponse()=default
IpAddressResponse & WithIpv6(Ipv6T &&value)
AWS_ROUTE53RESOLVER_API IpAddressResponse & operator=(Aws::Utils::Json::JsonView jsonValue)
IpAddressResponse & WithCreationTime(CreationTimeT &&value)
AWS_ROUTE53RESOLVER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ROUTE53RESOLVER_API IpAddressResponse(Aws::Utils::Json::JsonView jsonValue)
void SetModificationTime(ModificationTimeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue