AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 GetRuleResult& WithIdentifier(const Aws::String& value) { SetIdentifier(value); return *this;}
52 inline GetRuleResult& WithIdentifier(Aws::String&& value) { SetIdentifier(std::move(value)); return *this;}
53 inline GetRuleResult& 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 GetRuleResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
65 inline GetRuleResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
66 inline GetRuleResult& 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 GetRuleResult& WithResourceType(const ResourceType& value) { SetResourceType(value); return *this;}
77 inline GetRuleResult& WithResourceType(ResourceType&& value) { SetResourceType(std::move(value)); return *this;}
79
81
85 inline const RetentionPeriod& GetRetentionPeriod() const{ return m_retentionPeriod; }
86 inline void SetRetentionPeriod(const RetentionPeriod& value) { m_retentionPeriod = value; }
87 inline void SetRetentionPeriod(RetentionPeriod&& value) { m_retentionPeriod = std::move(value); }
88 inline GetRuleResult& WithRetentionPeriod(const RetentionPeriod& value) { SetRetentionPeriod(value); return *this;}
89 inline GetRuleResult& WithRetentionPeriod(RetentionPeriod&& value) { SetRetentionPeriod(std::move(value)); return *this;}
91
93
97 inline const Aws::Vector<ResourceTag>& GetResourceTags() const{ return m_resourceTags; }
98 inline void SetResourceTags(const Aws::Vector<ResourceTag>& value) { m_resourceTags = value; }
99 inline void SetResourceTags(Aws::Vector<ResourceTag>&& value) { m_resourceTags = std::move(value); }
100 inline GetRuleResult& WithResourceTags(const Aws::Vector<ResourceTag>& value) { SetResourceTags(value); return *this;}
101 inline GetRuleResult& WithResourceTags(Aws::Vector<ResourceTag>&& value) { SetResourceTags(std::move(value)); return *this;}
102 inline GetRuleResult& AddResourceTags(const ResourceTag& value) { m_resourceTags.push_back(value); return *this; }
103 inline GetRuleResult& AddResourceTags(ResourceTag&& value) { m_resourceTags.push_back(std::move(value)); return *this; }
105
107
111 inline const RuleStatus& GetStatus() const{ return m_status; }
112 inline void SetStatus(const RuleStatus& value) { m_status = value; }
113 inline void SetStatus(RuleStatus&& value) { m_status = std::move(value); }
114 inline GetRuleResult& WithStatus(const RuleStatus& value) { SetStatus(value); return *this;}
115 inline GetRuleResult& WithStatus(RuleStatus&& value) { SetStatus(std::move(value)); return *this;}
117
119
122 inline const LockConfiguration& GetLockConfiguration() const{ return m_lockConfiguration; }
123 inline void SetLockConfiguration(const LockConfiguration& value) { m_lockConfiguration = value; }
124 inline void SetLockConfiguration(LockConfiguration&& value) { m_lockConfiguration = std::move(value); }
125 inline GetRuleResult& WithLockConfiguration(const LockConfiguration& value) { SetLockConfiguration(value); return *this;}
126 inline GetRuleResult& WithLockConfiguration(LockConfiguration&& value) { SetLockConfiguration(std::move(value)); return *this;}
128
130
143 inline const LockState& GetLockState() const{ return m_lockState; }
144 inline void SetLockState(const LockState& value) { m_lockState = value; }
145 inline void SetLockState(LockState&& value) { m_lockState = std::move(value); }
146 inline GetRuleResult& WithLockState(const LockState& value) { SetLockState(value); return *this;}
147 inline GetRuleResult& WithLockState(LockState&& value) { SetLockState(std::move(value)); return *this;}
149
151
156 inline const Aws::Utils::DateTime& GetLockEndTime() const{ return m_lockEndTime; }
157 inline void SetLockEndTime(const Aws::Utils::DateTime& value) { m_lockEndTime = value; }
158 inline void SetLockEndTime(Aws::Utils::DateTime&& value) { m_lockEndTime = std::move(value); }
159 inline GetRuleResult& WithLockEndTime(const Aws::Utils::DateTime& value) { SetLockEndTime(value); return *this;}
160 inline GetRuleResult& WithLockEndTime(Aws::Utils::DateTime&& value) { SetLockEndTime(std::move(value)); return *this;}
162
164
167 inline const Aws::String& GetRuleArn() const{ return m_ruleArn; }
168 inline void SetRuleArn(const Aws::String& value) { m_ruleArn = value; }
169 inline void SetRuleArn(Aws::String&& value) { m_ruleArn = std::move(value); }
170 inline void SetRuleArn(const char* value) { m_ruleArn.assign(value); }
171 inline GetRuleResult& WithRuleArn(const Aws::String& value) { SetRuleArn(value); return *this;}
172 inline GetRuleResult& WithRuleArn(Aws::String&& value) { SetRuleArn(std::move(value)); return *this;}
173 inline GetRuleResult& WithRuleArn(const char* value) { SetRuleArn(value); return *this;}
175
177
178 inline const Aws::String& GetRequestId() const{ return m_requestId; }
179 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
180 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
181 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
182 inline GetRuleResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
183 inline GetRuleResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
184 inline GetRuleResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
186 private:
187
188 Aws::String m_identifier;
189
190 Aws::String m_description;
191
192 ResourceType m_resourceType;
193
194 RetentionPeriod m_retentionPeriod;
195
196 Aws::Vector<ResourceTag> m_resourceTags;
197
198 RuleStatus m_status;
199
200 LockConfiguration m_lockConfiguration;
201
202 LockState m_lockState;
203
204 Aws::Utils::DateTime m_lockEndTime;
205
206 Aws::String m_ruleArn;
207
208 Aws::String m_requestId;
209 };
210
211} // namespace Model
212} // namespace RecycleBin
213} // namespace Aws
GetRuleResult & WithRuleArn(Aws::String &&value)
void SetIdentifier(Aws::String &&value)
const RuleStatus & GetStatus() const
GetRuleResult & WithDescription(const Aws::String &value)
void SetLockState(LockState &&value)
const Aws::String & GetRequestId() const
GetRuleResult & WithStatus(RuleStatus &&value)
GetRuleResult & WithLockConfiguration(LockConfiguration &&value)
GetRuleResult & WithIdentifier(const Aws::String &value)
GetRuleResult & WithStatus(const RuleStatus &value)
GetRuleResult & WithLockEndTime(Aws::Utils::DateTime &&value)
void SetRetentionPeriod(const RetentionPeriod &value)
void SetResourceTags(const Aws::Vector< ResourceTag > &value)
const Aws::String & GetDescription() const
void SetRetentionPeriod(RetentionPeriod &&value)
void SetRuleArn(Aws::String &&value)
AWS_RECYCLEBIN_API GetRuleResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetLockEndTime(const Aws::Utils::DateTime &value)
void SetStatus(RuleStatus &&value)
void SetLockEndTime(Aws::Utils::DateTime &&value)
void SetRuleArn(const Aws::String &value)
GetRuleResult & WithResourceTags(const Aws::Vector< ResourceTag > &value)
GetRuleResult & WithLockState(const LockState &value)
const Aws::String & GetRuleArn() const
GetRuleResult & WithResourceTags(Aws::Vector< ResourceTag > &&value)
GetRuleResult & WithResourceType(ResourceType &&value)
GetRuleResult & WithDescription(const char *value)
void SetStatus(const RuleStatus &value)
GetRuleResult & WithLockState(LockState &&value)
void SetIdentifier(const Aws::String &value)
void SetLockConfiguration(LockConfiguration &&value)
GetRuleResult & WithRuleArn(const Aws::String &value)
void SetResourceType(const ResourceType &value)
void SetLockConfiguration(const LockConfiguration &value)
GetRuleResult & WithRetentionPeriod(const RetentionPeriod &value)
AWS_RECYCLEBIN_API GetRuleResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::String & GetIdentifier() const
GetRuleResult & WithRequestId(Aws::String &&value)
GetRuleResult & WithIdentifier(Aws::String &&value)
GetRuleResult & WithResourceType(const ResourceType &value)
void SetRequestId(Aws::String &&value)
GetRuleResult & WithRequestId(const char *value)
GetRuleResult & WithLockConfiguration(const LockConfiguration &value)
void SetResourceTags(Aws::Vector< ResourceTag > &&value)
void SetResourceType(ResourceType &&value)
void SetDescription(Aws::String &&value)
const LockConfiguration & GetLockConfiguration() const
const Aws::Utils::DateTime & GetLockEndTime() const
GetRuleResult & WithLockEndTime(const Aws::Utils::DateTime &value)
void SetIdentifier(const char *value)
void SetRequestId(const Aws::String &value)
const Aws::Vector< ResourceTag > & GetResourceTags() const
GetRuleResult & WithDescription(Aws::String &&value)
GetRuleResult & WithRuleArn(const char *value)
void SetLockState(const LockState &value)
const LockState & GetLockState() const
void SetDescription(const char *value)
const RetentionPeriod & GetRetentionPeriod() const
void SetDescription(const Aws::String &value)
GetRuleResult & WithRetentionPeriod(RetentionPeriod &&value)
const ResourceType & GetResourceType() const
GetRuleResult & WithRequestId(const Aws::String &value)
GetRuleResult & AddResourceTags(const ResourceTag &value)
void SetRequestId(const char *value)
GetRuleResult & WithIdentifier(const char *value)
GetRuleResult & AddResourceTags(ResourceTag &&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