AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CreateRuleResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/rbin/RecycleBin_EXPORTS.h>
10#include <aws/rbin/model/LockConfiguration.h>
11#include <aws/rbin/model/LockState.h>
12#include <aws/rbin/model/ResourceTag.h>
13#include <aws/rbin/model/ResourceType.h>
14#include <aws/rbin/model/RetentionPeriod.h>
15#include <aws/rbin/model/RuleStatus.h>
16#include <aws/rbin/model/Tag.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 CreateRuleResult() = 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 CreateRuleResult& WithIdentifier(IdentifierT&& value) {
49 SetIdentifier(std::forward<IdentifierT>(value));
50 return *this;
51 }
53
55
56 inline const RetentionPeriod& GetRetentionPeriod() const { return m_retentionPeriod; }
57 template <typename RetentionPeriodT = RetentionPeriod>
58 void SetRetentionPeriod(RetentionPeriodT&& value) {
59 m_retentionPeriodHasBeenSet = true;
60 m_retentionPeriod = std::forward<RetentionPeriodT>(value);
61 }
62 template <typename RetentionPeriodT = RetentionPeriod>
63 CreateRuleResult& WithRetentionPeriod(RetentionPeriodT&& value) {
64 SetRetentionPeriod(std::forward<RetentionPeriodT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::String& GetDescription() const { return m_description; }
74 template <typename DescriptionT = Aws::String>
75 void SetDescription(DescriptionT&& value) {
76 m_descriptionHasBeenSet = true;
77 m_description = std::forward<DescriptionT>(value);
78 }
79 template <typename DescriptionT = Aws::String>
80 CreateRuleResult& WithDescription(DescriptionT&& value) {
81 SetDescription(std::forward<DescriptionT>(value));
82 return *this;
83 }
85
87
90 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
91 template <typename TagsT = Aws::Vector<Tag>>
92 void SetTags(TagsT&& value) {
93 m_tagsHasBeenSet = true;
94 m_tags = std::forward<TagsT>(value);
95 }
96 template <typename TagsT = Aws::Vector<Tag>>
97 CreateRuleResult& WithTags(TagsT&& value) {
98 SetTags(std::forward<TagsT>(value));
99 return *this;
100 }
101 template <typename TagsT = Tag>
102 CreateRuleResult& AddTags(TagsT&& value) {
103 m_tagsHasBeenSet = true;
104 m_tags.emplace_back(std::forward<TagsT>(value));
105 return *this;
106 }
108
110
113 inline ResourceType GetResourceType() const { return m_resourceType; }
114 inline void SetResourceType(ResourceType value) {
115 m_resourceTypeHasBeenSet = true;
116 m_resourceType = value;
117 }
119 SetResourceType(value);
120 return *this;
121 }
123
125
129 inline const Aws::Vector<ResourceTag>& GetResourceTags() const { return m_resourceTags; }
130 template <typename ResourceTagsT = Aws::Vector<ResourceTag>>
131 void SetResourceTags(ResourceTagsT&& value) {
132 m_resourceTagsHasBeenSet = true;
133 m_resourceTags = std::forward<ResourceTagsT>(value);
134 }
135 template <typename ResourceTagsT = Aws::Vector<ResourceTag>>
136 CreateRuleResult& WithResourceTags(ResourceTagsT&& value) {
137 SetResourceTags(std::forward<ResourceTagsT>(value));
138 return *this;
139 }
140 template <typename ResourceTagsT = ResourceTag>
141 CreateRuleResult& AddResourceTags(ResourceTagsT&& value) {
142 m_resourceTagsHasBeenSet = true;
143 m_resourceTags.emplace_back(std::forward<ResourceTagsT>(value));
144 return *this;
145 }
147
149
153 inline RuleStatus GetStatus() const { return m_status; }
154 inline void SetStatus(RuleStatus value) {
155 m_statusHasBeenSet = true;
156 m_status = value;
157 }
159 SetStatus(value);
160 return *this;
161 }
163
165
168 inline const LockConfiguration& GetLockConfiguration() const { return m_lockConfiguration; }
169 template <typename LockConfigurationT = LockConfiguration>
170 void SetLockConfiguration(LockConfigurationT&& value) {
171 m_lockConfigurationHasBeenSet = true;
172 m_lockConfiguration = std::forward<LockConfigurationT>(value);
173 }
174 template <typename LockConfigurationT = LockConfiguration>
175 CreateRuleResult& WithLockConfiguration(LockConfigurationT&& value) {
176 SetLockConfiguration(std::forward<LockConfigurationT>(value));
177 return *this;
178 }
180
182
195 inline LockState GetLockState() const { return m_lockState; }
196 inline void SetLockState(LockState value) {
197 m_lockStateHasBeenSet = true;
198 m_lockState = value;
199 }
201 SetLockState(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 CreateRuleResult& 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 CreateRuleResult& WithExcludeResourceTags(ExcludeResourceTagsT&& value) {
237 SetExcludeResourceTags(std::forward<ExcludeResourceTagsT>(value));
238 return *this;
239 }
240 template <typename ExcludeResourceTagsT = ResourceTag>
241 CreateRuleResult& 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 CreateRuleResult& WithRequestId(RequestIdT&& value) {
258 SetRequestId(std::forward<RequestIdT>(value));
259 return *this;
260 }
262 private:
263 Aws::String m_identifier;
264
265 RetentionPeriod m_retentionPeriod;
266
267 Aws::String m_description;
268
269 Aws::Vector<Tag> m_tags;
270
271 ResourceType m_resourceType{ResourceType::NOT_SET};
272
273 Aws::Vector<ResourceTag> m_resourceTags;
274
276
277 LockConfiguration m_lockConfiguration;
278
279 LockState m_lockState{LockState::NOT_SET};
280
281 Aws::String m_ruleArn;
282
283 Aws::Vector<ResourceTag> m_excludeResourceTags;
284
285 Aws::String m_requestId;
286 bool m_identifierHasBeenSet = false;
287 bool m_retentionPeriodHasBeenSet = false;
288 bool m_descriptionHasBeenSet = false;
289 bool m_tagsHasBeenSet = false;
290 bool m_resourceTypeHasBeenSet = false;
291 bool m_resourceTagsHasBeenSet = false;
292 bool m_statusHasBeenSet = false;
293 bool m_lockConfigurationHasBeenSet = false;
294 bool m_lockStateHasBeenSet = 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
CreateRuleResult & WithRuleArn(RuleArnT &&value)
CreateRuleResult & AddExcludeResourceTags(ExcludeResourceTagsT &&value)
const Aws::String & GetRequestId() const
void SetExcludeResourceTags(ExcludeResourceTagsT &&value)
CreateRuleResult & WithTags(TagsT &&value)
void SetRetentionPeriod(RetentionPeriodT &&value)
const LockConfiguration & GetLockConfiguration() const
const Aws::Vector< Tag > & GetTags() const
AWS_RECYCLEBIN_API CreateRuleResult()=default
CreateRuleResult & WithRetentionPeriod(RetentionPeriodT &&value)
const Aws::String & GetIdentifier() const
const Aws::String & GetDescription() const
AWS_RECYCLEBIN_API CreateRuleResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateRuleResult & WithIdentifier(IdentifierT &&value)
CreateRuleResult & WithStatus(RuleStatus value)
CreateRuleResult & AddResourceTags(ResourceTagsT &&value)
const Aws::Vector< ResourceTag > & GetResourceTags() const
void SetLockConfiguration(LockConfigurationT &&value)
void SetDescription(DescriptionT &&value)
CreateRuleResult & WithLockState(LockState value)
CreateRuleResult & WithLockConfiguration(LockConfigurationT &&value)
AWS_RECYCLEBIN_API CreateRuleResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetResourceTags(ResourceTagsT &&value)
CreateRuleResult & WithResourceTags(ResourceTagsT &&value)
CreateRuleResult & WithDescription(DescriptionT &&value)
const Aws::Vector< ResourceTag > & GetExcludeResourceTags() const
CreateRuleResult & WithRequestId(RequestIdT &&value)
const RetentionPeriod & GetRetentionPeriod() const
CreateRuleResult & AddTags(TagsT &&value)
CreateRuleResult & WithExcludeResourceTags(ExcludeResourceTagsT &&value)
CreateRuleResult & WithResourceType(ResourceType 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