AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
GetRuleResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/rbin/RecycleBin_EXPORTS.h>
12#include <aws/rbin/model/LockConfiguration.h>
13#include <aws/rbin/model/LockState.h>
14#include <aws/rbin/model/ResourceTag.h>
15#include <aws/rbin/model/ResourceType.h>
16#include <aws/rbin/model/RetentionPeriod.h>
17#include <aws/rbin/model/RuleStatus.h>
18
19#include <utility>
20
21namespace Aws {
22template <typename RESULT_TYPE>
23class AmazonWebServiceResult;
24
25namespace Utils {
26namespace Json {
27class JsonValue;
28} // namespace Json
29} // namespace Utils
30namespace RecycleBin {
31namespace Model {
33 public:
34 AWS_RECYCLEBIN_API GetRuleResult() = default;
37
39
42 inline const Aws::String& GetIdentifier() const { return m_identifier; }
43 template <typename IdentifierT = Aws::String>
44 void SetIdentifier(IdentifierT&& value) {
45 m_identifierHasBeenSet = true;
46 m_identifier = std::forward<IdentifierT>(value);
47 }
48 template <typename IdentifierT = Aws::String>
49 GetRuleResult& WithIdentifier(IdentifierT&& value) {
50 SetIdentifier(std::forward<IdentifierT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetDescription() const { return m_description; }
60 template <typename DescriptionT = Aws::String>
61 void SetDescription(DescriptionT&& value) {
62 m_descriptionHasBeenSet = true;
63 m_description = std::forward<DescriptionT>(value);
64 }
65 template <typename DescriptionT = Aws::String>
66 GetRuleResult& WithDescription(DescriptionT&& value) {
67 SetDescription(std::forward<DescriptionT>(value));
68 return *this;
69 }
71
73
76 inline ResourceType GetResourceType() const { return m_resourceType; }
77 inline void SetResourceType(ResourceType value) {
78 m_resourceTypeHasBeenSet = true;
79 m_resourceType = value;
80 }
82 SetResourceType(value);
83 return *this;
84 }
86
88
92 inline const RetentionPeriod& GetRetentionPeriod() const { return m_retentionPeriod; }
93 template <typename RetentionPeriodT = RetentionPeriod>
94 void SetRetentionPeriod(RetentionPeriodT&& value) {
95 m_retentionPeriodHasBeenSet = true;
96 m_retentionPeriod = std::forward<RetentionPeriodT>(value);
97 }
98 template <typename RetentionPeriodT = RetentionPeriod>
99 GetRuleResult& WithRetentionPeriod(RetentionPeriodT&& value) {
100 SetRetentionPeriod(std::forward<RetentionPeriodT>(value));
101 return *this;
102 }
104
106
110 inline const Aws::Vector<ResourceTag>& GetResourceTags() const { return m_resourceTags; }
111 template <typename ResourceTagsT = Aws::Vector<ResourceTag>>
112 void SetResourceTags(ResourceTagsT&& value) {
113 m_resourceTagsHasBeenSet = true;
114 m_resourceTags = std::forward<ResourceTagsT>(value);
115 }
116 template <typename ResourceTagsT = Aws::Vector<ResourceTag>>
117 GetRuleResult& WithResourceTags(ResourceTagsT&& value) {
118 SetResourceTags(std::forward<ResourceTagsT>(value));
119 return *this;
120 }
121 template <typename ResourceTagsT = ResourceTag>
122 GetRuleResult& AddResourceTags(ResourceTagsT&& value) {
123 m_resourceTagsHasBeenSet = true;
124 m_resourceTags.emplace_back(std::forward<ResourceTagsT>(value));
125 return *this;
126 }
128
130
134 inline RuleStatus GetStatus() const { return m_status; }
135 inline void SetStatus(RuleStatus value) {
136 m_statusHasBeenSet = true;
137 m_status = value;
138 }
140 SetStatus(value);
141 return *this;
142 }
144
146
149 inline const LockConfiguration& GetLockConfiguration() const { return m_lockConfiguration; }
150 template <typename LockConfigurationT = LockConfiguration>
151 void SetLockConfiguration(LockConfigurationT&& value) {
152 m_lockConfigurationHasBeenSet = true;
153 m_lockConfiguration = std::forward<LockConfigurationT>(value);
154 }
155 template <typename LockConfigurationT = LockConfiguration>
156 GetRuleResult& WithLockConfiguration(LockConfigurationT&& value) {
157 SetLockConfiguration(std::forward<LockConfigurationT>(value));
158 return *this;
159 }
161
163
176 inline LockState GetLockState() const { return m_lockState; }
177 inline void SetLockState(LockState value) {
178 m_lockStateHasBeenSet = true;
179 m_lockState = value;
180 }
182 SetLockState(value);
183 return *this;
184 }
186
188
193 inline const Aws::Utils::DateTime& GetLockEndTime() const { return m_lockEndTime; }
194 template <typename LockEndTimeT = Aws::Utils::DateTime>
195 void SetLockEndTime(LockEndTimeT&& value) {
196 m_lockEndTimeHasBeenSet = true;
197 m_lockEndTime = std::forward<LockEndTimeT>(value);
198 }
199 template <typename LockEndTimeT = Aws::Utils::DateTime>
200 GetRuleResult& WithLockEndTime(LockEndTimeT&& value) {
201 SetLockEndTime(std::forward<LockEndTimeT>(value));
202 return *this;
203 }
205
207
210 inline const Aws::String& GetRuleArn() const { return m_ruleArn; }
211 template <typename RuleArnT = Aws::String>
212 void SetRuleArn(RuleArnT&& value) {
213 m_ruleArnHasBeenSet = true;
214 m_ruleArn = std::forward<RuleArnT>(value);
215 }
216 template <typename RuleArnT = Aws::String>
217 GetRuleResult& WithRuleArn(RuleArnT&& value) {
218 SetRuleArn(std::forward<RuleArnT>(value));
219 return *this;
220 }
222
224
229 inline const Aws::Vector<ResourceTag>& GetExcludeResourceTags() const { return m_excludeResourceTags; }
230 template <typename ExcludeResourceTagsT = Aws::Vector<ResourceTag>>
231 void SetExcludeResourceTags(ExcludeResourceTagsT&& value) {
232 m_excludeResourceTagsHasBeenSet = true;
233 m_excludeResourceTags = std::forward<ExcludeResourceTagsT>(value);
234 }
235 template <typename ExcludeResourceTagsT = Aws::Vector<ResourceTag>>
236 GetRuleResult& WithExcludeResourceTags(ExcludeResourceTagsT&& value) {
237 SetExcludeResourceTags(std::forward<ExcludeResourceTagsT>(value));
238 return *this;
239 }
240 template <typename ExcludeResourceTagsT = ResourceTag>
241 GetRuleResult& AddExcludeResourceTags(ExcludeResourceTagsT&& value) {
242 m_excludeResourceTagsHasBeenSet = true;
243 m_excludeResourceTags.emplace_back(std::forward<ExcludeResourceTagsT>(value));
244 return *this;
245 }
247
249
250 inline const Aws::String& GetRequestId() const { return m_requestId; }
251 template <typename RequestIdT = Aws::String>
252 void SetRequestId(RequestIdT&& value) {
253 m_requestIdHasBeenSet = true;
254 m_requestId = std::forward<RequestIdT>(value);
255 }
256 template <typename RequestIdT = Aws::String>
257 GetRuleResult& WithRequestId(RequestIdT&& value) {
258 SetRequestId(std::forward<RequestIdT>(value));
259 return *this;
260 }
262 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
263
264 private:
265 Aws::String m_identifier;
266
267 Aws::String m_description;
268
269 ResourceType m_resourceType{ResourceType::NOT_SET};
270
271 RetentionPeriod m_retentionPeriod;
272
273 Aws::Vector<ResourceTag> m_resourceTags;
274
276
277 LockConfiguration m_lockConfiguration;
278
279 LockState m_lockState{LockState::NOT_SET};
280
281 Aws::Utils::DateTime m_lockEndTime{};
282
283 Aws::String m_ruleArn;
284
285 Aws::Vector<ResourceTag> m_excludeResourceTags;
286
287 Aws::String m_requestId;
288 Aws::Http::HttpResponseCode m_HttpResponseCode;
289 bool m_identifierHasBeenSet = false;
290 bool m_descriptionHasBeenSet = false;
291 bool m_resourceTypeHasBeenSet = false;
292 bool m_retentionPeriodHasBeenSet = false;
293 bool m_resourceTagsHasBeenSet = false;
294 bool m_statusHasBeenSet = false;
295 bool m_lockConfigurationHasBeenSet = false;
296 bool m_lockStateHasBeenSet = false;
297 bool m_lockEndTimeHasBeenSet = false;
298 bool m_ruleArnHasBeenSet = false;
299 bool m_excludeResourceTagsHasBeenSet = false;
300 bool m_requestIdHasBeenSet = false;
301};
302
303} // namespace Model
304} // namespace RecycleBin
305} // namespace Aws
GetRuleResult & WithStatus(RuleStatus value)
const Aws::String & GetRequestId() const
GetRuleResult & WithRetentionPeriod(RetentionPeriodT &&value)
GetRuleResult & WithIdentifier(IdentifierT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
GetRuleResult & WithResourceType(ResourceType value)
const Aws::String & GetDescription() const
GetRuleResult & WithResourceTags(ResourceTagsT &&value)
AWS_RECYCLEBIN_API GetRuleResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetResourceType(ResourceType value)
GetRuleResult & WithLockEndTime(LockEndTimeT &&value)
const Aws::String & GetRuleArn() const
const Aws::Vector< ResourceTag > & GetExcludeResourceTags() const
AWS_RECYCLEBIN_API GetRuleResult()=default
GetRuleResult & WithLockConfiguration(LockConfigurationT &&value)
void SetLockEndTime(LockEndTimeT &&value)
void SetResourceTags(ResourceTagsT &&value)
GetRuleResult & WithRuleArn(RuleArnT &&value)
void SetLockConfiguration(LockConfigurationT &&value)
AWS_RECYCLEBIN_API GetRuleResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::String & GetIdentifier() const
GetRuleResult & AddResourceTags(ResourceTagsT &&value)
GetRuleResult & AddExcludeResourceTags(ExcludeResourceTagsT &&value)
void SetDescription(DescriptionT &&value)
const LockConfiguration & GetLockConfiguration() const
const Aws::Utils::DateTime & GetLockEndTime() const
GetRuleResult & WithRequestId(RequestIdT &&value)
void SetIdentifier(IdentifierT &&value)
GetRuleResult & WithDescription(DescriptionT &&value)
void SetExcludeResourceTags(ExcludeResourceTagsT &&value)
const Aws::Vector< ResourceTag > & GetResourceTags() const
GetRuleResult & WithExcludeResourceTags(ExcludeResourceTagsT &&value)
void SetRequestId(RequestIdT &&value)
const RetentionPeriod & GetRetentionPeriod() const
void SetRetentionPeriod(RetentionPeriodT &&value)
GetRuleResult & WithLockState(LockState value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue