AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
UpdateRuleResult.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/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
17#include <utility>
18
19namespace Aws {
20template <typename RESULT_TYPE>
21class AmazonWebServiceResult;
22
23namespace Utils {
24namespace Json {
25class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace RecycleBin {
29namespace Model {
31 public:
32 AWS_RECYCLEBIN_API UpdateRuleResult() = default;
35
37
40 inline const Aws::String& GetIdentifier() const { return m_identifier; }
41 template <typename IdentifierT = Aws::String>
42 void SetIdentifier(IdentifierT&& value) {
43 m_identifierHasBeenSet = true;
44 m_identifier = std::forward<IdentifierT>(value);
45 }
46 template <typename IdentifierT = Aws::String>
47 UpdateRuleResult& WithIdentifier(IdentifierT&& value) {
48 SetIdentifier(std::forward<IdentifierT>(value));
49 return *this;
50 }
52
54
55 inline const RetentionPeriod& GetRetentionPeriod() const { return m_retentionPeriod; }
56 template <typename RetentionPeriodT = RetentionPeriod>
57 void SetRetentionPeriod(RetentionPeriodT&& value) {
58 m_retentionPeriodHasBeenSet = true;
59 m_retentionPeriod = std::forward<RetentionPeriodT>(value);
60 }
61 template <typename RetentionPeriodT = RetentionPeriod>
62 UpdateRuleResult& WithRetentionPeriod(RetentionPeriodT&& value) {
63 SetRetentionPeriod(std::forward<RetentionPeriodT>(value));
64 return *this;
65 }
67
69
72 inline const Aws::String& GetDescription() const { return m_description; }
73 template <typename DescriptionT = Aws::String>
74 void SetDescription(DescriptionT&& value) {
75 m_descriptionHasBeenSet = true;
76 m_description = std::forward<DescriptionT>(value);
77 }
78 template <typename DescriptionT = Aws::String>
79 UpdateRuleResult& WithDescription(DescriptionT&& value) {
80 SetDescription(std::forward<DescriptionT>(value));
81 return *this;
82 }
84
86
89 inline ResourceType GetResourceType() const { return m_resourceType; }
90 inline void SetResourceType(ResourceType value) {
91 m_resourceTypeHasBeenSet = true;
92 m_resourceType = value;
93 }
95 SetResourceType(value);
96 return *this;
97 }
99
101
105 inline const Aws::Vector<ResourceTag>& GetResourceTags() const { return m_resourceTags; }
106 template <typename ResourceTagsT = Aws::Vector<ResourceTag>>
107 void SetResourceTags(ResourceTagsT&& value) {
108 m_resourceTagsHasBeenSet = true;
109 m_resourceTags = std::forward<ResourceTagsT>(value);
110 }
111 template <typename ResourceTagsT = Aws::Vector<ResourceTag>>
112 UpdateRuleResult& WithResourceTags(ResourceTagsT&& value) {
113 SetResourceTags(std::forward<ResourceTagsT>(value));
114 return *this;
115 }
116 template <typename ResourceTagsT = ResourceTag>
117 UpdateRuleResult& AddResourceTags(ResourceTagsT&& value) {
118 m_resourceTagsHasBeenSet = true;
119 m_resourceTags.emplace_back(std::forward<ResourceTagsT>(value));
120 return *this;
121 }
123
125
129 inline RuleStatus GetStatus() const { return m_status; }
130 inline void SetStatus(RuleStatus value) {
131 m_statusHasBeenSet = true;
132 m_status = value;
133 }
135 SetStatus(value);
136 return *this;
137 }
139
141
154 inline LockState GetLockState() const { return m_lockState; }
155 inline void SetLockState(LockState value) {
156 m_lockStateHasBeenSet = true;
157 m_lockState = value;
158 }
160 SetLockState(value);
161 return *this;
162 }
164
166
171 inline const Aws::Utils::DateTime& GetLockEndTime() const { return m_lockEndTime; }
172 template <typename LockEndTimeT = Aws::Utils::DateTime>
173 void SetLockEndTime(LockEndTimeT&& value) {
174 m_lockEndTimeHasBeenSet = true;
175 m_lockEndTime = std::forward<LockEndTimeT>(value);
176 }
177 template <typename LockEndTimeT = Aws::Utils::DateTime>
178 UpdateRuleResult& WithLockEndTime(LockEndTimeT&& value) {
179 SetLockEndTime(std::forward<LockEndTimeT>(value));
180 return *this;
181 }
183
185
188 inline const Aws::String& GetRuleArn() const { return m_ruleArn; }
189 template <typename RuleArnT = Aws::String>
190 void SetRuleArn(RuleArnT&& value) {
191 m_ruleArnHasBeenSet = true;
192 m_ruleArn = std::forward<RuleArnT>(value);
193 }
194 template <typename RuleArnT = Aws::String>
195 UpdateRuleResult& WithRuleArn(RuleArnT&& value) {
196 SetRuleArn(std::forward<RuleArnT>(value));
197 return *this;
198 }
200
202
207 inline const Aws::Vector<ResourceTag>& GetExcludeResourceTags() const { return m_excludeResourceTags; }
208 template <typename ExcludeResourceTagsT = Aws::Vector<ResourceTag>>
209 void SetExcludeResourceTags(ExcludeResourceTagsT&& value) {
210 m_excludeResourceTagsHasBeenSet = true;
211 m_excludeResourceTags = std::forward<ExcludeResourceTagsT>(value);
212 }
213 template <typename ExcludeResourceTagsT = Aws::Vector<ResourceTag>>
214 UpdateRuleResult& WithExcludeResourceTags(ExcludeResourceTagsT&& value) {
215 SetExcludeResourceTags(std::forward<ExcludeResourceTagsT>(value));
216 return *this;
217 }
218 template <typename ExcludeResourceTagsT = ResourceTag>
219 UpdateRuleResult& AddExcludeResourceTags(ExcludeResourceTagsT&& value) {
220 m_excludeResourceTagsHasBeenSet = true;
221 m_excludeResourceTags.emplace_back(std::forward<ExcludeResourceTagsT>(value));
222 return *this;
223 }
225
227
228 inline const Aws::String& GetRequestId() const { return m_requestId; }
229 template <typename RequestIdT = Aws::String>
230 void SetRequestId(RequestIdT&& value) {
231 m_requestIdHasBeenSet = true;
232 m_requestId = std::forward<RequestIdT>(value);
233 }
234 template <typename RequestIdT = Aws::String>
235 UpdateRuleResult& WithRequestId(RequestIdT&& value) {
236 SetRequestId(std::forward<RequestIdT>(value));
237 return *this;
238 }
240 private:
241 Aws::String m_identifier;
242
243 RetentionPeriod m_retentionPeriod;
244
245 Aws::String m_description;
246
247 ResourceType m_resourceType{ResourceType::NOT_SET};
248
249 Aws::Vector<ResourceTag> m_resourceTags;
250
252
253 LockState m_lockState{LockState::NOT_SET};
254
255 Aws::Utils::DateTime m_lockEndTime{};
256
257 Aws::String m_ruleArn;
258
259 Aws::Vector<ResourceTag> m_excludeResourceTags;
260
261 Aws::String m_requestId;
262 bool m_identifierHasBeenSet = false;
263 bool m_retentionPeriodHasBeenSet = false;
264 bool m_descriptionHasBeenSet = false;
265 bool m_resourceTypeHasBeenSet = false;
266 bool m_resourceTagsHasBeenSet = false;
267 bool m_statusHasBeenSet = false;
268 bool m_lockStateHasBeenSet = false;
269 bool m_lockEndTimeHasBeenSet = false;
270 bool m_ruleArnHasBeenSet = false;
271 bool m_excludeResourceTagsHasBeenSet = false;
272 bool m_requestIdHasBeenSet = false;
273};
274
275} // namespace Model
276} // namespace RecycleBin
277} // namespace Aws
void SetRetentionPeriod(RetentionPeriodT &&value)
const RetentionPeriod & GetRetentionPeriod() const
const Aws::String & GetDescription() const
AWS_RECYCLEBIN_API UpdateRuleResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdateRuleResult & WithLockState(LockState value)
UpdateRuleResult & WithDescription(DescriptionT &&value)
AWS_RECYCLEBIN_API UpdateRuleResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::String & GetIdentifier() const
AWS_RECYCLEBIN_API UpdateRuleResult()=default
void SetResourceTags(ResourceTagsT &&value)
UpdateRuleResult & WithRuleArn(RuleArnT &&value)
UpdateRuleResult & WithStatus(RuleStatus value)
UpdateRuleResult & WithExcludeResourceTags(ExcludeResourceTagsT &&value)
void SetDescription(DescriptionT &&value)
const Aws::Vector< ResourceTag > & GetExcludeResourceTags() const
UpdateRuleResult & WithResourceType(ResourceType value)
UpdateRuleResult & WithIdentifier(IdentifierT &&value)
UpdateRuleResult & WithRequestId(RequestIdT &&value)
void SetLockEndTime(LockEndTimeT &&value)
UpdateRuleResult & WithLockEndTime(LockEndTimeT &&value)
void SetExcludeResourceTags(ExcludeResourceTagsT &&value)
const Aws::String & GetRequestId() const
UpdateRuleResult & WithResourceTags(ResourceTagsT &&value)
UpdateRuleResult & AddResourceTags(ResourceTagsT &&value)
const Aws::Vector< ResourceTag > & GetResourceTags() const
const Aws::Utils::DateTime & GetLockEndTime() const
UpdateRuleResult & AddExcludeResourceTags(ExcludeResourceTagsT &&value)
UpdateRuleResult & WithRetentionPeriod(RetentionPeriodT &&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