AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
UnlockRuleResult.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/rbin/RecycleBin_EXPORTS.h>
11#include <aws/rbin/model/LockConfiguration.h>
12#include <aws/rbin/model/LockState.h>
13#include <aws/rbin/model/ResourceTag.h>
14#include <aws/rbin/model/ResourceType.h>
15#include <aws/rbin/model/RetentionPeriod.h>
16#include <aws/rbin/model/RuleStatus.h>
17
18#include <utility>
19
20namespace Aws {
21template <typename RESULT_TYPE>
22class AmazonWebServiceResult;
23
24namespace Utils {
25namespace Json {
26class JsonValue;
27} // namespace Json
28} // namespace Utils
29namespace RecycleBin {
30namespace Model {
32 public:
33 AWS_RECYCLEBIN_API UnlockRuleResult() = default;
36
38
41 inline const Aws::String& GetIdentifier() const { return m_identifier; }
42 template <typename IdentifierT = Aws::String>
43 void SetIdentifier(IdentifierT&& value) {
44 m_identifierHasBeenSet = true;
45 m_identifier = std::forward<IdentifierT>(value);
46 }
47 template <typename IdentifierT = Aws::String>
48 UnlockRuleResult& WithIdentifier(IdentifierT&& value) {
49 SetIdentifier(std::forward<IdentifierT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetDescription() const { return m_description; }
59 template <typename DescriptionT = Aws::String>
60 void SetDescription(DescriptionT&& value) {
61 m_descriptionHasBeenSet = true;
62 m_description = std::forward<DescriptionT>(value);
63 }
64 template <typename DescriptionT = Aws::String>
65 UnlockRuleResult& WithDescription(DescriptionT&& value) {
66 SetDescription(std::forward<DescriptionT>(value));
67 return *this;
68 }
70
72
75 inline ResourceType GetResourceType() const { return m_resourceType; }
76 inline void SetResourceType(ResourceType value) {
77 m_resourceTypeHasBeenSet = true;
78 m_resourceType = value;
79 }
81 SetResourceType(value);
82 return *this;
83 }
85
87
88 inline const RetentionPeriod& GetRetentionPeriod() const { return m_retentionPeriod; }
89 template <typename RetentionPeriodT = RetentionPeriod>
90 void SetRetentionPeriod(RetentionPeriodT&& value) {
91 m_retentionPeriodHasBeenSet = true;
92 m_retentionPeriod = std::forward<RetentionPeriodT>(value);
93 }
94 template <typename RetentionPeriodT = RetentionPeriod>
95 UnlockRuleResult& WithRetentionPeriod(RetentionPeriodT&& value) {
96 SetRetentionPeriod(std::forward<RetentionPeriodT>(value));
97 return *this;
98 }
100
102
106 inline const Aws::Vector<ResourceTag>& GetResourceTags() const { return m_resourceTags; }
107 template <typename ResourceTagsT = Aws::Vector<ResourceTag>>
108 void SetResourceTags(ResourceTagsT&& value) {
109 m_resourceTagsHasBeenSet = true;
110 m_resourceTags = std::forward<ResourceTagsT>(value);
111 }
112 template <typename ResourceTagsT = Aws::Vector<ResourceTag>>
113 UnlockRuleResult& WithResourceTags(ResourceTagsT&& value) {
114 SetResourceTags(std::forward<ResourceTagsT>(value));
115 return *this;
116 }
117 template <typename ResourceTagsT = ResourceTag>
118 UnlockRuleResult& AddResourceTags(ResourceTagsT&& value) {
119 m_resourceTagsHasBeenSet = true;
120 m_resourceTags.emplace_back(std::forward<ResourceTagsT>(value));
121 return *this;
122 }
124
126
130 inline RuleStatus GetStatus() const { return m_status; }
131 inline void SetStatus(RuleStatus value) {
132 m_statusHasBeenSet = true;
133 m_status = value;
134 }
136 SetStatus(value);
137 return *this;
138 }
140
142
145 inline const LockConfiguration& GetLockConfiguration() const { return m_lockConfiguration; }
146 template <typename LockConfigurationT = LockConfiguration>
147 void SetLockConfiguration(LockConfigurationT&& value) {
148 m_lockConfigurationHasBeenSet = true;
149 m_lockConfiguration = std::forward<LockConfigurationT>(value);
150 }
151 template <typename LockConfigurationT = LockConfiguration>
152 UnlockRuleResult& WithLockConfiguration(LockConfigurationT&& value) {
153 SetLockConfiguration(std::forward<LockConfigurationT>(value));
154 return *this;
155 }
157
159
172 inline LockState GetLockState() const { return m_lockState; }
173 inline void SetLockState(LockState value) {
174 m_lockStateHasBeenSet = true;
175 m_lockState = value;
176 }
178 SetLockState(value);
179 return *this;
180 }
182
184
189 inline const Aws::Utils::DateTime& GetLockEndTime() const { return m_lockEndTime; }
190 template <typename LockEndTimeT = Aws::Utils::DateTime>
191 void SetLockEndTime(LockEndTimeT&& value) {
192 m_lockEndTimeHasBeenSet = true;
193 m_lockEndTime = std::forward<LockEndTimeT>(value);
194 }
195 template <typename LockEndTimeT = Aws::Utils::DateTime>
196 UnlockRuleResult& WithLockEndTime(LockEndTimeT&& value) {
197 SetLockEndTime(std::forward<LockEndTimeT>(value));
198 return *this;
199 }
201
203
206 inline const Aws::String& GetRuleArn() const { return m_ruleArn; }
207 template <typename RuleArnT = Aws::String>
208 void SetRuleArn(RuleArnT&& value) {
209 m_ruleArnHasBeenSet = true;
210 m_ruleArn = std::forward<RuleArnT>(value);
211 }
212 template <typename RuleArnT = Aws::String>
213 UnlockRuleResult& WithRuleArn(RuleArnT&& value) {
214 SetRuleArn(std::forward<RuleArnT>(value));
215 return *this;
216 }
218
220
225 inline const Aws::Vector<ResourceTag>& GetExcludeResourceTags() const { return m_excludeResourceTags; }
226 template <typename ExcludeResourceTagsT = Aws::Vector<ResourceTag>>
227 void SetExcludeResourceTags(ExcludeResourceTagsT&& value) {
228 m_excludeResourceTagsHasBeenSet = true;
229 m_excludeResourceTags = std::forward<ExcludeResourceTagsT>(value);
230 }
231 template <typename ExcludeResourceTagsT = Aws::Vector<ResourceTag>>
232 UnlockRuleResult& WithExcludeResourceTags(ExcludeResourceTagsT&& value) {
233 SetExcludeResourceTags(std::forward<ExcludeResourceTagsT>(value));
234 return *this;
235 }
236 template <typename ExcludeResourceTagsT = ResourceTag>
237 UnlockRuleResult& AddExcludeResourceTags(ExcludeResourceTagsT&& value) {
238 m_excludeResourceTagsHasBeenSet = true;
239 m_excludeResourceTags.emplace_back(std::forward<ExcludeResourceTagsT>(value));
240 return *this;
241 }
243
245
246 inline const Aws::String& GetRequestId() const { return m_requestId; }
247 template <typename RequestIdT = Aws::String>
248 void SetRequestId(RequestIdT&& value) {
249 m_requestIdHasBeenSet = true;
250 m_requestId = std::forward<RequestIdT>(value);
251 }
252 template <typename RequestIdT = Aws::String>
253 UnlockRuleResult& WithRequestId(RequestIdT&& value) {
254 SetRequestId(std::forward<RequestIdT>(value));
255 return *this;
256 }
258 private:
259 Aws::String m_identifier;
260
261 Aws::String m_description;
262
263 ResourceType m_resourceType{ResourceType::NOT_SET};
264
265 RetentionPeriod m_retentionPeriod;
266
267 Aws::Vector<ResourceTag> m_resourceTags;
268
270
271 LockConfiguration m_lockConfiguration;
272
273 LockState m_lockState{LockState::NOT_SET};
274
275 Aws::Utils::DateTime m_lockEndTime{};
276
277 Aws::String m_ruleArn;
278
279 Aws::Vector<ResourceTag> m_excludeResourceTags;
280
281 Aws::String m_requestId;
282 bool m_identifierHasBeenSet = false;
283 bool m_descriptionHasBeenSet = false;
284 bool m_resourceTypeHasBeenSet = false;
285 bool m_retentionPeriodHasBeenSet = false;
286 bool m_resourceTagsHasBeenSet = false;
287 bool m_statusHasBeenSet = false;
288 bool m_lockConfigurationHasBeenSet = false;
289 bool m_lockStateHasBeenSet = false;
290 bool m_lockEndTimeHasBeenSet = false;
291 bool m_ruleArnHasBeenSet = false;
292 bool m_excludeResourceTagsHasBeenSet = false;
293 bool m_requestIdHasBeenSet = false;
294};
295
296} // namespace Model
297} // namespace RecycleBin
298} // namespace Aws
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