AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
UnlockRuleResult.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 UnlockRuleResult() = 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 UnlockRuleResult& 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 UnlockRuleResult& 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
89 inline const RetentionPeriod& GetRetentionPeriod() const { return m_retentionPeriod; }
90 template <typename RetentionPeriodT = RetentionPeriod>
91 void SetRetentionPeriod(RetentionPeriodT&& value) {
92 m_retentionPeriodHasBeenSet = true;
93 m_retentionPeriod = std::forward<RetentionPeriodT>(value);
94 }
95 template <typename RetentionPeriodT = RetentionPeriod>
96 UnlockRuleResult& WithRetentionPeriod(RetentionPeriodT&& value) {
97 SetRetentionPeriod(std::forward<RetentionPeriodT>(value));
98 return *this;
99 }
101
103
107 inline const Aws::Vector<ResourceTag>& GetResourceTags() const { return m_resourceTags; }
108 template <typename ResourceTagsT = Aws::Vector<ResourceTag>>
109 void SetResourceTags(ResourceTagsT&& value) {
110 m_resourceTagsHasBeenSet = true;
111 m_resourceTags = std::forward<ResourceTagsT>(value);
112 }
113 template <typename ResourceTagsT = Aws::Vector<ResourceTag>>
114 UnlockRuleResult& WithResourceTags(ResourceTagsT&& value) {
115 SetResourceTags(std::forward<ResourceTagsT>(value));
116 return *this;
117 }
118 template <typename ResourceTagsT = ResourceTag>
119 UnlockRuleResult& AddResourceTags(ResourceTagsT&& value) {
120 m_resourceTagsHasBeenSet = true;
121 m_resourceTags.emplace_back(std::forward<ResourceTagsT>(value));
122 return *this;
123 }
125
127
131 inline RuleStatus GetStatus() const { return m_status; }
132 inline void SetStatus(RuleStatus value) {
133 m_statusHasBeenSet = true;
134 m_status = value;
135 }
137 SetStatus(value);
138 return *this;
139 }
141
143
146 inline const LockConfiguration& GetLockConfiguration() const { return m_lockConfiguration; }
147 template <typename LockConfigurationT = LockConfiguration>
148 void SetLockConfiguration(LockConfigurationT&& value) {
149 m_lockConfigurationHasBeenSet = true;
150 m_lockConfiguration = std::forward<LockConfigurationT>(value);
151 }
152 template <typename LockConfigurationT = LockConfiguration>
153 UnlockRuleResult& WithLockConfiguration(LockConfigurationT&& value) {
154 SetLockConfiguration(std::forward<LockConfigurationT>(value));
155 return *this;
156 }
158
160
173 inline LockState GetLockState() const { return m_lockState; }
174 inline void SetLockState(LockState value) {
175 m_lockStateHasBeenSet = true;
176 m_lockState = value;
177 }
179 SetLockState(value);
180 return *this;
181 }
183
185
190 inline const Aws::Utils::DateTime& GetLockEndTime() const { return m_lockEndTime; }
191 template <typename LockEndTimeT = Aws::Utils::DateTime>
192 void SetLockEndTime(LockEndTimeT&& value) {
193 m_lockEndTimeHasBeenSet = true;
194 m_lockEndTime = std::forward<LockEndTimeT>(value);
195 }
196 template <typename LockEndTimeT = Aws::Utils::DateTime>
197 UnlockRuleResult& WithLockEndTime(LockEndTimeT&& value) {
198 SetLockEndTime(std::forward<LockEndTimeT>(value));
199 return *this;
200 }
202
204
207 inline const Aws::String& GetRuleArn() const { return m_ruleArn; }
208 template <typename RuleArnT = Aws::String>
209 void SetRuleArn(RuleArnT&& value) {
210 m_ruleArnHasBeenSet = true;
211 m_ruleArn = std::forward<RuleArnT>(value);
212 }
213 template <typename RuleArnT = Aws::String>
214 UnlockRuleResult& WithRuleArn(RuleArnT&& value) {
215 SetRuleArn(std::forward<RuleArnT>(value));
216 return *this;
217 }
219
221
226 inline const Aws::Vector<ResourceTag>& GetExcludeResourceTags() const { return m_excludeResourceTags; }
227 template <typename ExcludeResourceTagsT = Aws::Vector<ResourceTag>>
228 void SetExcludeResourceTags(ExcludeResourceTagsT&& value) {
229 m_excludeResourceTagsHasBeenSet = true;
230 m_excludeResourceTags = std::forward<ExcludeResourceTagsT>(value);
231 }
232 template <typename ExcludeResourceTagsT = Aws::Vector<ResourceTag>>
233 UnlockRuleResult& WithExcludeResourceTags(ExcludeResourceTagsT&& value) {
234 SetExcludeResourceTags(std::forward<ExcludeResourceTagsT>(value));
235 return *this;
236 }
237 template <typename ExcludeResourceTagsT = ResourceTag>
238 UnlockRuleResult& AddExcludeResourceTags(ExcludeResourceTagsT&& value) {
239 m_excludeResourceTagsHasBeenSet = true;
240 m_excludeResourceTags.emplace_back(std::forward<ExcludeResourceTagsT>(value));
241 return *this;
242 }
244
246
247 inline const Aws::String& GetRequestId() const { return m_requestId; }
248 template <typename RequestIdT = Aws::String>
249 void SetRequestId(RequestIdT&& value) {
250 m_requestIdHasBeenSet = true;
251 m_requestId = std::forward<RequestIdT>(value);
252 }
253 template <typename RequestIdT = Aws::String>
254 UnlockRuleResult& WithRequestId(RequestIdT&& value) {
255 SetRequestId(std::forward<RequestIdT>(value));
256 return *this;
257 }
259 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
260
261 private:
262 Aws::String m_identifier;
263
264 Aws::String m_description;
265
266 ResourceType m_resourceType{ResourceType::NOT_SET};
267
268 RetentionPeriod m_retentionPeriod;
269
270 Aws::Vector<ResourceTag> m_resourceTags;
271
273
274 LockConfiguration m_lockConfiguration;
275
276 LockState m_lockState{LockState::NOT_SET};
277
278 Aws::Utils::DateTime m_lockEndTime{};
279
280 Aws::String m_ruleArn;
281
282 Aws::Vector<ResourceTag> m_excludeResourceTags;
283
284 Aws::String m_requestId;
285 Aws::Http::HttpResponseCode m_HttpResponseCode;
286 bool m_identifierHasBeenSet = false;
287 bool m_descriptionHasBeenSet = false;
288 bool m_resourceTypeHasBeenSet = false;
289 bool m_retentionPeriodHasBeenSet = false;
290 bool m_resourceTagsHasBeenSet = false;
291 bool m_statusHasBeenSet = false;
292 bool m_lockConfigurationHasBeenSet = false;
293 bool m_lockStateHasBeenSet = false;
294 bool m_lockEndTimeHasBeenSet = false;
295 bool m_ruleArnHasBeenSet = false;
296 bool m_excludeResourceTagsHasBeenSet = false;
297 bool m_requestIdHasBeenSet = false;
298};
299
300} // namespace Model
301} // namespace RecycleBin
302} // namespace Aws
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const LockConfiguration & GetLockConfiguration() const
UnlockRuleResult & AddResourceTags(ResourceTagsT &&value)
void SetLockConfiguration(LockConfigurationT &&value)
const RetentionPeriod & GetRetentionPeriod() const
const Aws::Vector< ResourceTag > & GetExcludeResourceTags() const
const Aws::String & GetDescription() const
UnlockRuleResult & WithRetentionPeriod(RetentionPeriodT &&value)
UnlockRuleResult & WithResourceTags(ResourceTagsT &&value)
UnlockRuleResult & WithExcludeResourceTags(ExcludeResourceTagsT &&value)
UnlockRuleResult & WithLockState(LockState value)
const Aws::String & GetIdentifier() const
UnlockRuleResult & WithLockEndTime(LockEndTimeT &&value)
AWS_RECYCLEBIN_API UnlockRuleResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetRetentionPeriod(RetentionPeriodT &&value)
void SetResourceTags(ResourceTagsT &&value)
AWS_RECYCLEBIN_API UnlockRuleResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetExcludeResourceTags(ExcludeResourceTagsT &&value)
UnlockRuleResult & WithRequestId(RequestIdT &&value)
UnlockRuleResult & WithStatus(RuleStatus value)
const Aws::String & GetRequestId() const
UnlockRuleResult & WithLockConfiguration(LockConfigurationT &&value)
UnlockRuleResult & AddExcludeResourceTags(ExcludeResourceTagsT &&value)
const Aws::Vector< ResourceTag > & GetResourceTags() const
UnlockRuleResult & WithRuleArn(RuleArnT &&value)
UnlockRuleResult & WithDescription(DescriptionT &&value)
void SetDescription(DescriptionT &&value)
AWS_RECYCLEBIN_API UnlockRuleResult()=default
void SetLockEndTime(LockEndTimeT &&value)
UnlockRuleResult & WithResourceType(ResourceType value)
const Aws::Utils::DateTime & GetLockEndTime() const
UnlockRuleResult & WithIdentifier(IdentifierT &&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