AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UnlockRuleResult.h
1
6#pragma once
7#include <aws/rbin/RecycleBin_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/rbin/model/ResourceType.h>
10#include <aws/rbin/model/RetentionPeriod.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/rbin/model/RuleStatus.h>
13#include <aws/rbin/model/LockConfiguration.h>
14#include <aws/rbin/model/LockState.h>
15#include <aws/core/utils/DateTime.h>
16#include <aws/rbin/model/ResourceTag.h>
17#include <utility>
18
19namespace Aws
20{
21template<typename RESULT_TYPE>
22class AmazonWebServiceResult;
23
24namespace Utils
25{
26namespace Json
27{
28 class JsonValue;
29} // namespace Json
30} // namespace Utils
31namespace RecycleBin
32{
33namespace Model
34{
36 {
37 public:
38 AWS_RECYCLEBIN_API UnlockRuleResult();
41
42
44
47 inline const Aws::String& GetIdentifier() const{ return m_identifier; }
48 inline void SetIdentifier(const Aws::String& value) { m_identifier = value; }
49 inline void SetIdentifier(Aws::String&& value) { m_identifier = std::move(value); }
50 inline void SetIdentifier(const char* value) { m_identifier.assign(value); }
51 inline UnlockRuleResult& WithIdentifier(const Aws::String& value) { SetIdentifier(value); return *this;}
52 inline UnlockRuleResult& WithIdentifier(Aws::String&& value) { SetIdentifier(std::move(value)); return *this;}
53 inline UnlockRuleResult& WithIdentifier(const char* value) { SetIdentifier(value); return *this;}
55
57
60 inline const Aws::String& GetDescription() const{ return m_description; }
61 inline void SetDescription(const Aws::String& value) { m_description = value; }
62 inline void SetDescription(Aws::String&& value) { m_description = std::move(value); }
63 inline void SetDescription(const char* value) { m_description.assign(value); }
64 inline UnlockRuleResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
65 inline UnlockRuleResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
66 inline UnlockRuleResult& WithDescription(const char* value) { SetDescription(value); return *this;}
68
70
73 inline const ResourceType& GetResourceType() const{ return m_resourceType; }
74 inline void SetResourceType(const ResourceType& value) { m_resourceType = value; }
75 inline void SetResourceType(ResourceType&& value) { m_resourceType = std::move(value); }
76 inline UnlockRuleResult& WithResourceType(const ResourceType& value) { SetResourceType(value); return *this;}
77 inline UnlockRuleResult& WithResourceType(ResourceType&& value) { SetResourceType(std::move(value)); return *this;}
79
81
82 inline const RetentionPeriod& GetRetentionPeriod() const{ return m_retentionPeriod; }
83 inline void SetRetentionPeriod(const RetentionPeriod& value) { m_retentionPeriod = value; }
84 inline void SetRetentionPeriod(RetentionPeriod&& value) { m_retentionPeriod = std::move(value); }
85 inline UnlockRuleResult& WithRetentionPeriod(const RetentionPeriod& value) { SetRetentionPeriod(value); return *this;}
86 inline UnlockRuleResult& WithRetentionPeriod(RetentionPeriod&& value) { SetRetentionPeriod(std::move(value)); return *this;}
88
90
94 inline const Aws::Vector<ResourceTag>& GetResourceTags() const{ return m_resourceTags; }
95 inline void SetResourceTags(const Aws::Vector<ResourceTag>& value) { m_resourceTags = value; }
96 inline void SetResourceTags(Aws::Vector<ResourceTag>&& value) { m_resourceTags = std::move(value); }
97 inline UnlockRuleResult& WithResourceTags(const Aws::Vector<ResourceTag>& value) { SetResourceTags(value); return *this;}
98 inline UnlockRuleResult& WithResourceTags(Aws::Vector<ResourceTag>&& value) { SetResourceTags(std::move(value)); return *this;}
99 inline UnlockRuleResult& AddResourceTags(const ResourceTag& value) { m_resourceTags.push_back(value); return *this; }
100 inline UnlockRuleResult& AddResourceTags(ResourceTag&& value) { m_resourceTags.push_back(std::move(value)); return *this; }
102
104
108 inline const RuleStatus& GetStatus() const{ return m_status; }
109 inline void SetStatus(const RuleStatus& value) { m_status = value; }
110 inline void SetStatus(RuleStatus&& value) { m_status = std::move(value); }
111 inline UnlockRuleResult& WithStatus(const RuleStatus& value) { SetStatus(value); return *this;}
112 inline UnlockRuleResult& WithStatus(RuleStatus&& value) { SetStatus(std::move(value)); return *this;}
114
116
119 inline const LockConfiguration& GetLockConfiguration() const{ return m_lockConfiguration; }
120 inline void SetLockConfiguration(const LockConfiguration& value) { m_lockConfiguration = value; }
121 inline void SetLockConfiguration(LockConfiguration&& value) { m_lockConfiguration = std::move(value); }
123 inline UnlockRuleResult& WithLockConfiguration(LockConfiguration&& value) { SetLockConfiguration(std::move(value)); return *this;}
125
127
140 inline const LockState& GetLockState() const{ return m_lockState; }
141 inline void SetLockState(const LockState& value) { m_lockState = value; }
142 inline void SetLockState(LockState&& value) { m_lockState = std::move(value); }
143 inline UnlockRuleResult& WithLockState(const LockState& value) { SetLockState(value); return *this;}
144 inline UnlockRuleResult& WithLockState(LockState&& value) { SetLockState(std::move(value)); return *this;}
146
148
153 inline const Aws::Utils::DateTime& GetLockEndTime() const{ return m_lockEndTime; }
154 inline void SetLockEndTime(const Aws::Utils::DateTime& value) { m_lockEndTime = value; }
155 inline void SetLockEndTime(Aws::Utils::DateTime&& value) { m_lockEndTime = std::move(value); }
156 inline UnlockRuleResult& WithLockEndTime(const Aws::Utils::DateTime& value) { SetLockEndTime(value); return *this;}
157 inline UnlockRuleResult& WithLockEndTime(Aws::Utils::DateTime&& value) { SetLockEndTime(std::move(value)); return *this;}
159
161
164 inline const Aws::String& GetRuleArn() const{ return m_ruleArn; }
165 inline void SetRuleArn(const Aws::String& value) { m_ruleArn = value; }
166 inline void SetRuleArn(Aws::String&& value) { m_ruleArn = std::move(value); }
167 inline void SetRuleArn(const char* value) { m_ruleArn.assign(value); }
168 inline UnlockRuleResult& WithRuleArn(const Aws::String& value) { SetRuleArn(value); return *this;}
169 inline UnlockRuleResult& WithRuleArn(Aws::String&& value) { SetRuleArn(std::move(value)); return *this;}
170 inline UnlockRuleResult& WithRuleArn(const char* value) { SetRuleArn(value); return *this;}
172
174
175 inline const Aws::String& GetRequestId() const{ return m_requestId; }
176 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
177 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
178 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
179 inline UnlockRuleResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
180 inline UnlockRuleResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
181 inline UnlockRuleResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
183 private:
184
185 Aws::String m_identifier;
186
187 Aws::String m_description;
188
189 ResourceType m_resourceType;
190
191 RetentionPeriod m_retentionPeriod;
192
193 Aws::Vector<ResourceTag> m_resourceTags;
194
195 RuleStatus m_status;
196
197 LockConfiguration m_lockConfiguration;
198
199 LockState m_lockState;
200
201 Aws::Utils::DateTime m_lockEndTime;
202
203 Aws::String m_ruleArn;
204
205 Aws::String m_requestId;
206 };
207
208} // namespace Model
209} // namespace RecycleBin
210} // namespace Aws
const LockConfiguration & GetLockConfiguration() const
void SetResourceTags(Aws::Vector< ResourceTag > &&value)
UnlockRuleResult & WithResourceType(const ResourceType &value)
UnlockRuleResult & WithRetentionPeriod(RetentionPeriod &&value)
UnlockRuleResult & WithRuleArn(const Aws::String &value)
UnlockRuleResult & WithIdentifier(const Aws::String &value)
const RetentionPeriod & GetRetentionPeriod() const
UnlockRuleResult & WithLockEndTime(Aws::Utils::DateTime &&value)
const Aws::String & GetDescription() const
void SetDescription(const Aws::String &value)
UnlockRuleResult & WithDescription(const char *value)
UnlockRuleResult & WithRequestId(Aws::String &&value)
UnlockRuleResult & WithLockConfiguration(LockConfiguration &&value)
UnlockRuleResult & WithDescription(Aws::String &&value)
UnlockRuleResult & WithIdentifier(const char *value)
UnlockRuleResult & WithLockEndTime(const Aws::Utils::DateTime &value)
UnlockRuleResult & WithResourceTags(const Aws::Vector< ResourceTag > &value)
void SetLockConfiguration(const LockConfiguration &value)
const Aws::String & GetIdentifier() const
AWS_RECYCLEBIN_API UnlockRuleResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetRetentionPeriod(const RetentionPeriod &value)
const ResourceType & GetResourceType() const
void SetResourceTags(const Aws::Vector< ResourceTag > &value)
UnlockRuleResult & WithResourceType(ResourceType &&value)
UnlockRuleResult & WithRuleArn(const char *value)
AWS_RECYCLEBIN_API UnlockRuleResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetStatus(const RuleStatus &value)
UnlockRuleResult & WithResourceTags(Aws::Vector< ResourceTag > &&value)
void SetLockConfiguration(LockConfiguration &&value)
UnlockRuleResult & WithRetentionPeriod(const RetentionPeriod &value)
UnlockRuleResult & AddResourceTags(const ResourceTag &value)
UnlockRuleResult & WithDescription(const Aws::String &value)
void SetIdentifier(const Aws::String &value)
const Aws::String & GetRequestId() const
UnlockRuleResult & WithRequestId(const Aws::String &value)
void SetResourceType(const ResourceType &value)
UnlockRuleResult & WithLockState(LockState &&value)
void SetRetentionPeriod(RetentionPeriod &&value)
UnlockRuleResult & WithRequestId(const char *value)
void SetResourceType(ResourceType &&value)
const Aws::Vector< ResourceTag > & GetResourceTags() const
void SetRequestId(const Aws::String &value)
UnlockRuleResult & WithRuleArn(Aws::String &&value)
void SetLockEndTime(Aws::Utils::DateTime &&value)
UnlockRuleResult & WithStatus(const RuleStatus &value)
void SetRuleArn(const Aws::String &value)
UnlockRuleResult & WithLockConfiguration(const LockConfiguration &value)
void SetLockEndTime(const Aws::Utils::DateTime &value)
UnlockRuleResult & AddResourceTags(ResourceTag &&value)
UnlockRuleResult & WithLockState(const LockState &value)
void SetLockState(const LockState &value)
UnlockRuleResult & WithStatus(RuleStatus &&value)
const Aws::Utils::DateTime & GetLockEndTime() const
UnlockRuleResult & WithIdentifier(Aws::String &&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