AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
UpdateRuleResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/rbin/RecycleBin_EXPORTS.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 UpdateRuleResult() = 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 UpdateRuleResult& 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 UpdateRuleResult& 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 UpdateRuleResult& WithDescription(DescriptionT&& value) {
81 SetDescription(std::forward<DescriptionT>(value));
82 return *this;
83 }
85
87
90 inline ResourceType GetResourceType() const { return m_resourceType; }
91 inline void SetResourceType(ResourceType value) {
92 m_resourceTypeHasBeenSet = true;
93 m_resourceType = value;
94 }
96 SetResourceType(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 UpdateRuleResult& WithResourceTags(ResourceTagsT&& value) {
114 SetResourceTags(std::forward<ResourceTagsT>(value));
115 return *this;
116 }
117 template <typename ResourceTagsT = ResourceTag>
118 UpdateRuleResult& 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
155 inline LockState GetLockState() const { return m_lockState; }
156 inline void SetLockState(LockState value) {
157 m_lockStateHasBeenSet = true;
158 m_lockState = value;
159 }
161 SetLockState(value);
162 return *this;
163 }
165
167
172 inline const Aws::Utils::DateTime& GetLockEndTime() const { return m_lockEndTime; }
173 template <typename LockEndTimeT = Aws::Utils::DateTime>
174 void SetLockEndTime(LockEndTimeT&& value) {
175 m_lockEndTimeHasBeenSet = true;
176 m_lockEndTime = std::forward<LockEndTimeT>(value);
177 }
178 template <typename LockEndTimeT = Aws::Utils::DateTime>
179 UpdateRuleResult& WithLockEndTime(LockEndTimeT&& value) {
180 SetLockEndTime(std::forward<LockEndTimeT>(value));
181 return *this;
182 }
184
186
189 inline const Aws::String& GetRuleArn() const { return m_ruleArn; }
190 template <typename RuleArnT = Aws::String>
191 void SetRuleArn(RuleArnT&& value) {
192 m_ruleArnHasBeenSet = true;
193 m_ruleArn = std::forward<RuleArnT>(value);
194 }
195 template <typename RuleArnT = Aws::String>
196 UpdateRuleResult& WithRuleArn(RuleArnT&& value) {
197 SetRuleArn(std::forward<RuleArnT>(value));
198 return *this;
199 }
201
203
208 inline const Aws::Vector<ResourceTag>& GetExcludeResourceTags() const { return m_excludeResourceTags; }
209 template <typename ExcludeResourceTagsT = Aws::Vector<ResourceTag>>
210 void SetExcludeResourceTags(ExcludeResourceTagsT&& value) {
211 m_excludeResourceTagsHasBeenSet = true;
212 m_excludeResourceTags = std::forward<ExcludeResourceTagsT>(value);
213 }
214 template <typename ExcludeResourceTagsT = Aws::Vector<ResourceTag>>
215 UpdateRuleResult& WithExcludeResourceTags(ExcludeResourceTagsT&& value) {
216 SetExcludeResourceTags(std::forward<ExcludeResourceTagsT>(value));
217 return *this;
218 }
219 template <typename ExcludeResourceTagsT = ResourceTag>
220 UpdateRuleResult& AddExcludeResourceTags(ExcludeResourceTagsT&& value) {
221 m_excludeResourceTagsHasBeenSet = true;
222 m_excludeResourceTags.emplace_back(std::forward<ExcludeResourceTagsT>(value));
223 return *this;
224 }
226
228
229 inline const Aws::String& GetRequestId() const { return m_requestId; }
230 template <typename RequestIdT = Aws::String>
231 void SetRequestId(RequestIdT&& value) {
232 m_requestIdHasBeenSet = true;
233 m_requestId = std::forward<RequestIdT>(value);
234 }
235 template <typename RequestIdT = Aws::String>
236 UpdateRuleResult& WithRequestId(RequestIdT&& value) {
237 SetRequestId(std::forward<RequestIdT>(value));
238 return *this;
239 }
241 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
242
243 private:
244 Aws::String m_identifier;
245
246 RetentionPeriod m_retentionPeriod;
247
248 Aws::String m_description;
249
250 ResourceType m_resourceType{ResourceType::NOT_SET};
251
252 Aws::Vector<ResourceTag> m_resourceTags;
253
255
256 LockState m_lockState{LockState::NOT_SET};
257
258 Aws::Utils::DateTime m_lockEndTime{};
259
260 Aws::String m_ruleArn;
261
262 Aws::Vector<ResourceTag> m_excludeResourceTags;
263
264 Aws::String m_requestId;
265 Aws::Http::HttpResponseCode m_HttpResponseCode;
266 bool m_identifierHasBeenSet = false;
267 bool m_retentionPeriodHasBeenSet = false;
268 bool m_descriptionHasBeenSet = false;
269 bool m_resourceTypeHasBeenSet = false;
270 bool m_resourceTagsHasBeenSet = false;
271 bool m_statusHasBeenSet = false;
272 bool m_lockStateHasBeenSet = false;
273 bool m_lockEndTimeHasBeenSet = false;
274 bool m_ruleArnHasBeenSet = false;
275 bool m_excludeResourceTagsHasBeenSet = false;
276 bool m_requestIdHasBeenSet = false;
277};
278
279} // namespace Model
280} // namespace RecycleBin
281} // 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)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
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