AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ResolverQueryLogConfig.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/ResolverQueryLogConfigStatus.h>
10#include <aws/route53resolver/model/ShareStatus.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Route53Resolver {
22namespace Model {
23
39 public:
40 AWS_ROUTE53RESOLVER_API ResolverQueryLogConfig() = default;
41 AWS_ROUTE53RESOLVER_API ResolverQueryLogConfig(Aws::Utils::Json::JsonView jsonValue);
42 AWS_ROUTE53RESOLVER_API ResolverQueryLogConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_ROUTE53RESOLVER_API Aws::Utils::Json::JsonValue Jsonize() const;
44
46
49 inline const Aws::String& GetId() const { return m_id; }
50 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
51 template <typename IdT = Aws::String>
52 void SetId(IdT&& value) {
53 m_idHasBeenSet = true;
54 m_id = std::forward<IdT>(value);
55 }
56 template <typename IdT = Aws::String>
58 SetId(std::forward<IdT>(value));
59 return *this;
60 }
62
64
68 inline const Aws::String& GetOwnerId() const { return m_ownerId; }
69 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
70 template <typename OwnerIdT = Aws::String>
71 void SetOwnerId(OwnerIdT&& value) {
72 m_ownerIdHasBeenSet = true;
73 m_ownerId = std::forward<OwnerIdT>(value);
74 }
75 template <typename OwnerIdT = Aws::String>
77 SetOwnerId(std::forward<OwnerIdT>(value));
78 return *this;
79 }
81
83
96 inline ResolverQueryLogConfigStatus GetStatus() const { return m_status; }
97 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
99 m_statusHasBeenSet = true;
100 m_status = value;
101 }
103 SetStatus(value);
104 return *this;
105 }
107
109
115 inline ShareStatus GetShareStatus() const { return m_shareStatus; }
116 inline bool ShareStatusHasBeenSet() const { return m_shareStatusHasBeenSet; }
117 inline void SetShareStatus(ShareStatus value) {
118 m_shareStatusHasBeenSet = true;
119 m_shareStatus = value;
120 }
122 SetShareStatus(value);
123 return *this;
124 }
126
128
132 inline int GetAssociationCount() const { return m_associationCount; }
133 inline bool AssociationCountHasBeenSet() const { return m_associationCountHasBeenSet; }
134 inline void SetAssociationCount(int value) {
135 m_associationCountHasBeenSet = true;
136 m_associationCount = value;
137 }
139 SetAssociationCount(value);
140 return *this;
141 }
143
145
148 inline const Aws::String& GetArn() const { return m_arn; }
149 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
150 template <typename ArnT = Aws::String>
151 void SetArn(ArnT&& value) {
152 m_arnHasBeenSet = true;
153 m_arn = std::forward<ArnT>(value);
154 }
155 template <typename ArnT = Aws::String>
157 SetArn(std::forward<ArnT>(value));
158 return *this;
159 }
161
163
166 inline const Aws::String& GetName() const { return m_name; }
167 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
168 template <typename NameT = Aws::String>
169 void SetName(NameT&& value) {
170 m_nameHasBeenSet = true;
171 m_name = std::forward<NameT>(value);
172 }
173 template <typename NameT = Aws::String>
175 SetName(std::forward<NameT>(value));
176 return *this;
177 }
179
181
186 inline const Aws::String& GetDestinationArn() const { return m_destinationArn; }
187 inline bool DestinationArnHasBeenSet() const { return m_destinationArnHasBeenSet; }
188 template <typename DestinationArnT = Aws::String>
189 void SetDestinationArn(DestinationArnT&& value) {
190 m_destinationArnHasBeenSet = true;
191 m_destinationArn = std::forward<DestinationArnT>(value);
192 }
193 template <typename DestinationArnT = Aws::String>
194 ResolverQueryLogConfig& WithDestinationArn(DestinationArnT&& value) {
195 SetDestinationArn(std::forward<DestinationArnT>(value));
196 return *this;
197 }
199
201
206 inline const Aws::String& GetCreatorRequestId() const { return m_creatorRequestId; }
207 inline bool CreatorRequestIdHasBeenSet() const { return m_creatorRequestIdHasBeenSet; }
208 template <typename CreatorRequestIdT = Aws::String>
209 void SetCreatorRequestId(CreatorRequestIdT&& value) {
210 m_creatorRequestIdHasBeenSet = true;
211 m_creatorRequestId = std::forward<CreatorRequestIdT>(value);
212 }
213 template <typename CreatorRequestIdT = Aws::String>
214 ResolverQueryLogConfig& WithCreatorRequestId(CreatorRequestIdT&& value) {
215 SetCreatorRequestId(std::forward<CreatorRequestIdT>(value));
216 return *this;
217 }
219
221
225 inline const Aws::String& GetCreationTime() const { return m_creationTime; }
226 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
227 template <typename CreationTimeT = Aws::String>
228 void SetCreationTime(CreationTimeT&& value) {
229 m_creationTimeHasBeenSet = true;
230 m_creationTime = std::forward<CreationTimeT>(value);
231 }
232 template <typename CreationTimeT = Aws::String>
233 ResolverQueryLogConfig& WithCreationTime(CreationTimeT&& value) {
234 SetCreationTime(std::forward<CreationTimeT>(value));
235 return *this;
236 }
238 private:
239 Aws::String m_id;
240
241 Aws::String m_ownerId;
242
244
245 ShareStatus m_shareStatus{ShareStatus::NOT_SET};
246
247 int m_associationCount{0};
248
249 Aws::String m_arn;
250
251 Aws::String m_name;
252
253 Aws::String m_destinationArn;
254
255 Aws::String m_creatorRequestId;
256
257 Aws::String m_creationTime;
258 bool m_idHasBeenSet = false;
259 bool m_ownerIdHasBeenSet = false;
260 bool m_statusHasBeenSet = false;
261 bool m_shareStatusHasBeenSet = false;
262 bool m_associationCountHasBeenSet = false;
263 bool m_arnHasBeenSet = false;
264 bool m_nameHasBeenSet = false;
265 bool m_destinationArnHasBeenSet = false;
266 bool m_creatorRequestIdHasBeenSet = false;
267 bool m_creationTimeHasBeenSet = false;
268};
269
270} // namespace Model
271} // namespace Route53Resolver
272} // namespace Aws
ResolverQueryLogConfig & WithShareStatus(ShareStatus value)
AWS_ROUTE53RESOLVER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetStatus(ResolverQueryLogConfigStatus value)
AWS_ROUTE53RESOLVER_API ResolverQueryLogConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_ROUTE53RESOLVER_API ResolverQueryLogConfig(Aws::Utils::Json::JsonView jsonValue)
AWS_ROUTE53RESOLVER_API ResolverQueryLogConfig()=default
ResolverQueryLogConfig & WithOwnerId(OwnerIdT &&value)
ResolverQueryLogConfig & WithStatus(ResolverQueryLogConfigStatus value)
ResolverQueryLogConfig & WithCreatorRequestId(CreatorRequestIdT &&value)
ResolverQueryLogConfig & WithDestinationArn(DestinationArnT &&value)
ResolverQueryLogConfig & WithCreationTime(CreationTimeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue