AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
LockRuleResult.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/rbin/model/ResourceTag.h>
16#include <utility>
17
18namespace Aws
19{
20template<typename RESULT_TYPE>
21class AmazonWebServiceResult;
22
23namespace Utils
24{
25namespace Json
26{
27 class JsonValue;
28} // namespace Json
29} // namespace Utils
30namespace RecycleBin
31{
32namespace Model
33{
35 {
36 public:
37 AWS_RECYCLEBIN_API LockRuleResult();
40
41
43
46 inline const Aws::String& GetIdentifier() const{ return m_identifier; }
47 inline void SetIdentifier(const Aws::String& value) { m_identifier = value; }
48 inline void SetIdentifier(Aws::String&& value) { m_identifier = std::move(value); }
49 inline void SetIdentifier(const char* value) { m_identifier.assign(value); }
50 inline LockRuleResult& WithIdentifier(const Aws::String& value) { SetIdentifier(value); return *this;}
51 inline LockRuleResult& WithIdentifier(Aws::String&& value) { SetIdentifier(std::move(value)); return *this;}
52 inline LockRuleResult& WithIdentifier(const char* value) { SetIdentifier(value); return *this;}
54
56
59 inline const Aws::String& GetDescription() const{ return m_description; }
60 inline void SetDescription(const Aws::String& value) { m_description = value; }
61 inline void SetDescription(Aws::String&& value) { m_description = std::move(value); }
62 inline void SetDescription(const char* value) { m_description.assign(value); }
63 inline LockRuleResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
64 inline LockRuleResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
65 inline LockRuleResult& WithDescription(const char* value) { SetDescription(value); return *this;}
67
69
72 inline const ResourceType& GetResourceType() const{ return m_resourceType; }
73 inline void SetResourceType(const ResourceType& value) { m_resourceType = value; }
74 inline void SetResourceType(ResourceType&& value) { m_resourceType = std::move(value); }
75 inline LockRuleResult& WithResourceType(const ResourceType& value) { SetResourceType(value); return *this;}
76 inline LockRuleResult& WithResourceType(ResourceType&& value) { SetResourceType(std::move(value)); return *this;}
78
80
81 inline const RetentionPeriod& GetRetentionPeriod() const{ return m_retentionPeriod; }
82 inline void SetRetentionPeriod(const RetentionPeriod& value) { m_retentionPeriod = value; }
83 inline void SetRetentionPeriod(RetentionPeriod&& value) { m_retentionPeriod = std::move(value); }
84 inline LockRuleResult& WithRetentionPeriod(const RetentionPeriod& value) { SetRetentionPeriod(value); return *this;}
85 inline LockRuleResult& WithRetentionPeriod(RetentionPeriod&& value) { SetRetentionPeriod(std::move(value)); return *this;}
87
89
93 inline const Aws::Vector<ResourceTag>& GetResourceTags() const{ return m_resourceTags; }
94 inline void SetResourceTags(const Aws::Vector<ResourceTag>& value) { m_resourceTags = value; }
95 inline void SetResourceTags(Aws::Vector<ResourceTag>&& value) { m_resourceTags = std::move(value); }
96 inline LockRuleResult& WithResourceTags(const Aws::Vector<ResourceTag>& value) { SetResourceTags(value); return *this;}
97 inline LockRuleResult& WithResourceTags(Aws::Vector<ResourceTag>&& value) { SetResourceTags(std::move(value)); return *this;}
98 inline LockRuleResult& AddResourceTags(const ResourceTag& value) { m_resourceTags.push_back(value); return *this; }
99 inline LockRuleResult& AddResourceTags(ResourceTag&& value) { m_resourceTags.push_back(std::move(value)); return *this; }
101
103
107 inline const RuleStatus& GetStatus() const{ return m_status; }
108 inline void SetStatus(const RuleStatus& value) { m_status = value; }
109 inline void SetStatus(RuleStatus&& value) { m_status = std::move(value); }
110 inline LockRuleResult& WithStatus(const RuleStatus& value) { SetStatus(value); return *this;}
111 inline LockRuleResult& WithStatus(RuleStatus&& value) { SetStatus(std::move(value)); return *this;}
113
115
118 inline const LockConfiguration& GetLockConfiguration() const{ return m_lockConfiguration; }
119 inline void SetLockConfiguration(const LockConfiguration& value) { m_lockConfiguration = value; }
120 inline void SetLockConfiguration(LockConfiguration&& value) { m_lockConfiguration = std::move(value); }
121 inline LockRuleResult& WithLockConfiguration(const LockConfiguration& value) { SetLockConfiguration(value); return *this;}
122 inline LockRuleResult& WithLockConfiguration(LockConfiguration&& value) { SetLockConfiguration(std::move(value)); return *this;}
124
126
139 inline const LockState& GetLockState() const{ return m_lockState; }
140 inline void SetLockState(const LockState& value) { m_lockState = value; }
141 inline void SetLockState(LockState&& value) { m_lockState = std::move(value); }
142 inline LockRuleResult& WithLockState(const LockState& value) { SetLockState(value); return *this;}
143 inline LockRuleResult& WithLockState(LockState&& value) { SetLockState(std::move(value)); return *this;}
145
147
150 inline const Aws::String& GetRuleArn() const{ return m_ruleArn; }
151 inline void SetRuleArn(const Aws::String& value) { m_ruleArn = value; }
152 inline void SetRuleArn(Aws::String&& value) { m_ruleArn = std::move(value); }
153 inline void SetRuleArn(const char* value) { m_ruleArn.assign(value); }
154 inline LockRuleResult& WithRuleArn(const Aws::String& value) { SetRuleArn(value); return *this;}
155 inline LockRuleResult& WithRuleArn(Aws::String&& value) { SetRuleArn(std::move(value)); return *this;}
156 inline LockRuleResult& WithRuleArn(const char* value) { SetRuleArn(value); return *this;}
158
160
161 inline const Aws::String& GetRequestId() const{ return m_requestId; }
162 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
163 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
164 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
165 inline LockRuleResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
166 inline LockRuleResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
167 inline LockRuleResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
169 private:
170
171 Aws::String m_identifier;
172
173 Aws::String m_description;
174
175 ResourceType m_resourceType;
176
177 RetentionPeriod m_retentionPeriod;
178
179 Aws::Vector<ResourceTag> m_resourceTags;
180
181 RuleStatus m_status;
182
183 LockConfiguration m_lockConfiguration;
184
185 LockState m_lockState;
186
187 Aws::String m_ruleArn;
188
189 Aws::String m_requestId;
190 };
191
192} // namespace Model
193} // namespace RecycleBin
194} // namespace Aws
const Aws::Vector< ResourceTag > & GetResourceTags() const
const Aws::String & GetRequestId() const
const LockConfiguration & GetLockConfiguration() const
LockRuleResult & WithRuleArn(Aws::String &&value)
LockRuleResult & WithRetentionPeriod(RetentionPeriod &&value)
LockRuleResult & WithResourceType(const ResourceType &value)
AWS_RECYCLEBIN_API LockRuleResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
LockRuleResult & WithLockState(const LockState &value)
void SetResourceType(const ResourceType &value)
void SetDescription(const Aws::String &value)
LockRuleResult & WithResourceType(ResourceType &&value)
void SetRequestId(const Aws::String &value)
void SetDescription(const char *value)
void SetRetentionPeriod(RetentionPeriod &&value)
LockRuleResult & WithLockConfiguration(LockConfiguration &&value)
LockRuleResult & WithResourceTags(const Aws::Vector< ResourceTag > &value)
LockRuleResult & WithIdentifier(const char *value)
void SetLockConfiguration(const LockConfiguration &value)
LockRuleResult & WithIdentifier(const Aws::String &value)
void SetLockState(const LockState &value)
LockRuleResult & WithStatus(const RuleStatus &value)
void SetRetentionPeriod(const RetentionPeriod &value)
void SetLockConfiguration(LockConfiguration &&value)
void SetIdentifier(const char *value)
void SetIdentifier(Aws::String &&value)
LockRuleResult & WithRetentionPeriod(const RetentionPeriod &value)
void SetRuleArn(const Aws::String &value)
LockRuleResult & AddResourceTags(const ResourceTag &value)
LockRuleResult & WithLockConfiguration(const LockConfiguration &value)
const RetentionPeriod & GetRetentionPeriod() const
LockRuleResult & WithDescription(const Aws::String &value)
LockRuleResult & WithResourceTags(Aws::Vector< ResourceTag > &&value)
LockRuleResult & WithLockState(LockState &&value)
AWS_RECYCLEBIN_API LockRuleResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
LockRuleResult & AddResourceTags(ResourceTag &&value)
LockRuleResult & WithStatus(RuleStatus &&value)
LockRuleResult & WithRequestId(const char *value)
const LockState & GetLockState() const
void SetIdentifier(const Aws::String &value)
const RuleStatus & GetStatus() const
const ResourceType & GetResourceType() const
const Aws::String & GetRuleArn() const
LockRuleResult & WithIdentifier(Aws::String &&value)
void SetResourceType(ResourceType &&value)
LockRuleResult & WithRequestId(const Aws::String &value)
LockRuleResult & WithRuleArn(const Aws::String &value)
void SetResourceTags(Aws::Vector< ResourceTag > &&value)
LockRuleResult & WithDescription(const char *value)
void SetRequestId(Aws::String &&value)
void SetDescription(Aws::String &&value)
void SetStatus(const RuleStatus &value)
const Aws::String & GetIdentifier() const
LockRuleResult & WithRequestId(Aws::String &&value)
void SetRuleArn(Aws::String &&value)
LockRuleResult & WithRuleArn(const char *value)
const Aws::String & GetDescription() const
void SetResourceTags(const Aws::Vector< ResourceTag > &value)
LockRuleResult & WithDescription(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