AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
GetRuleResult.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 GetRuleResult() = 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 GetRuleResult& 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 GetRuleResult& 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 GetRuleResult& WithResourceType(ResourceType value) { SetResourceType(value); return *this;}
73
75
79 inline const RetentionPeriod& GetRetentionPeriod() const { return m_retentionPeriod; }
80 template<typename RetentionPeriodT = RetentionPeriod>
81 void SetRetentionPeriod(RetentionPeriodT&& value) { m_retentionPeriodHasBeenSet = true; m_retentionPeriod = std::forward<RetentionPeriodT>(value); }
82 template<typename RetentionPeriodT = RetentionPeriod>
83 GetRuleResult& WithRetentionPeriod(RetentionPeriodT&& value) { SetRetentionPeriod(std::forward<RetentionPeriodT>(value)); return *this;}
85
87
91 inline const Aws::Vector<ResourceTag>& GetResourceTags() const { return m_resourceTags; }
92 template<typename ResourceTagsT = Aws::Vector<ResourceTag>>
93 void SetResourceTags(ResourceTagsT&& value) { m_resourceTagsHasBeenSet = true; m_resourceTags = std::forward<ResourceTagsT>(value); }
94 template<typename ResourceTagsT = Aws::Vector<ResourceTag>>
95 GetRuleResult& WithResourceTags(ResourceTagsT&& value) { SetResourceTags(std::forward<ResourceTagsT>(value)); return *this;}
96 template<typename ResourceTagsT = ResourceTag>
97 GetRuleResult& AddResourceTags(ResourceTagsT&& value) { m_resourceTagsHasBeenSet = true; m_resourceTags.emplace_back(std::forward<ResourceTagsT>(value)); return *this; }
99
101
105 inline RuleStatus GetStatus() const { return m_status; }
106 inline void SetStatus(RuleStatus value) { m_statusHasBeenSet = true; m_status = value; }
107 inline GetRuleResult& WithStatus(RuleStatus value) { SetStatus(value); return *this;}
109
111
114 inline const LockConfiguration& GetLockConfiguration() const { return m_lockConfiguration; }
115 template<typename LockConfigurationT = LockConfiguration>
116 void SetLockConfiguration(LockConfigurationT&& value) { m_lockConfigurationHasBeenSet = true; m_lockConfiguration = std::forward<LockConfigurationT>(value); }
117 template<typename LockConfigurationT = LockConfiguration>
118 GetRuleResult& WithLockConfiguration(LockConfigurationT&& value) { SetLockConfiguration(std::forward<LockConfigurationT>(value)); return *this;}
120
122
135 inline LockState GetLockState() const { return m_lockState; }
136 inline void SetLockState(LockState value) { m_lockStateHasBeenSet = true; m_lockState = value; }
137 inline GetRuleResult& WithLockState(LockState value) { SetLockState(value); return *this;}
139
141
146 inline const Aws::Utils::DateTime& GetLockEndTime() const { return m_lockEndTime; }
147 template<typename LockEndTimeT = Aws::Utils::DateTime>
148 void SetLockEndTime(LockEndTimeT&& value) { m_lockEndTimeHasBeenSet = true; m_lockEndTime = std::forward<LockEndTimeT>(value); }
149 template<typename LockEndTimeT = Aws::Utils::DateTime>
150 GetRuleResult& WithLockEndTime(LockEndTimeT&& value) { SetLockEndTime(std::forward<LockEndTimeT>(value)); return *this;}
152
154
157 inline const Aws::String& GetRuleArn() const { return m_ruleArn; }
158 template<typename RuleArnT = Aws::String>
159 void SetRuleArn(RuleArnT&& value) { m_ruleArnHasBeenSet = true; m_ruleArn = std::forward<RuleArnT>(value); }
160 template<typename RuleArnT = Aws::String>
161 GetRuleResult& WithRuleArn(RuleArnT&& value) { SetRuleArn(std::forward<RuleArnT>(value)); return *this;}
163
165
170 inline const Aws::Vector<ResourceTag>& GetExcludeResourceTags() const { return m_excludeResourceTags; }
171 template<typename ExcludeResourceTagsT = Aws::Vector<ResourceTag>>
172 void SetExcludeResourceTags(ExcludeResourceTagsT&& value) { m_excludeResourceTagsHasBeenSet = true; m_excludeResourceTags = std::forward<ExcludeResourceTagsT>(value); }
173 template<typename ExcludeResourceTagsT = Aws::Vector<ResourceTag>>
174 GetRuleResult& WithExcludeResourceTags(ExcludeResourceTagsT&& value) { SetExcludeResourceTags(std::forward<ExcludeResourceTagsT>(value)); return *this;}
175 template<typename ExcludeResourceTagsT = ResourceTag>
176 GetRuleResult& AddExcludeResourceTags(ExcludeResourceTagsT&& value) { m_excludeResourceTagsHasBeenSet = true; m_excludeResourceTags.emplace_back(std::forward<ExcludeResourceTagsT>(value)); return *this; }
178
180
181 inline const Aws::String& GetRequestId() const { return m_requestId; }
182 template<typename RequestIdT = Aws::String>
183 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
184 template<typename RequestIdT = Aws::String>
185 GetRuleResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
187 private:
188
189 Aws::String m_identifier;
190 bool m_identifierHasBeenSet = false;
191
192 Aws::String m_description;
193 bool m_descriptionHasBeenSet = false;
194
195 ResourceType m_resourceType{ResourceType::NOT_SET};
196 bool m_resourceTypeHasBeenSet = false;
197
198 RetentionPeriod m_retentionPeriod;
199 bool m_retentionPeriodHasBeenSet = false;
200
201 Aws::Vector<ResourceTag> m_resourceTags;
202 bool m_resourceTagsHasBeenSet = false;
203
205 bool m_statusHasBeenSet = false;
206
207 LockConfiguration m_lockConfiguration;
208 bool m_lockConfigurationHasBeenSet = false;
209
210 LockState m_lockState{LockState::NOT_SET};
211 bool m_lockStateHasBeenSet = false;
212
213 Aws::Utils::DateTime m_lockEndTime{};
214 bool m_lockEndTimeHasBeenSet = false;
215
216 Aws::String m_ruleArn;
217 bool m_ruleArnHasBeenSet = false;
218
219 Aws::Vector<ResourceTag> m_excludeResourceTags;
220 bool m_excludeResourceTagsHasBeenSet = false;
221
222 Aws::String m_requestId;
223 bool m_requestIdHasBeenSet = false;
224 };
225
226} // namespace Model
227} // namespace RecycleBin
228} // namespace Aws
GetRuleResult & WithStatus(RuleStatus value)
const Aws::String & GetRequestId() const
GetRuleResult & WithRetentionPeriod(RetentionPeriodT &&value)
GetRuleResult & WithIdentifier(IdentifierT &&value)
GetRuleResult & WithResourceType(ResourceType value)
const Aws::String & GetDescription() const
GetRuleResult & WithResourceTags(ResourceTagsT &&value)
AWS_RECYCLEBIN_API GetRuleResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetResourceType(ResourceType value)
GetRuleResult & WithLockEndTime(LockEndTimeT &&value)
const Aws::String & GetRuleArn() const
const Aws::Vector< ResourceTag > & GetExcludeResourceTags() const
AWS_RECYCLEBIN_API GetRuleResult()=default
GetRuleResult & WithLockConfiguration(LockConfigurationT &&value)
void SetLockEndTime(LockEndTimeT &&value)
void SetResourceTags(ResourceTagsT &&value)
GetRuleResult & WithRuleArn(RuleArnT &&value)
void SetLockConfiguration(LockConfigurationT &&value)
AWS_RECYCLEBIN_API GetRuleResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::String & GetIdentifier() const
GetRuleResult & AddResourceTags(ResourceTagsT &&value)
GetRuleResult & AddExcludeResourceTags(ExcludeResourceTagsT &&value)
void SetDescription(DescriptionT &&value)
const LockConfiguration & GetLockConfiguration() const
const Aws::Utils::DateTime & GetLockEndTime() const
GetRuleResult & WithRequestId(RequestIdT &&value)
void SetIdentifier(IdentifierT &&value)
GetRuleResult & WithDescription(DescriptionT &&value)
void SetExcludeResourceTags(ExcludeResourceTagsT &&value)
const Aws::Vector< ResourceTag > & GetResourceTags() const
GetRuleResult & WithExcludeResourceTags(ExcludeResourceTagsT &&value)
void SetRequestId(RequestIdT &&value)
const RetentionPeriod & GetRetentionPeriod() const
void SetRetentionPeriod(RetentionPeriodT &&value)
GetRuleResult & WithLockState(LockState 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