AWS SDK for C++

AWS SDK for C++ Version 1.11.783

Loading...
Searching...
No Matches
DNSViewSummary.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/DnsSecValidationType.h>
11#include <aws/route53globalresolver/model/EdnsClientSubnetType.h>
12#include <aws/route53globalresolver/model/FirewallRulesFailOpenType.h>
13#include <aws/route53globalresolver/model/ProfileResourceStatus.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Route53GlobalResolver {
25namespace Model {
26
33 public:
34 AWS_ROUTE53GLOBALRESOLVER_API DNSViewSummary() = default;
35 AWS_ROUTE53GLOBALRESOLVER_API DNSViewSummary(Aws::Utils::Json::JsonView jsonValue);
36 AWS_ROUTE53GLOBALRESOLVER_API DNSViewSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_ROUTE53GLOBALRESOLVER_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetId() const { return m_id; }
44 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
45 template <typename IdT = Aws::String>
46 void SetId(IdT&& value) {
47 m_idHasBeenSet = true;
48 m_id = std::forward<IdT>(value);
49 }
50 template <typename IdT = Aws::String>
51 DNSViewSummary& WithId(IdT&& value) {
52 SetId(std::forward<IdT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetArn() const { return m_arn; }
62 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
63 template <typename ArnT = Aws::String>
64 void SetArn(ArnT&& value) {
65 m_arnHasBeenSet = true;
66 m_arn = std::forward<ArnT>(value);
67 }
68 template <typename ArnT = Aws::String>
69 DNSViewSummary& WithArn(ArnT&& value) {
70 SetArn(std::forward<ArnT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetClientToken() const { return m_clientToken; }
80 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
81 template <typename ClientTokenT = Aws::String>
82 void SetClientToken(ClientTokenT&& value) {
83 m_clientTokenHasBeenSet = true;
84 m_clientToken = std::forward<ClientTokenT>(value);
85 }
86 template <typename ClientTokenT = Aws::String>
87 DNSViewSummary& WithClientToken(ClientTokenT&& value) {
88 SetClientToken(std::forward<ClientTokenT>(value));
89 return *this;
90 }
92
94
97 inline DnsSecValidationType GetDnssecValidation() const { return m_dnssecValidation; }
98 inline bool DnssecValidationHasBeenSet() const { return m_dnssecValidationHasBeenSet; }
100 m_dnssecValidationHasBeenSet = true;
101 m_dnssecValidation = value;
102 }
104 SetDnssecValidation(value);
105 return *this;
106 }
108
110
113 inline EdnsClientSubnetType GetEdnsClientSubnet() const { return m_ednsClientSubnet; }
114 inline bool EdnsClientSubnetHasBeenSet() const { return m_ednsClientSubnetHasBeenSet; }
116 m_ednsClientSubnetHasBeenSet = true;
117 m_ednsClientSubnet = value;
118 }
120 SetEdnsClientSubnet(value);
121 return *this;
122 }
124
126
129 inline FirewallRulesFailOpenType GetFirewallRulesFailOpen() const { return m_firewallRulesFailOpen; }
130 inline bool FirewallRulesFailOpenHasBeenSet() const { return m_firewallRulesFailOpenHasBeenSet; }
132 m_firewallRulesFailOpenHasBeenSet = true;
133 m_firewallRulesFailOpen = value;
134 }
137 return *this;
138 }
140
142
145 inline const Aws::String& GetName() const { return m_name; }
146 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
147 template <typename NameT = Aws::String>
148 void SetName(NameT&& value) {
149 m_nameHasBeenSet = true;
150 m_name = std::forward<NameT>(value);
151 }
152 template <typename NameT = Aws::String>
153 DNSViewSummary& WithName(NameT&& value) {
154 SetName(std::forward<NameT>(value));
155 return *this;
156 }
158
160
163 inline const Aws::String& GetDescription() const { return m_description; }
164 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
165 template <typename DescriptionT = Aws::String>
166 void SetDescription(DescriptionT&& value) {
167 m_descriptionHasBeenSet = true;
168 m_description = std::forward<DescriptionT>(value);
169 }
170 template <typename DescriptionT = Aws::String>
171 DNSViewSummary& WithDescription(DescriptionT&& value) {
172 SetDescription(std::forward<DescriptionT>(value));
173 return *this;
174 }
176
178
181 inline const Aws::String& GetGlobalResolverId() const { return m_globalResolverId; }
182 inline bool GlobalResolverIdHasBeenSet() const { return m_globalResolverIdHasBeenSet; }
183 template <typename GlobalResolverIdT = Aws::String>
184 void SetGlobalResolverId(GlobalResolverIdT&& value) {
185 m_globalResolverIdHasBeenSet = true;
186 m_globalResolverId = std::forward<GlobalResolverIdT>(value);
187 }
188 template <typename GlobalResolverIdT = Aws::String>
189 DNSViewSummary& WithGlobalResolverId(GlobalResolverIdT&& value) {
190 SetGlobalResolverId(std::forward<GlobalResolverIdT>(value));
191 return *this;
192 }
194
196
199 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
200 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
201 template <typename CreatedAtT = Aws::Utils::DateTime>
202 void SetCreatedAt(CreatedAtT&& value) {
203 m_createdAtHasBeenSet = true;
204 m_createdAt = std::forward<CreatedAtT>(value);
205 }
206 template <typename CreatedAtT = Aws::Utils::DateTime>
207 DNSViewSummary& WithCreatedAt(CreatedAtT&& value) {
208 SetCreatedAt(std::forward<CreatedAtT>(value));
209 return *this;
210 }
212
214
217 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
218 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
219 template <typename UpdatedAtT = Aws::Utils::DateTime>
220 void SetUpdatedAt(UpdatedAtT&& value) {
221 m_updatedAtHasBeenSet = true;
222 m_updatedAt = std::forward<UpdatedAtT>(value);
223 }
224 template <typename UpdatedAtT = Aws::Utils::DateTime>
225 DNSViewSummary& WithUpdatedAt(UpdatedAtT&& value) {
226 SetUpdatedAt(std::forward<UpdatedAtT>(value));
227 return *this;
228 }
230
232
235 inline ProfileResourceStatus GetStatus() const { return m_status; }
236 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
237 inline void SetStatus(ProfileResourceStatus value) {
238 m_statusHasBeenSet = true;
239 m_status = value;
240 }
242 SetStatus(value);
243 return *this;
244 }
246 private:
247 Aws::String m_id;
248
249 Aws::String m_arn;
250
251 Aws::String m_clientToken;
252
254
256
258
259 Aws::String m_name;
260
261 Aws::String m_description;
262
263 Aws::String m_globalResolverId;
264
265 Aws::Utils::DateTime m_createdAt{};
266
267 Aws::Utils::DateTime m_updatedAt{};
268
270 bool m_idHasBeenSet = false;
271 bool m_arnHasBeenSet = false;
272 bool m_clientTokenHasBeenSet = false;
273 bool m_dnssecValidationHasBeenSet = false;
274 bool m_ednsClientSubnetHasBeenSet = false;
275 bool m_firewallRulesFailOpenHasBeenSet = false;
276 bool m_nameHasBeenSet = false;
277 bool m_descriptionHasBeenSet = false;
278 bool m_globalResolverIdHasBeenSet = false;
279 bool m_createdAtHasBeenSet = false;
280 bool m_updatedAtHasBeenSet = false;
281 bool m_statusHasBeenSet = false;
282};
283
284} // namespace Model
285} // namespace Route53GlobalResolver
286} // namespace Aws
AWS_ROUTE53GLOBALRESOLVER_API Aws::Utils::Json::JsonValue Jsonize() const
DNSViewSummary & WithStatus(ProfileResourceStatus value)
DNSViewSummary & WithClientToken(ClientTokenT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
void SetFirewallRulesFailOpen(FirewallRulesFailOpenType value)
AWS_ROUTE53GLOBALRESOLVER_API DNSViewSummary(Aws::Utils::Json::JsonView jsonValue)
void SetStatus(ProfileResourceStatus value)
DNSViewSummary & WithCreatedAt(CreatedAtT &&value)
AWS_ROUTE53GLOBALRESOLVER_API DNSViewSummary()=default
void SetGlobalResolverId(GlobalResolverIdT &&value)
void SetDnssecValidation(DnsSecValidationType value)
DNSViewSummary & WithDnssecValidation(DnsSecValidationType value)
DNSViewSummary & WithFirewallRulesFailOpen(FirewallRulesFailOpenType value)
const Aws::Utils::DateTime & GetUpdatedAt() const
DNSViewSummary & WithDescription(DescriptionT &&value)
DNSViewSummary & WithUpdatedAt(UpdatedAtT &&value)
DNSViewSummary & WithGlobalResolverId(GlobalResolverIdT &&value)
FirewallRulesFailOpenType GetFirewallRulesFailOpen() const
DNSViewSummary & WithEdnsClientSubnet(EdnsClientSubnetType value)
AWS_ROUTE53GLOBALRESOLVER_API DNSViewSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetEdnsClientSubnet(EdnsClientSubnetType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue