AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ResolverQueryLogConfig.h
1
6#pragma once
7#include <aws/route53resolver/Route53Resolver_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/route53resolver/model/ResolverQueryLogConfigStatus.h>
10#include <aws/route53resolver/model/ShareStatus.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Route53Resolver
24{
25namespace Model
26{
27
43 {
44 public:
45 AWS_ROUTE53RESOLVER_API ResolverQueryLogConfig() = default;
46 AWS_ROUTE53RESOLVER_API ResolverQueryLogConfig(Aws::Utils::Json::JsonView jsonValue);
47 AWS_ROUTE53RESOLVER_API ResolverQueryLogConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
48 AWS_ROUTE53RESOLVER_API Aws::Utils::Json::JsonValue Jsonize() const;
49
50
52
55 inline const Aws::String& GetId() const { return m_id; }
56 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
57 template<typename IdT = Aws::String>
58 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
59 template<typename IdT = Aws::String>
60 ResolverQueryLogConfig& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
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) { m_ownerIdHasBeenSet = true; m_ownerId = std::forward<OwnerIdT>(value); }
72 template<typename OwnerIdT = Aws::String>
73 ResolverQueryLogConfig& WithOwnerId(OwnerIdT&& value) { SetOwnerId(std::forward<OwnerIdT>(value)); return *this;}
75
77
90 inline ResolverQueryLogConfigStatus GetStatus() const { return m_status; }
91 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
92 inline void SetStatus(ResolverQueryLogConfigStatus value) { m_statusHasBeenSet = true; m_status = value; }
95
97
103 inline ShareStatus GetShareStatus() const { return m_shareStatus; }
104 inline bool ShareStatusHasBeenSet() const { return m_shareStatusHasBeenSet; }
105 inline void SetShareStatus(ShareStatus value) { m_shareStatusHasBeenSet = true; m_shareStatus = value; }
106 inline ResolverQueryLogConfig& WithShareStatus(ShareStatus value) { SetShareStatus(value); return *this;}
108
110
114 inline int GetAssociationCount() const { return m_associationCount; }
115 inline bool AssociationCountHasBeenSet() const { return m_associationCountHasBeenSet; }
116 inline void SetAssociationCount(int value) { m_associationCountHasBeenSet = true; m_associationCount = value; }
117 inline ResolverQueryLogConfig& WithAssociationCount(int value) { SetAssociationCount(value); return *this;}
119
121
124 inline const Aws::String& GetArn() const { return m_arn; }
125 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
126 template<typename ArnT = Aws::String>
127 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
128 template<typename ArnT = Aws::String>
129 ResolverQueryLogConfig& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
131
133
136 inline const Aws::String& GetName() const { return m_name; }
137 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
138 template<typename NameT = Aws::String>
139 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
140 template<typename NameT = Aws::String>
141 ResolverQueryLogConfig& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
143
145
150 inline const Aws::String& GetDestinationArn() const { return m_destinationArn; }
151 inline bool DestinationArnHasBeenSet() const { return m_destinationArnHasBeenSet; }
152 template<typename DestinationArnT = Aws::String>
153 void SetDestinationArn(DestinationArnT&& value) { m_destinationArnHasBeenSet = true; m_destinationArn = std::forward<DestinationArnT>(value); }
154 template<typename DestinationArnT = Aws::String>
155 ResolverQueryLogConfig& WithDestinationArn(DestinationArnT&& value) { SetDestinationArn(std::forward<DestinationArnT>(value)); return *this;}
157
159
164 inline const Aws::String& GetCreatorRequestId() const { return m_creatorRequestId; }
165 inline bool CreatorRequestIdHasBeenSet() const { return m_creatorRequestIdHasBeenSet; }
166 template<typename CreatorRequestIdT = Aws::String>
167 void SetCreatorRequestId(CreatorRequestIdT&& value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId = std::forward<CreatorRequestIdT>(value); }
168 template<typename CreatorRequestIdT = Aws::String>
169 ResolverQueryLogConfig& WithCreatorRequestId(CreatorRequestIdT&& value) { SetCreatorRequestId(std::forward<CreatorRequestIdT>(value)); return *this;}
171
173
177 inline const Aws::String& GetCreationTime() const { return m_creationTime; }
178 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
179 template<typename CreationTimeT = Aws::String>
180 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
181 template<typename CreationTimeT = Aws::String>
182 ResolverQueryLogConfig& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
184 private:
185
186 Aws::String m_id;
187 bool m_idHasBeenSet = false;
188
189 Aws::String m_ownerId;
190 bool m_ownerIdHasBeenSet = false;
191
193 bool m_statusHasBeenSet = false;
194
195 ShareStatus m_shareStatus{ShareStatus::NOT_SET};
196 bool m_shareStatusHasBeenSet = false;
197
198 int m_associationCount{0};
199 bool m_associationCountHasBeenSet = false;
200
201 Aws::String m_arn;
202 bool m_arnHasBeenSet = false;
203
204 Aws::String m_name;
205 bool m_nameHasBeenSet = false;
206
207 Aws::String m_destinationArn;
208 bool m_destinationArnHasBeenSet = false;
209
210 Aws::String m_creatorRequestId;
211 bool m_creatorRequestIdHasBeenSet = false;
212
213 Aws::String m_creationTime;
214 bool m_creationTimeHasBeenSet = false;
215 };
216
217} // namespace Model
218} // namespace Route53Resolver
219} // 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