AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateRuleResult.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/RetentionPeriod.h>
10#include <aws/rbin/model/ResourceType.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/rbin/model/RuleStatus.h>
13#include <aws/rbin/model/LockState.h>
14#include <aws/core/utils/DateTime.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 UpdateRuleResult();
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 UpdateRuleResult& WithIdentifier(const Aws::String& value) { SetIdentifier(value); return *this;}
51 inline UpdateRuleResult& WithIdentifier(Aws::String&& value) { SetIdentifier(std::move(value)); return *this;}
52 inline UpdateRuleResult& WithIdentifier(const char* value) { SetIdentifier(value); return *this;}
54
56
57 inline const RetentionPeriod& GetRetentionPeriod() const{ return m_retentionPeriod; }
58 inline void SetRetentionPeriod(const RetentionPeriod& value) { m_retentionPeriod = value; }
59 inline void SetRetentionPeriod(RetentionPeriod&& value) { m_retentionPeriod = std::move(value); }
60 inline UpdateRuleResult& WithRetentionPeriod(const RetentionPeriod& value) { SetRetentionPeriod(value); return *this;}
61 inline UpdateRuleResult& WithRetentionPeriod(RetentionPeriod&& value) { SetRetentionPeriod(std::move(value)); return *this;}
63
65
68 inline const Aws::String& GetDescription() const{ return m_description; }
69 inline void SetDescription(const Aws::String& value) { m_description = value; }
70 inline void SetDescription(Aws::String&& value) { m_description = std::move(value); }
71 inline void SetDescription(const char* value) { m_description.assign(value); }
72 inline UpdateRuleResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
73 inline UpdateRuleResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
74 inline UpdateRuleResult& WithDescription(const char* value) { SetDescription(value); return *this;}
76
78
81 inline const ResourceType& GetResourceType() const{ return m_resourceType; }
82 inline void SetResourceType(const ResourceType& value) { m_resourceType = value; }
83 inline void SetResourceType(ResourceType&& value) { m_resourceType = std::move(value); }
84 inline UpdateRuleResult& WithResourceType(const ResourceType& value) { SetResourceType(value); return *this;}
85 inline UpdateRuleResult& WithResourceType(ResourceType&& value) { SetResourceType(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 UpdateRuleResult& WithResourceTags(const Aws::Vector<ResourceTag>& value) { SetResourceTags(value); return *this;}
97 inline UpdateRuleResult& WithResourceTags(Aws::Vector<ResourceTag>&& value) { SetResourceTags(std::move(value)); return *this;}
98 inline UpdateRuleResult& AddResourceTags(const ResourceTag& value) { m_resourceTags.push_back(value); return *this; }
99 inline UpdateRuleResult& 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 UpdateRuleResult& WithStatus(const RuleStatus& value) { SetStatus(value); return *this;}
111 inline UpdateRuleResult& WithStatus(RuleStatus&& value) { SetStatus(std::move(value)); return *this;}
113
115
128 inline const LockState& GetLockState() const{ return m_lockState; }
129 inline void SetLockState(const LockState& value) { m_lockState = value; }
130 inline void SetLockState(LockState&& value) { m_lockState = std::move(value); }
131 inline UpdateRuleResult& WithLockState(const LockState& value) { SetLockState(value); return *this;}
132 inline UpdateRuleResult& WithLockState(LockState&& value) { SetLockState(std::move(value)); return *this;}
134
136
141 inline const Aws::Utils::DateTime& GetLockEndTime() const{ return m_lockEndTime; }
142 inline void SetLockEndTime(const Aws::Utils::DateTime& value) { m_lockEndTime = value; }
143 inline void SetLockEndTime(Aws::Utils::DateTime&& value) { m_lockEndTime = std::move(value); }
144 inline UpdateRuleResult& WithLockEndTime(const Aws::Utils::DateTime& value) { SetLockEndTime(value); return *this;}
145 inline UpdateRuleResult& WithLockEndTime(Aws::Utils::DateTime&& value) { SetLockEndTime(std::move(value)); return *this;}
147
149
152 inline const Aws::String& GetRuleArn() const{ return m_ruleArn; }
153 inline void SetRuleArn(const Aws::String& value) { m_ruleArn = value; }
154 inline void SetRuleArn(Aws::String&& value) { m_ruleArn = std::move(value); }
155 inline void SetRuleArn(const char* value) { m_ruleArn.assign(value); }
156 inline UpdateRuleResult& WithRuleArn(const Aws::String& value) { SetRuleArn(value); return *this;}
157 inline UpdateRuleResult& WithRuleArn(Aws::String&& value) { SetRuleArn(std::move(value)); return *this;}
158 inline UpdateRuleResult& WithRuleArn(const char* value) { SetRuleArn(value); return *this;}
160
162
163 inline const Aws::String& GetRequestId() const{ return m_requestId; }
164 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
165 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
166 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
167 inline UpdateRuleResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
168 inline UpdateRuleResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
169 inline UpdateRuleResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
171 private:
172
173 Aws::String m_identifier;
174
175 RetentionPeriod m_retentionPeriod;
176
177 Aws::String m_description;
178
179 ResourceType m_resourceType;
180
181 Aws::Vector<ResourceTag> m_resourceTags;
182
183 RuleStatus m_status;
184
185 LockState m_lockState;
186
187 Aws::Utils::DateTime m_lockEndTime;
188
189 Aws::String m_ruleArn;
190
191 Aws::String m_requestId;
192 };
193
194} // namespace Model
195} // namespace RecycleBin
196} // namespace Aws
void SetResourceType(const ResourceType &value)
UpdateRuleResult & WithDescription(Aws::String &&value)
UpdateRuleResult & WithResourceType(ResourceType &&value)
UpdateRuleResult & WithLockState(const LockState &value)
UpdateRuleResult & WithRuleArn(const char *value)
const RetentionPeriod & GetRetentionPeriod() const
const Aws::String & GetDescription() const
AWS_RECYCLEBIN_API UpdateRuleResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdateRuleResult & AddResourceTags(const ResourceTag &value)
UpdateRuleResult & WithStatus(const RuleStatus &value)
AWS_RECYCLEBIN_API UpdateRuleResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdateRuleResult & WithRuleArn(Aws::String &&value)
UpdateRuleResult & WithIdentifier(Aws::String &&value)
const Aws::String & GetIdentifier() const
UpdateRuleResult & WithRequestId(const char *value)
UpdateRuleResult & WithIdentifier(const Aws::String &value)
UpdateRuleResult & WithRetentionPeriod(RetentionPeriod &&value)
void SetDescription(const Aws::String &value)
UpdateRuleResult & WithLockState(LockState &&value)
void SetIdentifier(const Aws::String &value)
UpdateRuleResult & WithRequestId(const Aws::String &value)
UpdateRuleResult & WithStatus(RuleStatus &&value)
void SetResourceTags(const Aws::Vector< ResourceTag > &value)
UpdateRuleResult & WithRequestId(Aws::String &&value)
void SetResourceTags(Aws::Vector< ResourceTag > &&value)
void SetLockEndTime(const Aws::Utils::DateTime &value)
UpdateRuleResult & AddResourceTags(ResourceTag &&value)
UpdateRuleResult & WithResourceTags(const Aws::Vector< ResourceTag > &value)
UpdateRuleResult & WithRuleArn(const Aws::String &value)
UpdateRuleResult & WithIdentifier(const char *value)
UpdateRuleResult & WithLockEndTime(const Aws::Utils::DateTime &value)
UpdateRuleResult & WithDescription(const char *value)
UpdateRuleResult & WithResourceType(const ResourceType &value)
void SetStatus(const RuleStatus &value)
const Aws::String & GetRequestId() const
UpdateRuleResult & WithResourceTags(Aws::Vector< ResourceTag > &&value)
const ResourceType & GetResourceType() const
UpdateRuleResult & WithDescription(const Aws::String &value)
UpdateRuleResult & WithRetentionPeriod(const RetentionPeriod &value)
void SetRequestId(const Aws::String &value)
const Aws::Vector< ResourceTag > & GetResourceTags() const
const Aws::Utils::DateTime & GetLockEndTime() const
void SetResourceType(ResourceType &&value)
void SetLockEndTime(Aws::Utils::DateTime &&value)
void SetRetentionPeriod(const RetentionPeriod &value)
void SetLockState(const LockState &value)
UpdateRuleResult & WithLockEndTime(Aws::Utils::DateTime &&value)
void SetRetentionPeriod(RetentionPeriod &&value)
void SetRuleArn(const 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