AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
41
42
44
47 inline const Aws::String& GetIdentifier() const { return m_identifier; }
48 template<typename IdentifierT = Aws::String>
49 void SetIdentifier(IdentifierT&& value) { m_identifierHasBeenSet = true; m_identifier = std::forward<IdentifierT>(value); }
50 template<typename IdentifierT = Aws::String>
51 UnlockRuleResult& WithIdentifier(IdentifierT&& value) { SetIdentifier(std::forward<IdentifierT>(value)); return *this;}
53
55
58 inline const Aws::String& GetDescription() const { return m_description; }
59 template<typename DescriptionT = Aws::String>
60 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
61 template<typename DescriptionT = Aws::String>
62 UnlockRuleResult& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
64
66
69 inline ResourceType GetResourceType() const { return m_resourceType; }
70 inline void SetResourceType(ResourceType value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
71 inline UnlockRuleResult& WithResourceType(ResourceType value) { SetResourceType(value); return *this;}
73
75
76 inline const RetentionPeriod& GetRetentionPeriod() const { return m_retentionPeriod; }
77 template<typename RetentionPeriodT = RetentionPeriod>
78 void SetRetentionPeriod(RetentionPeriodT&& value) { m_retentionPeriodHasBeenSet = true; m_retentionPeriod = std::forward<RetentionPeriodT>(value); }
79 template<typename RetentionPeriodT = RetentionPeriod>
80 UnlockRuleResult& WithRetentionPeriod(RetentionPeriodT&& value) { SetRetentionPeriod(std::forward<RetentionPeriodT>(value)); return *this;}
82
84
88 inline const Aws::Vector<ResourceTag>& GetResourceTags() const { return m_resourceTags; }
89 template<typename ResourceTagsT = Aws::Vector<ResourceTag>>
90 void SetResourceTags(ResourceTagsT&& value) { m_resourceTagsHasBeenSet = true; m_resourceTags = std::forward<ResourceTagsT>(value); }
91 template<typename ResourceTagsT = Aws::Vector<ResourceTag>>
92 UnlockRuleResult& WithResourceTags(ResourceTagsT&& value) { SetResourceTags(std::forward<ResourceTagsT>(value)); return *this;}
93 template<typename ResourceTagsT = ResourceTag>
94 UnlockRuleResult& AddResourceTags(ResourceTagsT&& value) { m_resourceTagsHasBeenSet = true; m_resourceTags.emplace_back(std::forward<ResourceTagsT>(value)); return *this; }
96
98
102 inline RuleStatus GetStatus() const { return m_status; }
103 inline void SetStatus(RuleStatus value) { m_statusHasBeenSet = true; m_status = value; }
104 inline UnlockRuleResult& WithStatus(RuleStatus value) { SetStatus(value); return *this;}
106
108
111 inline const LockConfiguration& GetLockConfiguration() const { return m_lockConfiguration; }
112 template<typename LockConfigurationT = LockConfiguration>
113 void SetLockConfiguration(LockConfigurationT&& value) { m_lockConfigurationHasBeenSet = true; m_lockConfiguration = std::forward<LockConfigurationT>(value); }
114 template<typename LockConfigurationT = LockConfiguration>
115 UnlockRuleResult& WithLockConfiguration(LockConfigurationT&& value) { SetLockConfiguration(std::forward<LockConfigurationT>(value)); return *this;}
117
119
132 inline LockState GetLockState() const { return m_lockState; }
133 inline void SetLockState(LockState value) { m_lockStateHasBeenSet = true; m_lockState = value; }
134 inline UnlockRuleResult& WithLockState(LockState value) { SetLockState(value); return *this;}
136
138
143 inline const Aws::Utils::DateTime& GetLockEndTime() const { return m_lockEndTime; }
144 template<typename LockEndTimeT = Aws::Utils::DateTime>
145 void SetLockEndTime(LockEndTimeT&& value) { m_lockEndTimeHasBeenSet = true; m_lockEndTime = std::forward<LockEndTimeT>(value); }
146 template<typename LockEndTimeT = Aws::Utils::DateTime>
147 UnlockRuleResult& WithLockEndTime(LockEndTimeT&& value) { SetLockEndTime(std::forward<LockEndTimeT>(value)); return *this;}
149
151
154 inline const Aws::String& GetRuleArn() const { return m_ruleArn; }
155 template<typename RuleArnT = Aws::String>
156 void SetRuleArn(RuleArnT&& value) { m_ruleArnHasBeenSet = true; m_ruleArn = std::forward<RuleArnT>(value); }
157 template<typename RuleArnT = Aws::String>
158 UnlockRuleResult& WithRuleArn(RuleArnT&& value) { SetRuleArn(std::forward<RuleArnT>(value)); return *this;}
160
162
167 inline const Aws::Vector<ResourceTag>& GetExcludeResourceTags() const { return m_excludeResourceTags; }
168 template<typename ExcludeResourceTagsT = Aws::Vector<ResourceTag>>
169 void SetExcludeResourceTags(ExcludeResourceTagsT&& value) { m_excludeResourceTagsHasBeenSet = true; m_excludeResourceTags = std::forward<ExcludeResourceTagsT>(value); }
170 template<typename ExcludeResourceTagsT = Aws::Vector<ResourceTag>>
171 UnlockRuleResult& WithExcludeResourceTags(ExcludeResourceTagsT&& value) { SetExcludeResourceTags(std::forward<ExcludeResourceTagsT>(value)); return *this;}
172 template<typename ExcludeResourceTagsT = ResourceTag>
173 UnlockRuleResult& AddExcludeResourceTags(ExcludeResourceTagsT&& value) { m_excludeResourceTagsHasBeenSet = true; m_excludeResourceTags.emplace_back(std::forward<ExcludeResourceTagsT>(value)); return *this; }
175
177
178 inline const Aws::String& GetRequestId() const { return m_requestId; }
179 template<typename RequestIdT = Aws::String>
180 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
181 template<typename RequestIdT = Aws::String>
182 UnlockRuleResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
184 private:
185
186 Aws::String m_identifier;
187 bool m_identifierHasBeenSet = false;
188
189 Aws::String m_description;
190 bool m_descriptionHasBeenSet = false;
191
192 ResourceType m_resourceType{ResourceType::NOT_SET};
193 bool m_resourceTypeHasBeenSet = false;
194
195 RetentionPeriod m_retentionPeriod;
196 bool m_retentionPeriodHasBeenSet = false;
197
198 Aws::Vector<ResourceTag> m_resourceTags;
199 bool m_resourceTagsHasBeenSet = false;
200
202 bool m_statusHasBeenSet = false;
203
204 LockConfiguration m_lockConfiguration;
205 bool m_lockConfigurationHasBeenSet = false;
206
207 LockState m_lockState{LockState::NOT_SET};
208 bool m_lockStateHasBeenSet = false;
209
210 Aws::Utils::DateTime m_lockEndTime{};
211 bool m_lockEndTimeHasBeenSet = false;
212
213 Aws::String m_ruleArn;
214 bool m_ruleArnHasBeenSet = false;
215
216 Aws::Vector<ResourceTag> m_excludeResourceTags;
217 bool m_excludeResourceTagsHasBeenSet = false;
218
219 Aws::String m_requestId;
220 bool m_requestIdHasBeenSet = false;
221 };
222
223} // namespace Model
224} // namespace RecycleBin
225} // namespace Aws
const LockConfiguration & GetLockConfiguration() const
UnlockRuleResult & AddResourceTags(ResourceTagsT &&value)
void SetLockConfiguration(LockConfigurationT &&value)
const RetentionPeriod & GetRetentionPeriod() const
const Aws::Vector< ResourceTag > & GetExcludeResourceTags() const
const Aws::String & GetDescription() const
UnlockRuleResult & WithRetentionPeriod(RetentionPeriodT &&value)
UnlockRuleResult & WithResourceTags(ResourceTagsT &&value)
UnlockRuleResult & WithExcludeResourceTags(ExcludeResourceTagsT &&value)
UnlockRuleResult & WithLockState(LockState value)
const Aws::String & GetIdentifier() const
UnlockRuleResult & WithLockEndTime(LockEndTimeT &&value)
AWS_RECYCLEBIN_API UnlockRuleResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetRetentionPeriod(RetentionPeriodT &&value)
void SetResourceTags(ResourceTagsT &&value)
AWS_RECYCLEBIN_API UnlockRuleResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetExcludeResourceTags(ExcludeResourceTagsT &&value)
UnlockRuleResult & WithRequestId(RequestIdT &&value)
UnlockRuleResult & WithStatus(RuleStatus value)
const Aws::String & GetRequestId() const
UnlockRuleResult & WithLockConfiguration(LockConfigurationT &&value)
UnlockRuleResult & AddExcludeResourceTags(ExcludeResourceTagsT &&value)
const Aws::Vector< ResourceTag > & GetResourceTags() const
UnlockRuleResult & WithRuleArn(RuleArnT &&value)
UnlockRuleResult & WithDescription(DescriptionT &&value)
void SetDescription(DescriptionT &&value)
AWS_RECYCLEBIN_API UnlockRuleResult()=default
void SetLockEndTime(LockEndTimeT &&value)
UnlockRuleResult & WithResourceType(ResourceType value)
const Aws::Utils::DateTime & GetLockEndTime() const
UnlockRuleResult & WithIdentifier(IdentifierT &&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