AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
LockRuleResult.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
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 LockRuleResult() = 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 LockRuleResult& WithIdentifier(IdentifierT&& value) {
48 SetIdentifier(std::forward<IdentifierT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetDescription() const { return m_description; }
58 template <typename DescriptionT = Aws::String>
59 void SetDescription(DescriptionT&& value) {
60 m_descriptionHasBeenSet = true;
61 m_description = std::forward<DescriptionT>(value);
62 }
63 template <typename DescriptionT = Aws::String>
64 LockRuleResult& WithDescription(DescriptionT&& value) {
65 SetDescription(std::forward<DescriptionT>(value));
66 return *this;
67 }
69
71
74 inline ResourceType GetResourceType() const { return m_resourceType; }
75 inline void SetResourceType(ResourceType value) {
76 m_resourceTypeHasBeenSet = true;
77 m_resourceType = value;
78 }
80 SetResourceType(value);
81 return *this;
82 }
84
86
87 inline const RetentionPeriod& GetRetentionPeriod() const { return m_retentionPeriod; }
88 template <typename RetentionPeriodT = RetentionPeriod>
89 void SetRetentionPeriod(RetentionPeriodT&& value) {
90 m_retentionPeriodHasBeenSet = true;
91 m_retentionPeriod = std::forward<RetentionPeriodT>(value);
92 }
93 template <typename RetentionPeriodT = RetentionPeriod>
94 LockRuleResult& WithRetentionPeriod(RetentionPeriodT&& value) {
95 SetRetentionPeriod(std::forward<RetentionPeriodT>(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 LockRuleResult& WithResourceTags(ResourceTagsT&& value) {
113 SetResourceTags(std::forward<ResourceTagsT>(value));
114 return *this;
115 }
116 template <typename ResourceTagsT = ResourceTag>
117 LockRuleResult& 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
144 inline const LockConfiguration& GetLockConfiguration() const { return m_lockConfiguration; }
145 template <typename LockConfigurationT = LockConfiguration>
146 void SetLockConfiguration(LockConfigurationT&& value) {
147 m_lockConfigurationHasBeenSet = true;
148 m_lockConfiguration = std::forward<LockConfigurationT>(value);
149 }
150 template <typename LockConfigurationT = LockConfiguration>
151 LockRuleResult& WithLockConfiguration(LockConfigurationT&& value) {
152 SetLockConfiguration(std::forward<LockConfigurationT>(value));
153 return *this;
154 }
156
158
171 inline LockState GetLockState() const { return m_lockState; }
172 inline void SetLockState(LockState value) {
173 m_lockStateHasBeenSet = true;
174 m_lockState = value;
175 }
177 SetLockState(value);
178 return *this;
179 }
181
183
186 inline const Aws::String& GetRuleArn() const { return m_ruleArn; }
187 template <typename RuleArnT = Aws::String>
188 void SetRuleArn(RuleArnT&& value) {
189 m_ruleArnHasBeenSet = true;
190 m_ruleArn = std::forward<RuleArnT>(value);
191 }
192 template <typename RuleArnT = Aws::String>
193 LockRuleResult& WithRuleArn(RuleArnT&& value) {
194 SetRuleArn(std::forward<RuleArnT>(value));
195 return *this;
196 }
198
200
205 inline const Aws::Vector<ResourceTag>& GetExcludeResourceTags() const { return m_excludeResourceTags; }
206 template <typename ExcludeResourceTagsT = Aws::Vector<ResourceTag>>
207 void SetExcludeResourceTags(ExcludeResourceTagsT&& value) {
208 m_excludeResourceTagsHasBeenSet = true;
209 m_excludeResourceTags = std::forward<ExcludeResourceTagsT>(value);
210 }
211 template <typename ExcludeResourceTagsT = Aws::Vector<ResourceTag>>
212 LockRuleResult& WithExcludeResourceTags(ExcludeResourceTagsT&& value) {
213 SetExcludeResourceTags(std::forward<ExcludeResourceTagsT>(value));
214 return *this;
215 }
216 template <typename ExcludeResourceTagsT = ResourceTag>
217 LockRuleResult& AddExcludeResourceTags(ExcludeResourceTagsT&& value) {
218 m_excludeResourceTagsHasBeenSet = true;
219 m_excludeResourceTags.emplace_back(std::forward<ExcludeResourceTagsT>(value));
220 return *this;
221 }
223
225
226 inline const Aws::String& GetRequestId() const { return m_requestId; }
227 template <typename RequestIdT = Aws::String>
228 void SetRequestId(RequestIdT&& value) {
229 m_requestIdHasBeenSet = true;
230 m_requestId = std::forward<RequestIdT>(value);
231 }
232 template <typename RequestIdT = Aws::String>
233 LockRuleResult& WithRequestId(RequestIdT&& value) {
234 SetRequestId(std::forward<RequestIdT>(value));
235 return *this;
236 }
238 private:
239 Aws::String m_identifier;
240
241 Aws::String m_description;
242
243 ResourceType m_resourceType{ResourceType::NOT_SET};
244
245 RetentionPeriod m_retentionPeriod;
246
247 Aws::Vector<ResourceTag> m_resourceTags;
248
250
251 LockConfiguration m_lockConfiguration;
252
253 LockState m_lockState{LockState::NOT_SET};
254
255 Aws::String m_ruleArn;
256
257 Aws::Vector<ResourceTag> m_excludeResourceTags;
258
259 Aws::String m_requestId;
260 bool m_identifierHasBeenSet = false;
261 bool m_descriptionHasBeenSet = false;
262 bool m_resourceTypeHasBeenSet = false;
263 bool m_retentionPeriodHasBeenSet = false;
264 bool m_resourceTagsHasBeenSet = false;
265 bool m_statusHasBeenSet = false;
266 bool m_lockConfigurationHasBeenSet = false;
267 bool m_lockStateHasBeenSet = false;
268 bool m_ruleArnHasBeenSet = false;
269 bool m_excludeResourceTagsHasBeenSet = false;
270 bool m_requestIdHasBeenSet = false;
271};
272
273} // namespace Model
274} // namespace RecycleBin
275} // 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)
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