AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateRuleResult.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/core/utils/memory/stl/AWSVector.h>
11#include <aws/rbin/model/ResourceType.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/Tag.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 CreateRuleResult();
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 CreateRuleResult& WithIdentifier(const Aws::String& value) { SetIdentifier(value); return *this;}
52 inline CreateRuleResult& WithIdentifier(Aws::String&& value) { SetIdentifier(std::move(value)); return *this;}
53 inline CreateRuleResult& WithIdentifier(const char* value) { SetIdentifier(value); return *this;}
55
57
58 inline const RetentionPeriod& GetRetentionPeriod() const{ return m_retentionPeriod; }
59 inline void SetRetentionPeriod(const RetentionPeriod& value) { m_retentionPeriod = value; }
60 inline void SetRetentionPeriod(RetentionPeriod&& value) { m_retentionPeriod = std::move(value); }
61 inline CreateRuleResult& WithRetentionPeriod(const RetentionPeriod& value) { SetRetentionPeriod(value); return *this;}
62 inline CreateRuleResult& WithRetentionPeriod(RetentionPeriod&& value) { SetRetentionPeriod(std::move(value)); return *this;}
64
66
69 inline const Aws::String& GetDescription() const{ return m_description; }
70 inline void SetDescription(const Aws::String& value) { m_description = value; }
71 inline void SetDescription(Aws::String&& value) { m_description = std::move(value); }
72 inline void SetDescription(const char* value) { m_description.assign(value); }
73 inline CreateRuleResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
74 inline CreateRuleResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
75 inline CreateRuleResult& WithDescription(const char* value) { SetDescription(value); return *this;}
77
79
82 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
83 inline void SetTags(const Aws::Vector<Tag>& value) { m_tags = value; }
84 inline void SetTags(Aws::Vector<Tag>&& value) { m_tags = std::move(value); }
85 inline CreateRuleResult& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
86 inline CreateRuleResult& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
87 inline CreateRuleResult& AddTags(const Tag& value) { m_tags.push_back(value); return *this; }
88 inline CreateRuleResult& AddTags(Tag&& value) { m_tags.push_back(std::move(value)); return *this; }
90
92
95 inline const ResourceType& GetResourceType() const{ return m_resourceType; }
96 inline void SetResourceType(const ResourceType& value) { m_resourceType = value; }
97 inline void SetResourceType(ResourceType&& value) { m_resourceType = std::move(value); }
98 inline CreateRuleResult& WithResourceType(const ResourceType& value) { SetResourceType(value); return *this;}
99 inline CreateRuleResult& WithResourceType(ResourceType&& value) { SetResourceType(std::move(value)); return *this;}
101
103
107 inline const Aws::Vector<ResourceTag>& GetResourceTags() const{ return m_resourceTags; }
108 inline void SetResourceTags(const Aws::Vector<ResourceTag>& value) { m_resourceTags = value; }
109 inline void SetResourceTags(Aws::Vector<ResourceTag>&& value) { m_resourceTags = std::move(value); }
110 inline CreateRuleResult& WithResourceTags(const Aws::Vector<ResourceTag>& value) { SetResourceTags(value); return *this;}
111 inline CreateRuleResult& WithResourceTags(Aws::Vector<ResourceTag>&& value) { SetResourceTags(std::move(value)); return *this;}
112 inline CreateRuleResult& AddResourceTags(const ResourceTag& value) { m_resourceTags.push_back(value); return *this; }
113 inline CreateRuleResult& AddResourceTags(ResourceTag&& value) { m_resourceTags.push_back(std::move(value)); return *this; }
115
117
121 inline const RuleStatus& GetStatus() const{ return m_status; }
122 inline void SetStatus(const RuleStatus& value) { m_status = value; }
123 inline void SetStatus(RuleStatus&& value) { m_status = std::move(value); }
124 inline CreateRuleResult& WithStatus(const RuleStatus& value) { SetStatus(value); return *this;}
125 inline CreateRuleResult& WithStatus(RuleStatus&& value) { SetStatus(std::move(value)); return *this;}
127
129
132 inline const LockConfiguration& GetLockConfiguration() const{ return m_lockConfiguration; }
133 inline void SetLockConfiguration(const LockConfiguration& value) { m_lockConfiguration = value; }
134 inline void SetLockConfiguration(LockConfiguration&& value) { m_lockConfiguration = std::move(value); }
136 inline CreateRuleResult& WithLockConfiguration(LockConfiguration&& value) { SetLockConfiguration(std::move(value)); return *this;}
138
140
153 inline const LockState& GetLockState() const{ return m_lockState; }
154 inline void SetLockState(const LockState& value) { m_lockState = value; }
155 inline void SetLockState(LockState&& value) { m_lockState = std::move(value); }
156 inline CreateRuleResult& WithLockState(const LockState& value) { SetLockState(value); return *this;}
157 inline CreateRuleResult& WithLockState(LockState&& value) { SetLockState(std::move(value)); return *this;}
159
161
164 inline const Aws::String& GetRuleArn() const{ return m_ruleArn; }
165 inline void SetRuleArn(const Aws::String& value) { m_ruleArn = value; }
166 inline void SetRuleArn(Aws::String&& value) { m_ruleArn = std::move(value); }
167 inline void SetRuleArn(const char* value) { m_ruleArn.assign(value); }
168 inline CreateRuleResult& WithRuleArn(const Aws::String& value) { SetRuleArn(value); return *this;}
169 inline CreateRuleResult& WithRuleArn(Aws::String&& value) { SetRuleArn(std::move(value)); return *this;}
170 inline CreateRuleResult& WithRuleArn(const char* value) { SetRuleArn(value); return *this;}
172
174
175 inline const Aws::String& GetRequestId() const{ return m_requestId; }
176 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
177 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
178 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
179 inline CreateRuleResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
180 inline CreateRuleResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
181 inline CreateRuleResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
183 private:
184
185 Aws::String m_identifier;
186
187 RetentionPeriod m_retentionPeriod;
188
189 Aws::String m_description;
190
191 Aws::Vector<Tag> m_tags;
192
193 ResourceType m_resourceType;
194
195 Aws::Vector<ResourceTag> m_resourceTags;
196
197 RuleStatus m_status;
198
199 LockConfiguration m_lockConfiguration;
200
201 LockState m_lockState;
202
203 Aws::String m_ruleArn;
204
205 Aws::String m_requestId;
206 };
207
208} // namespace Model
209} // namespace RecycleBin
210} // namespace Aws
CreateRuleResult & WithRetentionPeriod(RetentionPeriod &&value)
CreateRuleResult & WithLockConfiguration(LockConfiguration &&value)
CreateRuleResult & WithRequestId(const char *value)
const Aws::String & GetRequestId() const
CreateRuleResult & WithRuleArn(const char *value)
const LockConfiguration & GetLockConfiguration() const
CreateRuleResult & WithDescription(const char *value)
CreateRuleResult & WithIdentifier(const char *value)
CreateRuleResult & AddResourceTags(ResourceTag &&value)
const Aws::Vector< Tag > & GetTags() const
CreateRuleResult & WithTags(const Aws::Vector< Tag > &value)
void SetRequestId(const Aws::String &value)
const ResourceType & GetResourceType() const
CreateRuleResult & WithIdentifier(const Aws::String &value)
void SetRetentionPeriod(RetentionPeriod &&value)
CreateRuleResult & WithLockState(const LockState &value)
CreateRuleResult & WithResourceTags(const Aws::Vector< ResourceTag > &value)
CreateRuleResult & WithRequestId(Aws::String &&value)
CreateRuleResult & WithIdentifier(Aws::String &&value)
CreateRuleResult & WithLockConfiguration(const LockConfiguration &value)
void SetResourceTags(Aws::Vector< ResourceTag > &&value)
CreateRuleResult & WithRuleArn(const Aws::String &value)
void SetResourceType(ResourceType &&value)
const Aws::String & GetIdentifier() const
const Aws::String & GetDescription() const
void SetRetentionPeriod(const RetentionPeriod &value)
void SetStatus(const RuleStatus &value)
AWS_RECYCLEBIN_API CreateRuleResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateRuleResult & WithTags(Aws::Vector< Tag > &&value)
void SetIdentifier(const Aws::String &value)
void SetDescription(const Aws::String &value)
CreateRuleResult & WithDescription(Aws::String &&value)
const Aws::Vector< ResourceTag > & GetResourceTags() const
void SetLockState(const LockState &value)
CreateRuleResult & WithResourceType(ResourceType &&value)
AWS_RECYCLEBIN_API CreateRuleResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetTags(const Aws::Vector< Tag > &value)
CreateRuleResult & WithStatus(const RuleStatus &value)
void SetLockConfiguration(LockConfiguration &&value)
CreateRuleResult & AddTags(const Tag &value)
void SetTags(Aws::Vector< Tag > &&value)
CreateRuleResult & WithResourceType(const ResourceType &value)
void SetResourceTags(const Aws::Vector< ResourceTag > &value)
void SetLockConfiguration(const LockConfiguration &value)
void SetRuleArn(const Aws::String &value)
CreateRuleResult & WithRequestId(const Aws::String &value)
CreateRuleResult & WithLockState(LockState &&value)
const RetentionPeriod & GetRetentionPeriod() const
CreateRuleResult & WithRetentionPeriod(const RetentionPeriod &value)
CreateRuleResult & AddResourceTags(const ResourceTag &value)
CreateRuleResult & AddTags(Tag &&value)
void SetResourceType(const ResourceType &value)
CreateRuleResult & WithRuleArn(Aws::String &&value)
CreateRuleResult & WithResourceTags(Aws::Vector< ResourceTag > &&value)
CreateRuleResult & WithDescription(const Aws::String &value)
CreateRuleResult & WithStatus(RuleStatus &&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