AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
GetRuleResult.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 GetRuleResult() = 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 GetRuleResult& 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 GetRuleResult& 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
91 inline const RetentionPeriod& GetRetentionPeriod() const { return m_retentionPeriod; }
92 template <typename RetentionPeriodT = RetentionPeriod>
93 void SetRetentionPeriod(RetentionPeriodT&& value) {
94 m_retentionPeriodHasBeenSet = true;
95 m_retentionPeriod = std::forward<RetentionPeriodT>(value);
96 }
97 template <typename RetentionPeriodT = RetentionPeriod>
98 GetRuleResult& WithRetentionPeriod(RetentionPeriodT&& value) {
99 SetRetentionPeriod(std::forward<RetentionPeriodT>(value));
100 return *this;
101 }
103
105
109 inline const Aws::Vector<ResourceTag>& GetResourceTags() const { return m_resourceTags; }
110 template <typename ResourceTagsT = Aws::Vector<ResourceTag>>
111 void SetResourceTags(ResourceTagsT&& value) {
112 m_resourceTagsHasBeenSet = true;
113 m_resourceTags = std::forward<ResourceTagsT>(value);
114 }
115 template <typename ResourceTagsT = Aws::Vector<ResourceTag>>
116 GetRuleResult& WithResourceTags(ResourceTagsT&& value) {
117 SetResourceTags(std::forward<ResourceTagsT>(value));
118 return *this;
119 }
120 template <typename ResourceTagsT = ResourceTag>
121 GetRuleResult& AddResourceTags(ResourceTagsT&& value) {
122 m_resourceTagsHasBeenSet = true;
123 m_resourceTags.emplace_back(std::forward<ResourceTagsT>(value));
124 return *this;
125 }
127
129
133 inline RuleStatus GetStatus() const { return m_status; }
134 inline void SetStatus(RuleStatus value) {
135 m_statusHasBeenSet = true;
136 m_status = value;
137 }
139 SetStatus(value);
140 return *this;
141 }
143
145
148 inline const LockConfiguration& GetLockConfiguration() const { return m_lockConfiguration; }
149 template <typename LockConfigurationT = LockConfiguration>
150 void SetLockConfiguration(LockConfigurationT&& value) {
151 m_lockConfigurationHasBeenSet = true;
152 m_lockConfiguration = std::forward<LockConfigurationT>(value);
153 }
154 template <typename LockConfigurationT = LockConfiguration>
155 GetRuleResult& WithLockConfiguration(LockConfigurationT&& value) {
156 SetLockConfiguration(std::forward<LockConfigurationT>(value));
157 return *this;
158 }
160
162
175 inline LockState GetLockState() const { return m_lockState; }
176 inline void SetLockState(LockState value) {
177 m_lockStateHasBeenSet = true;
178 m_lockState = value;
179 }
181 SetLockState(value);
182 return *this;
183 }
185
187
192 inline const Aws::Utils::DateTime& GetLockEndTime() const { return m_lockEndTime; }
193 template <typename LockEndTimeT = Aws::Utils::DateTime>
194 void SetLockEndTime(LockEndTimeT&& value) {
195 m_lockEndTimeHasBeenSet = true;
196 m_lockEndTime = std::forward<LockEndTimeT>(value);
197 }
198 template <typename LockEndTimeT = Aws::Utils::DateTime>
199 GetRuleResult& WithLockEndTime(LockEndTimeT&& value) {
200 SetLockEndTime(std::forward<LockEndTimeT>(value));
201 return *this;
202 }
204
206
209 inline const Aws::String& GetRuleArn() const { return m_ruleArn; }
210 template <typename RuleArnT = Aws::String>
211 void SetRuleArn(RuleArnT&& value) {
212 m_ruleArnHasBeenSet = true;
213 m_ruleArn = std::forward<RuleArnT>(value);
214 }
215 template <typename RuleArnT = Aws::String>
216 GetRuleResult& WithRuleArn(RuleArnT&& value) {
217 SetRuleArn(std::forward<RuleArnT>(value));
218 return *this;
219 }
221
223
228 inline const Aws::Vector<ResourceTag>& GetExcludeResourceTags() const { return m_excludeResourceTags; }
229 template <typename ExcludeResourceTagsT = Aws::Vector<ResourceTag>>
230 void SetExcludeResourceTags(ExcludeResourceTagsT&& value) {
231 m_excludeResourceTagsHasBeenSet = true;
232 m_excludeResourceTags = std::forward<ExcludeResourceTagsT>(value);
233 }
234 template <typename ExcludeResourceTagsT = Aws::Vector<ResourceTag>>
235 GetRuleResult& WithExcludeResourceTags(ExcludeResourceTagsT&& value) {
236 SetExcludeResourceTags(std::forward<ExcludeResourceTagsT>(value));
237 return *this;
238 }
239 template <typename ExcludeResourceTagsT = ResourceTag>
240 GetRuleResult& AddExcludeResourceTags(ExcludeResourceTagsT&& value) {
241 m_excludeResourceTagsHasBeenSet = true;
242 m_excludeResourceTags.emplace_back(std::forward<ExcludeResourceTagsT>(value));
243 return *this;
244 }
246
248
249 inline const Aws::String& GetRequestId() const { return m_requestId; }
250 template <typename RequestIdT = Aws::String>
251 void SetRequestId(RequestIdT&& value) {
252 m_requestIdHasBeenSet = true;
253 m_requestId = std::forward<RequestIdT>(value);
254 }
255 template <typename RequestIdT = Aws::String>
256 GetRuleResult& WithRequestId(RequestIdT&& value) {
257 SetRequestId(std::forward<RequestIdT>(value));
258 return *this;
259 }
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 bool m_identifierHasBeenSet = false;
286 bool m_descriptionHasBeenSet = false;
287 bool m_resourceTypeHasBeenSet = false;
288 bool m_retentionPeriodHasBeenSet = false;
289 bool m_resourceTagsHasBeenSet = false;
290 bool m_statusHasBeenSet = false;
291 bool m_lockConfigurationHasBeenSet = false;
292 bool m_lockStateHasBeenSet = false;
293 bool m_lockEndTimeHasBeenSet = false;
294 bool m_ruleArnHasBeenSet = false;
295 bool m_excludeResourceTagsHasBeenSet = false;
296 bool m_requestIdHasBeenSet = false;
297};
298
299} // namespace Model
300} // namespace RecycleBin
301} // namespace Aws
GetRuleResult & WithStatus(RuleStatus value)
const Aws::String & GetRequestId() const
GetRuleResult & WithRetentionPeriod(RetentionPeriodT &&value)
GetRuleResult & WithIdentifier(IdentifierT &&value)
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