AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
CreateRuleResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.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#include <aws/rbin/model/Tag.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 CreateRuleResult() = 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 CreateRuleResult& WithIdentifier(IdentifierT&& value) {
50 SetIdentifier(std::forward<IdentifierT>(value));
51 return *this;
52 }
54
56
57 inline const RetentionPeriod& GetRetentionPeriod() const { return m_retentionPeriod; }
58 template <typename RetentionPeriodT = RetentionPeriod>
59 void SetRetentionPeriod(RetentionPeriodT&& value) {
60 m_retentionPeriodHasBeenSet = true;
61 m_retentionPeriod = std::forward<RetentionPeriodT>(value);
62 }
63 template <typename RetentionPeriodT = RetentionPeriod>
64 CreateRuleResult& WithRetentionPeriod(RetentionPeriodT&& value) {
65 SetRetentionPeriod(std::forward<RetentionPeriodT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetDescription() const { return m_description; }
75 template <typename DescriptionT = Aws::String>
76 void SetDescription(DescriptionT&& value) {
77 m_descriptionHasBeenSet = true;
78 m_description = std::forward<DescriptionT>(value);
79 }
80 template <typename DescriptionT = Aws::String>
81 CreateRuleResult& WithDescription(DescriptionT&& value) {
82 SetDescription(std::forward<DescriptionT>(value));
83 return *this;
84 }
86
88
91 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
92 template <typename TagsT = Aws::Vector<Tag>>
93 void SetTags(TagsT&& value) {
94 m_tagsHasBeenSet = true;
95 m_tags = std::forward<TagsT>(value);
96 }
97 template <typename TagsT = Aws::Vector<Tag>>
98 CreateRuleResult& WithTags(TagsT&& value) {
99 SetTags(std::forward<TagsT>(value));
100 return *this;
101 }
102 template <typename TagsT = Tag>
103 CreateRuleResult& AddTags(TagsT&& value) {
104 m_tagsHasBeenSet = true;
105 m_tags.emplace_back(std::forward<TagsT>(value));
106 return *this;
107 }
109
111
114 inline ResourceType GetResourceType() const { return m_resourceType; }
115 inline void SetResourceType(ResourceType value) {
116 m_resourceTypeHasBeenSet = true;
117 m_resourceType = value;
118 }
120 SetResourceType(value);
121 return *this;
122 }
124
126
130 inline const Aws::Vector<ResourceTag>& GetResourceTags() const { return m_resourceTags; }
131 template <typename ResourceTagsT = Aws::Vector<ResourceTag>>
132 void SetResourceTags(ResourceTagsT&& value) {
133 m_resourceTagsHasBeenSet = true;
134 m_resourceTags = std::forward<ResourceTagsT>(value);
135 }
136 template <typename ResourceTagsT = Aws::Vector<ResourceTag>>
137 CreateRuleResult& WithResourceTags(ResourceTagsT&& value) {
138 SetResourceTags(std::forward<ResourceTagsT>(value));
139 return *this;
140 }
141 template <typename ResourceTagsT = ResourceTag>
142 CreateRuleResult& AddResourceTags(ResourceTagsT&& value) {
143 m_resourceTagsHasBeenSet = true;
144 m_resourceTags.emplace_back(std::forward<ResourceTagsT>(value));
145 return *this;
146 }
148
150
154 inline RuleStatus GetStatus() const { return m_status; }
155 inline void SetStatus(RuleStatus value) {
156 m_statusHasBeenSet = true;
157 m_status = value;
158 }
160 SetStatus(value);
161 return *this;
162 }
164
166
169 inline const LockConfiguration& GetLockConfiguration() const { return m_lockConfiguration; }
170 template <typename LockConfigurationT = LockConfiguration>
171 void SetLockConfiguration(LockConfigurationT&& value) {
172 m_lockConfigurationHasBeenSet = true;
173 m_lockConfiguration = std::forward<LockConfigurationT>(value);
174 }
175 template <typename LockConfigurationT = LockConfiguration>
176 CreateRuleResult& WithLockConfiguration(LockConfigurationT&& value) {
177 SetLockConfiguration(std::forward<LockConfigurationT>(value));
178 return *this;
179 }
181
183
196 inline LockState GetLockState() const { return m_lockState; }
197 inline void SetLockState(LockState value) {
198 m_lockStateHasBeenSet = true;
199 m_lockState = value;
200 }
202 SetLockState(value);
203 return *this;
204 }
206
208
211 inline const Aws::String& GetRuleArn() const { return m_ruleArn; }
212 template <typename RuleArnT = Aws::String>
213 void SetRuleArn(RuleArnT&& value) {
214 m_ruleArnHasBeenSet = true;
215 m_ruleArn = std::forward<RuleArnT>(value);
216 }
217 template <typename RuleArnT = Aws::String>
218 CreateRuleResult& WithRuleArn(RuleArnT&& value) {
219 SetRuleArn(std::forward<RuleArnT>(value));
220 return *this;
221 }
223
225
230 inline const Aws::Vector<ResourceTag>& GetExcludeResourceTags() const { return m_excludeResourceTags; }
231 template <typename ExcludeResourceTagsT = Aws::Vector<ResourceTag>>
232 void SetExcludeResourceTags(ExcludeResourceTagsT&& value) {
233 m_excludeResourceTagsHasBeenSet = true;
234 m_excludeResourceTags = std::forward<ExcludeResourceTagsT>(value);
235 }
236 template <typename ExcludeResourceTagsT = Aws::Vector<ResourceTag>>
237 CreateRuleResult& WithExcludeResourceTags(ExcludeResourceTagsT&& value) {
238 SetExcludeResourceTags(std::forward<ExcludeResourceTagsT>(value));
239 return *this;
240 }
241 template <typename ExcludeResourceTagsT = ResourceTag>
242 CreateRuleResult& AddExcludeResourceTags(ExcludeResourceTagsT&& value) {
243 m_excludeResourceTagsHasBeenSet = true;
244 m_excludeResourceTags.emplace_back(std::forward<ExcludeResourceTagsT>(value));
245 return *this;
246 }
248
250
251 inline const Aws::String& GetRequestId() const { return m_requestId; }
252 template <typename RequestIdT = Aws::String>
253 void SetRequestId(RequestIdT&& value) {
254 m_requestIdHasBeenSet = true;
255 m_requestId = std::forward<RequestIdT>(value);
256 }
257 template <typename RequestIdT = Aws::String>
258 CreateRuleResult& WithRequestId(RequestIdT&& value) {
259 SetRequestId(std::forward<RequestIdT>(value));
260 return *this;
261 }
263 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
264
265 private:
266 Aws::String m_identifier;
267
268 RetentionPeriod m_retentionPeriod;
269
270 Aws::String m_description;
271
272 Aws::Vector<Tag> m_tags;
273
274 ResourceType m_resourceType{ResourceType::NOT_SET};
275
276 Aws::Vector<ResourceTag> m_resourceTags;
277
279
280 LockConfiguration m_lockConfiguration;
281
282 LockState m_lockState{LockState::NOT_SET};
283
284 Aws::String m_ruleArn;
285
286 Aws::Vector<ResourceTag> m_excludeResourceTags;
287
288 Aws::String m_requestId;
289 Aws::Http::HttpResponseCode m_HttpResponseCode;
290 bool m_identifierHasBeenSet = false;
291 bool m_retentionPeriodHasBeenSet = false;
292 bool m_descriptionHasBeenSet = false;
293 bool m_tagsHasBeenSet = false;
294 bool m_resourceTypeHasBeenSet = false;
295 bool m_resourceTagsHasBeenSet = false;
296 bool m_statusHasBeenSet = false;
297 bool m_lockConfigurationHasBeenSet = false;
298 bool m_lockStateHasBeenSet = false;
299 bool m_ruleArnHasBeenSet = false;
300 bool m_excludeResourceTagsHasBeenSet = false;
301 bool m_requestIdHasBeenSet = false;
302};
303
304} // namespace Model
305} // namespace RecycleBin
306} // 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)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
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