AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ResolverQueryLogConfigAssociation.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/ResolverQueryLogConfigAssociationError.h>
10#include <aws/route53resolver/model/ResolverQueryLogConfigAssociationStatus.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
40 public:
41 AWS_ROUTE53RESOLVER_API ResolverQueryLogConfigAssociation() = default;
44 AWS_ROUTE53RESOLVER_API Aws::Utils::Json::JsonValue Jsonize() const;
45
47
50 inline const Aws::String& GetId() const { return m_id; }
51 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
52 template <typename IdT = Aws::String>
53 void SetId(IdT&& value) {
54 m_idHasBeenSet = true;
55 m_id = std::forward<IdT>(value);
56 }
57 template <typename IdT = Aws::String>
59 SetId(std::forward<IdT>(value));
60 return *this;
61 }
63
65
68 inline const Aws::String& GetResolverQueryLogConfigId() const { return m_resolverQueryLogConfigId; }
69 inline bool ResolverQueryLogConfigIdHasBeenSet() const { return m_resolverQueryLogConfigIdHasBeenSet; }
70 template <typename ResolverQueryLogConfigIdT = Aws::String>
71 void SetResolverQueryLogConfigId(ResolverQueryLogConfigIdT&& value) {
72 m_resolverQueryLogConfigIdHasBeenSet = true;
73 m_resolverQueryLogConfigId = std::forward<ResolverQueryLogConfigIdT>(value);
74 }
75 template <typename ResolverQueryLogConfigIdT = Aws::String>
77 SetResolverQueryLogConfigId(std::forward<ResolverQueryLogConfigIdT>(value));
78 return *this;
79 }
81
83
87 inline const Aws::String& GetResourceId() const { return m_resourceId; }
88 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
89 template <typename ResourceIdT = Aws::String>
90 void SetResourceId(ResourceIdT&& value) {
91 m_resourceIdHasBeenSet = true;
92 m_resourceId = std::forward<ResourceIdT>(value);
93 }
94 template <typename ResourceIdT = Aws::String>
96 SetResourceId(std::forward<ResourceIdT>(value));
97 return *this;
98 }
100
102
113 inline ResolverQueryLogConfigAssociationStatus GetStatus() const { return m_status; }
114 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
116 m_statusHasBeenSet = true;
117 m_status = value;
118 }
120 SetStatus(value);
121 return *this;
122 }
124
126
135 inline ResolverQueryLogConfigAssociationError GetError() const { return m_error; }
136 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
138 m_errorHasBeenSet = true;
139 m_error = value;
140 }
142 SetError(value);
143 return *this;
144 }
146
148
153 inline const Aws::String& GetErrorMessage() const { return m_errorMessage; }
154 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
155 template <typename ErrorMessageT = Aws::String>
156 void SetErrorMessage(ErrorMessageT&& value) {
157 m_errorMessageHasBeenSet = true;
158 m_errorMessage = std::forward<ErrorMessageT>(value);
159 }
160 template <typename ErrorMessageT = Aws::String>
162 SetErrorMessage(std::forward<ErrorMessageT>(value));
163 return *this;
164 }
166
168
172 inline const Aws::String& GetCreationTime() const { return m_creationTime; }
173 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
174 template <typename CreationTimeT = Aws::String>
175 void SetCreationTime(CreationTimeT&& value) {
176 m_creationTimeHasBeenSet = true;
177 m_creationTime = std::forward<CreationTimeT>(value);
178 }
179 template <typename CreationTimeT = Aws::String>
181 SetCreationTime(std::forward<CreationTimeT>(value));
182 return *this;
183 }
185 private:
186 Aws::String m_id;
187
188 Aws::String m_resolverQueryLogConfigId;
189
190 Aws::String m_resourceId;
191
193
195
196 Aws::String m_errorMessage;
197
198 Aws::String m_creationTime;
199 bool m_idHasBeenSet = false;
200 bool m_resolverQueryLogConfigIdHasBeenSet = false;
201 bool m_resourceIdHasBeenSet = false;
202 bool m_statusHasBeenSet = false;
203 bool m_errorHasBeenSet = false;
204 bool m_errorMessageHasBeenSet = false;
205 bool m_creationTimeHasBeenSet = false;
206};
207
208} // namespace Model
209} // namespace Route53Resolver
210} // namespace Aws
ResolverQueryLogConfigAssociation & WithError(ResolverQueryLogConfigAssociationError value)
AWS_ROUTE53RESOLVER_API ResolverQueryLogConfigAssociation(Aws::Utils::Json::JsonView jsonValue)
ResolverQueryLogConfigAssociation & WithCreationTime(CreationTimeT &&value)
ResolverQueryLogConfigAssociation & WithStatus(ResolverQueryLogConfigAssociationStatus value)
AWS_ROUTE53RESOLVER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ROUTE53RESOLVER_API ResolverQueryLogConfigAssociation()=default
ResolverQueryLogConfigAssociation & WithResourceId(ResourceIdT &&value)
AWS_ROUTE53RESOLVER_API ResolverQueryLogConfigAssociation & operator=(Aws::Utils::Json::JsonView jsonValue)
ResolverQueryLogConfigAssociation & WithResolverQueryLogConfigId(ResolverQueryLogConfigIdT &&value)
ResolverQueryLogConfigAssociation & WithErrorMessage(ErrorMessageT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue