AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
LockRuleResult.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
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 LockRuleResult() = 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 LockRuleResult& 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 LockRuleResult& 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
88 inline const RetentionPeriod& GetRetentionPeriod() const { return m_retentionPeriod; }
89 template <typename RetentionPeriodT = RetentionPeriod>
90 void SetRetentionPeriod(RetentionPeriodT&& value) {
91 m_retentionPeriodHasBeenSet = true;
92 m_retentionPeriod = std::forward<RetentionPeriodT>(value);
93 }
94 template <typename RetentionPeriodT = RetentionPeriod>
95 LockRuleResult& WithRetentionPeriod(RetentionPeriodT&& value) {
96 SetRetentionPeriod(std::forward<RetentionPeriodT>(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 LockRuleResult& WithResourceTags(ResourceTagsT&& value) {
114 SetResourceTags(std::forward<ResourceTagsT>(value));
115 return *this;
116 }
117 template <typename ResourceTagsT = ResourceTag>
118 LockRuleResult& 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
145 inline const LockConfiguration& GetLockConfiguration() const { return m_lockConfiguration; }
146 template <typename LockConfigurationT = LockConfiguration>
147 void SetLockConfiguration(LockConfigurationT&& value) {
148 m_lockConfigurationHasBeenSet = true;
149 m_lockConfiguration = std::forward<LockConfigurationT>(value);
150 }
151 template <typename LockConfigurationT = LockConfiguration>
152 LockRuleResult& WithLockConfiguration(LockConfigurationT&& value) {
153 SetLockConfiguration(std::forward<LockConfigurationT>(value));
154 return *this;
155 }
157
159
172 inline LockState GetLockState() const { return m_lockState; }
173 inline void SetLockState(LockState value) {
174 m_lockStateHasBeenSet = true;
175 m_lockState = value;
176 }
178 SetLockState(value);
179 return *this;
180 }
182
184
187 inline const Aws::String& GetRuleArn() const { return m_ruleArn; }
188 template <typename RuleArnT = Aws::String>
189 void SetRuleArn(RuleArnT&& value) {
190 m_ruleArnHasBeenSet = true;
191 m_ruleArn = std::forward<RuleArnT>(value);
192 }
193 template <typename RuleArnT = Aws::String>
194 LockRuleResult& WithRuleArn(RuleArnT&& value) {
195 SetRuleArn(std::forward<RuleArnT>(value));
196 return *this;
197 }
199
201
206 inline const Aws::Vector<ResourceTag>& GetExcludeResourceTags() const { return m_excludeResourceTags; }
207 template <typename ExcludeResourceTagsT = Aws::Vector<ResourceTag>>
208 void SetExcludeResourceTags(ExcludeResourceTagsT&& value) {
209 m_excludeResourceTagsHasBeenSet = true;
210 m_excludeResourceTags = std::forward<ExcludeResourceTagsT>(value);
211 }
212 template <typename ExcludeResourceTagsT = Aws::Vector<ResourceTag>>
213 LockRuleResult& WithExcludeResourceTags(ExcludeResourceTagsT&& value) {
214 SetExcludeResourceTags(std::forward<ExcludeResourceTagsT>(value));
215 return *this;
216 }
217 template <typename ExcludeResourceTagsT = ResourceTag>
218 LockRuleResult& AddExcludeResourceTags(ExcludeResourceTagsT&& value) {
219 m_excludeResourceTagsHasBeenSet = true;
220 m_excludeResourceTags.emplace_back(std::forward<ExcludeResourceTagsT>(value));
221 return *this;
222 }
224
226
227 inline const Aws::String& GetRequestId() const { return m_requestId; }
228 template <typename RequestIdT = Aws::String>
229 void SetRequestId(RequestIdT&& value) {
230 m_requestIdHasBeenSet = true;
231 m_requestId = std::forward<RequestIdT>(value);
232 }
233 template <typename RequestIdT = Aws::String>
234 LockRuleResult& WithRequestId(RequestIdT&& value) {
235 SetRequestId(std::forward<RequestIdT>(value));
236 return *this;
237 }
239 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
240
241 private:
242 Aws::String m_identifier;
243
244 Aws::String m_description;
245
246 ResourceType m_resourceType{ResourceType::NOT_SET};
247
248 RetentionPeriod m_retentionPeriod;
249
250 Aws::Vector<ResourceTag> m_resourceTags;
251
253
254 LockConfiguration m_lockConfiguration;
255
256 LockState m_lockState{LockState::NOT_SET};
257
258 Aws::String m_ruleArn;
259
260 Aws::Vector<ResourceTag> m_excludeResourceTags;
261
262 Aws::String m_requestId;
263 Aws::Http::HttpResponseCode m_HttpResponseCode;
264 bool m_identifierHasBeenSet = false;
265 bool m_descriptionHasBeenSet = false;
266 bool m_resourceTypeHasBeenSet = false;
267 bool m_retentionPeriodHasBeenSet = false;
268 bool m_resourceTagsHasBeenSet = false;
269 bool m_statusHasBeenSet = false;
270 bool m_lockConfigurationHasBeenSet = false;
271 bool m_lockStateHasBeenSet = false;
272 bool m_ruleArnHasBeenSet = false;
273 bool m_excludeResourceTagsHasBeenSet = false;
274 bool m_requestIdHasBeenSet = false;
275};
276
277} // namespace Model
278} // namespace RecycleBin
279} // namespace Aws
const Aws::Vector< ResourceTag > & GetResourceTags() const
void SetExcludeResourceTags(ExcludeResourceTagsT &&value)
LockRuleResult & WithRequestId(RequestIdT &&value)
const Aws::String & GetRequestId() const
const LockConfiguration & GetLockConfiguration() const
LockRuleResult & WithRuleArn(RuleArnT &&value)
AWS_RECYCLEBIN_API LockRuleResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetRequestId(RequestIdT &&value)
LockRuleResult & WithResourceTags(ResourceTagsT &&value)
const Aws::Vector< ResourceTag > & GetExcludeResourceTags() const
LockRuleResult & WithLockConfiguration(LockConfigurationT &&value)
void SetDescription(DescriptionT &&value)
LockRuleResult & WithDescription(DescriptionT &&value)
void SetRetentionPeriod(RetentionPeriodT &&value)
void SetResourceTags(ResourceTagsT &&value)
LockRuleResult & AddResourceTags(ResourceTagsT &&value)
LockRuleResult & WithLockState(LockState value)
AWS_RECYCLEBIN_API LockRuleResult()=default
LockRuleResult & WithRetentionPeriod(RetentionPeriodT &&value)
void SetIdentifier(IdentifierT &&value)
LockRuleResult & WithIdentifier(IdentifierT &&value)
const RetentionPeriod & GetRetentionPeriod() const
LockRuleResult & WithExcludeResourceTags(ExcludeResourceTagsT &&value)
AWS_RECYCLEBIN_API LockRuleResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
LockRuleResult & WithStatus(RuleStatus value)
LockRuleResult & AddExcludeResourceTags(ExcludeResourceTagsT &&value)
void SetResourceType(ResourceType value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const Aws::String & GetRuleArn() const
const Aws::String & GetIdentifier() const
const Aws::String & GetDescription() const
void SetLockConfiguration(LockConfigurationT &&value)
LockRuleResult & 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