AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
OutpostResolver.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/OutpostResolverStatus.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Route53Resolver {
21namespace Model {
22
30 public:
31 AWS_ROUTE53RESOLVER_API OutpostResolver() = default;
32 AWS_ROUTE53RESOLVER_API OutpostResolver(Aws::Utils::Json::JsonView jsonValue);
33 AWS_ROUTE53RESOLVER_API OutpostResolver& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_ROUTE53RESOLVER_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetArn() const { return m_arn; }
41 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
42 template <typename ArnT = Aws::String>
43 void SetArn(ArnT&& value) {
44 m_arnHasBeenSet = true;
45 m_arn = std::forward<ArnT>(value);
46 }
47 template <typename ArnT = Aws::String>
48 OutpostResolver& WithArn(ArnT&& value) {
49 SetArn(std::forward<ArnT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::String& GetCreationTime() const { return m_creationTime; }
60 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
61 template <typename CreationTimeT = Aws::String>
62 void SetCreationTime(CreationTimeT&& value) {
63 m_creationTimeHasBeenSet = true;
64 m_creationTime = std::forward<CreationTimeT>(value);
65 }
66 template <typename CreationTimeT = Aws::String>
67 OutpostResolver& WithCreationTime(CreationTimeT&& value) {
68 SetCreationTime(std::forward<CreationTimeT>(value));
69 return *this;
70 }
72
74
78 inline const Aws::String& GetModificationTime() const { return m_modificationTime; }
79 inline bool ModificationTimeHasBeenSet() const { return m_modificationTimeHasBeenSet; }
80 template <typename ModificationTimeT = Aws::String>
81 void SetModificationTime(ModificationTimeT&& value) {
82 m_modificationTimeHasBeenSet = true;
83 m_modificationTime = std::forward<ModificationTimeT>(value);
84 }
85 template <typename ModificationTimeT = Aws::String>
86 OutpostResolver& WithModificationTime(ModificationTimeT&& value) {
87 SetModificationTime(std::forward<ModificationTimeT>(value));
88 return *this;
89 }
91
93
98 inline const Aws::String& GetCreatorRequestId() const { return m_creatorRequestId; }
99 inline bool CreatorRequestIdHasBeenSet() const { return m_creatorRequestIdHasBeenSet; }
100 template <typename CreatorRequestIdT = Aws::String>
101 void SetCreatorRequestId(CreatorRequestIdT&& value) {
102 m_creatorRequestIdHasBeenSet = true;
103 m_creatorRequestId = std::forward<CreatorRequestIdT>(value);
104 }
105 template <typename CreatorRequestIdT = Aws::String>
106 OutpostResolver& WithCreatorRequestId(CreatorRequestIdT&& value) {
107 SetCreatorRequestId(std::forward<CreatorRequestIdT>(value));
108 return *this;
109 }
111
113
116 inline const Aws::String& GetId() const { return m_id; }
117 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
118 template <typename IdT = Aws::String>
119 void SetId(IdT&& value) {
120 m_idHasBeenSet = true;
121 m_id = std::forward<IdT>(value);
122 }
123 template <typename IdT = Aws::String>
124 OutpostResolver& WithId(IdT&& value) {
125 SetId(std::forward<IdT>(value));
126 return *this;
127 }
129
131
134 inline int GetInstanceCount() const { return m_instanceCount; }
135 inline bool InstanceCountHasBeenSet() const { return m_instanceCountHasBeenSet; }
136 inline void SetInstanceCount(int value) {
137 m_instanceCountHasBeenSet = true;
138 m_instanceCount = value;
139 }
141 SetInstanceCount(value);
142 return *this;
143 }
145
147
150 inline const Aws::String& GetPreferredInstanceType() const { return m_preferredInstanceType; }
151 inline bool PreferredInstanceTypeHasBeenSet() const { return m_preferredInstanceTypeHasBeenSet; }
152 template <typename PreferredInstanceTypeT = Aws::String>
153 void SetPreferredInstanceType(PreferredInstanceTypeT&& value) {
154 m_preferredInstanceTypeHasBeenSet = true;
155 m_preferredInstanceType = std::forward<PreferredInstanceTypeT>(value);
156 }
157 template <typename PreferredInstanceTypeT = Aws::String>
158 OutpostResolver& WithPreferredInstanceType(PreferredInstanceTypeT&& value) {
159 SetPreferredInstanceType(std::forward<PreferredInstanceTypeT>(value));
160 return *this;
161 }
163
165
168 inline const Aws::String& GetName() const { return m_name; }
169 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
170 template <typename NameT = Aws::String>
171 void SetName(NameT&& value) {
172 m_nameHasBeenSet = true;
173 m_name = std::forward<NameT>(value);
174 }
175 template <typename NameT = Aws::String>
176 OutpostResolver& WithName(NameT&& value) {
177 SetName(std::forward<NameT>(value));
178 return *this;
179 }
181
183
186 inline OutpostResolverStatus GetStatus() const { return m_status; }
187 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
188 inline void SetStatus(OutpostResolverStatus value) {
189 m_statusHasBeenSet = true;
190 m_status = value;
191 }
193 SetStatus(value);
194 return *this;
195 }
197
199
202 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
203 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
204 template <typename StatusMessageT = Aws::String>
205 void SetStatusMessage(StatusMessageT&& value) {
206 m_statusMessageHasBeenSet = true;
207 m_statusMessage = std::forward<StatusMessageT>(value);
208 }
209 template <typename StatusMessageT = Aws::String>
210 OutpostResolver& WithStatusMessage(StatusMessageT&& value) {
211 SetStatusMessage(std::forward<StatusMessageT>(value));
212 return *this;
213 }
215
217
220 inline const Aws::String& GetOutpostArn() const { return m_outpostArn; }
221 inline bool OutpostArnHasBeenSet() const { return m_outpostArnHasBeenSet; }
222 template <typename OutpostArnT = Aws::String>
223 void SetOutpostArn(OutpostArnT&& value) {
224 m_outpostArnHasBeenSet = true;
225 m_outpostArn = std::forward<OutpostArnT>(value);
226 }
227 template <typename OutpostArnT = Aws::String>
228 OutpostResolver& WithOutpostArn(OutpostArnT&& value) {
229 SetOutpostArn(std::forward<OutpostArnT>(value));
230 return *this;
231 }
233 private:
234 Aws::String m_arn;
235
236 Aws::String m_creationTime;
237
238 Aws::String m_modificationTime;
239
240 Aws::String m_creatorRequestId;
241
242 Aws::String m_id;
243
244 int m_instanceCount{0};
245
246 Aws::String m_preferredInstanceType;
247
248 Aws::String m_name;
249
251
252 Aws::String m_statusMessage;
253
254 Aws::String m_outpostArn;
255 bool m_arnHasBeenSet = false;
256 bool m_creationTimeHasBeenSet = false;
257 bool m_modificationTimeHasBeenSet = false;
258 bool m_creatorRequestIdHasBeenSet = false;
259 bool m_idHasBeenSet = false;
260 bool m_instanceCountHasBeenSet = false;
261 bool m_preferredInstanceTypeHasBeenSet = false;
262 bool m_nameHasBeenSet = false;
263 bool m_statusHasBeenSet = false;
264 bool m_statusMessageHasBeenSet = false;
265 bool m_outpostArnHasBeenSet = false;
266};
267
268} // namespace Model
269} // namespace Route53Resolver
270} // namespace Aws
AWS_ROUTE53RESOLVER_API OutpostResolver & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetModificationTime() const
AWS_ROUTE53RESOLVER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ROUTE53RESOLVER_API OutpostResolver()=default
OutpostResolver & WithStatusMessage(StatusMessageT &&value)
OutpostResolver & WithCreatorRequestId(CreatorRequestIdT &&value)
OutpostResolver & WithInstanceCount(int value)
AWS_ROUTE53RESOLVER_API OutpostResolver(Aws::Utils::Json::JsonView jsonValue)
void SetPreferredInstanceType(PreferredInstanceTypeT &&value)
void SetStatusMessage(StatusMessageT &&value)
OutpostResolver & WithPreferredInstanceType(PreferredInstanceTypeT &&value)
OutpostResolver & WithModificationTime(ModificationTimeT &&value)
OutpostResolver & WithCreationTime(CreationTimeT &&value)
void SetModificationTime(ModificationTimeT &&value)
OutpostResolver & WithArn(ArnT &&value)
void SetCreationTime(CreationTimeT &&value)
void SetCreatorRequestId(CreatorRequestIdT &&value)
const Aws::String & GetPreferredInstanceType() const
OutpostResolver & WithStatus(OutpostResolverStatus value)
const Aws::String & GetCreationTime() const
const Aws::String & GetCreatorRequestId() const
void SetStatus(OutpostResolverStatus value)
OutpostResolver & WithOutpostArn(OutpostArnT &&value)
OutpostResolver & WithName(NameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue