AWS SDK for C++

AWS SDK for C++ Version 1.11.784

Loading...
Searching...
No Matches
AccessSourcesItem.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/route53globalresolver/Route53GlobalResolver_EXPORTS.h>
10#include <aws/route53globalresolver/model/CRResourceStatus.h>
11#include <aws/route53globalresolver/model/DnsProtocol.h>
12#include <aws/route53globalresolver/model/IpAddressType.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Route53GlobalResolver {
24namespace Model {
25
32 public:
33 AWS_ROUTE53GLOBALRESOLVER_API AccessSourcesItem() = default;
34 AWS_ROUTE53GLOBALRESOLVER_API AccessSourcesItem(Aws::Utils::Json::JsonView jsonValue);
35 AWS_ROUTE53GLOBALRESOLVER_API AccessSourcesItem& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_ROUTE53GLOBALRESOLVER_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetArn() const { return m_arn; }
43 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
44 template <typename ArnT = Aws::String>
45 void SetArn(ArnT&& value) {
46 m_arnHasBeenSet = true;
47 m_arn = std::forward<ArnT>(value);
48 }
49 template <typename ArnT = Aws::String>
50 AccessSourcesItem& WithArn(ArnT&& value) {
51 SetArn(std::forward<ArnT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetCidr() const { return m_cidr; }
61 inline bool CidrHasBeenSet() const { return m_cidrHasBeenSet; }
62 template <typename CidrT = Aws::String>
63 void SetCidr(CidrT&& value) {
64 m_cidrHasBeenSet = true;
65 m_cidr = std::forward<CidrT>(value);
66 }
67 template <typename CidrT = Aws::String>
68 AccessSourcesItem& WithCidr(CidrT&& value) {
69 SetCidr(std::forward<CidrT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
79 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
80 template <typename CreatedAtT = Aws::Utils::DateTime>
81 void SetCreatedAt(CreatedAtT&& value) {
82 m_createdAtHasBeenSet = true;
83 m_createdAt = std::forward<CreatedAtT>(value);
84 }
85 template <typename CreatedAtT = Aws::Utils::DateTime>
86 AccessSourcesItem& WithCreatedAt(CreatedAtT&& value) {
87 SetCreatedAt(std::forward<CreatedAtT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetId() const { return m_id; }
97 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
98 template <typename IdT = Aws::String>
99 void SetId(IdT&& value) {
100 m_idHasBeenSet = true;
101 m_id = std::forward<IdT>(value);
102 }
103 template <typename IdT = Aws::String>
104 AccessSourcesItem& WithId(IdT&& value) {
105 SetId(std::forward<IdT>(value));
106 return *this;
107 }
109
111
114 inline IpAddressType GetIpAddressType() const { return m_ipAddressType; }
115 inline bool IpAddressTypeHasBeenSet() const { return m_ipAddressTypeHasBeenSet; }
116 inline void SetIpAddressType(IpAddressType value) {
117 m_ipAddressTypeHasBeenSet = true;
118 m_ipAddressType = value;
119 }
121 SetIpAddressType(value);
122 return *this;
123 }
125
127
130 inline const Aws::String& GetName() const { return m_name; }
131 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
132 template <typename NameT = Aws::String>
133 void SetName(NameT&& value) {
134 m_nameHasBeenSet = true;
135 m_name = std::forward<NameT>(value);
136 }
137 template <typename NameT = Aws::String>
138 AccessSourcesItem& WithName(NameT&& value) {
139 SetName(std::forward<NameT>(value));
140 return *this;
141 }
143
145
148 inline const Aws::String& GetDnsViewId() const { return m_dnsViewId; }
149 inline bool DnsViewIdHasBeenSet() const { return m_dnsViewIdHasBeenSet; }
150 template <typename DnsViewIdT = Aws::String>
151 void SetDnsViewId(DnsViewIdT&& value) {
152 m_dnsViewIdHasBeenSet = true;
153 m_dnsViewId = std::forward<DnsViewIdT>(value);
154 }
155 template <typename DnsViewIdT = Aws::String>
156 AccessSourcesItem& WithDnsViewId(DnsViewIdT&& value) {
157 SetDnsViewId(std::forward<DnsViewIdT>(value));
158 return *this;
159 }
161
163
166 inline DnsProtocol GetProtocol() const { return m_protocol; }
167 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
168 inline void SetProtocol(DnsProtocol value) {
169 m_protocolHasBeenSet = true;
170 m_protocol = value;
171 }
173 SetProtocol(value);
174 return *this;
175 }
177
179
182 inline CRResourceStatus GetStatus() const { return m_status; }
183 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
184 inline void SetStatus(CRResourceStatus value) {
185 m_statusHasBeenSet = true;
186 m_status = value;
187 }
189 SetStatus(value);
190 return *this;
191 }
193
195
198 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
199 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
200 template <typename UpdatedAtT = Aws::Utils::DateTime>
201 void SetUpdatedAt(UpdatedAtT&& value) {
202 m_updatedAtHasBeenSet = true;
203 m_updatedAt = std::forward<UpdatedAtT>(value);
204 }
205 template <typename UpdatedAtT = Aws::Utils::DateTime>
206 AccessSourcesItem& WithUpdatedAt(UpdatedAtT&& value) {
207 SetUpdatedAt(std::forward<UpdatedAtT>(value));
208 return *this;
209 }
211 private:
212 Aws::String m_arn;
213
214 Aws::String m_cidr;
215
216 Aws::Utils::DateTime m_createdAt{};
217
218 Aws::String m_id;
219
220 IpAddressType m_ipAddressType{IpAddressType::NOT_SET};
221
222 Aws::String m_name;
223
224 Aws::String m_dnsViewId;
225
227
229
230 Aws::Utils::DateTime m_updatedAt{};
231 bool m_arnHasBeenSet = false;
232 bool m_cidrHasBeenSet = false;
233 bool m_createdAtHasBeenSet = false;
234 bool m_idHasBeenSet = false;
235 bool m_ipAddressTypeHasBeenSet = false;
236 bool m_nameHasBeenSet = false;
237 bool m_dnsViewIdHasBeenSet = false;
238 bool m_protocolHasBeenSet = false;
239 bool m_statusHasBeenSet = false;
240 bool m_updatedAtHasBeenSet = false;
241};
242
243} // namespace Model
244} // namespace Route53GlobalResolver
245} // namespace Aws
AWS_ROUTE53GLOBALRESOLVER_API AccessSourcesItem(Aws::Utils::Json::JsonView jsonValue)
AccessSourcesItem & WithStatus(CRResourceStatus value)
AccessSourcesItem & WithUpdatedAt(UpdatedAtT &&value)
AccessSourcesItem & WithProtocol(DnsProtocol value)
AWS_ROUTE53GLOBALRESOLVER_API Aws::Utils::Json::JsonValue Jsonize() const
AccessSourcesItem & WithDnsViewId(DnsViewIdT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
AccessSourcesItem & WithIpAddressType(IpAddressType value)
AWS_ROUTE53GLOBALRESOLVER_API AccessSourcesItem & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetUpdatedAt() const
AccessSourcesItem & WithCreatedAt(CreatedAtT &&value)
AWS_ROUTE53GLOBALRESOLVER_API AccessSourcesItem()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue