AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = 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 CreateRuleResult& WithIdentifier(IdentifierT&& value) { SetIdentifier(std::forward<IdentifierT>(value)); return *this;}
53
55
56 inline const RetentionPeriod& GetRetentionPeriod() const { return m_retentionPeriod; }
57 template<typename RetentionPeriodT = RetentionPeriod>
58 void SetRetentionPeriod(RetentionPeriodT&& value) { m_retentionPeriodHasBeenSet = true; m_retentionPeriod = std::forward<RetentionPeriodT>(value); }
59 template<typename RetentionPeriodT = RetentionPeriod>
60 CreateRuleResult& WithRetentionPeriod(RetentionPeriodT&& value) { SetRetentionPeriod(std::forward<RetentionPeriodT>(value)); return *this;}
62
64
67 inline const Aws::String& GetDescription() const { return m_description; }
68 template<typename DescriptionT = Aws::String>
69 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
70 template<typename DescriptionT = Aws::String>
71 CreateRuleResult& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
73
75
78 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
79 template<typename TagsT = Aws::Vector<Tag>>
80 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
81 template<typename TagsT = Aws::Vector<Tag>>
82 CreateRuleResult& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
83 template<typename TagsT = Tag>
84 CreateRuleResult& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
86
88
91 inline ResourceType GetResourceType() const { return m_resourceType; }
92 inline void SetResourceType(ResourceType value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
93 inline CreateRuleResult& WithResourceType(ResourceType value) { SetResourceType(value); return *this;}
95
97
101 inline const Aws::Vector<ResourceTag>& GetResourceTags() const { return m_resourceTags; }
102 template<typename ResourceTagsT = Aws::Vector<ResourceTag>>
103 void SetResourceTags(ResourceTagsT&& value) { m_resourceTagsHasBeenSet = true; m_resourceTags = std::forward<ResourceTagsT>(value); }
104 template<typename ResourceTagsT = Aws::Vector<ResourceTag>>
105 CreateRuleResult& WithResourceTags(ResourceTagsT&& value) { SetResourceTags(std::forward<ResourceTagsT>(value)); return *this;}
106 template<typename ResourceTagsT = ResourceTag>
107 CreateRuleResult& AddResourceTags(ResourceTagsT&& value) { m_resourceTagsHasBeenSet = true; m_resourceTags.emplace_back(std::forward<ResourceTagsT>(value)); return *this; }
109
111
115 inline RuleStatus GetStatus() const { return m_status; }
116 inline void SetStatus(RuleStatus value) { m_statusHasBeenSet = true; m_status = value; }
117 inline CreateRuleResult& WithStatus(RuleStatus value) { SetStatus(value); return *this;}
119
121
124 inline const LockConfiguration& GetLockConfiguration() const { return m_lockConfiguration; }
125 template<typename LockConfigurationT = LockConfiguration>
126 void SetLockConfiguration(LockConfigurationT&& value) { m_lockConfigurationHasBeenSet = true; m_lockConfiguration = std::forward<LockConfigurationT>(value); }
127 template<typename LockConfigurationT = LockConfiguration>
128 CreateRuleResult& WithLockConfiguration(LockConfigurationT&& value) { SetLockConfiguration(std::forward<LockConfigurationT>(value)); return *this;}
130
132
145 inline LockState GetLockState() const { return m_lockState; }
146 inline void SetLockState(LockState value) { m_lockStateHasBeenSet = true; m_lockState = value; }
147 inline CreateRuleResult& WithLockState(LockState value) { SetLockState(value); return *this;}
149
151
154 inline const Aws::String& GetRuleArn() const { return m_ruleArn; }
155 template<typename RuleArnT = Aws::String>
156 void SetRuleArn(RuleArnT&& value) { m_ruleArnHasBeenSet = true; m_ruleArn = std::forward<RuleArnT>(value); }
157 template<typename RuleArnT = Aws::String>
158 CreateRuleResult& WithRuleArn(RuleArnT&& value) { SetRuleArn(std::forward<RuleArnT>(value)); return *this;}
160
162
167 inline const Aws::Vector<ResourceTag>& GetExcludeResourceTags() const { return m_excludeResourceTags; }
168 template<typename ExcludeResourceTagsT = Aws::Vector<ResourceTag>>
169 void SetExcludeResourceTags(ExcludeResourceTagsT&& value) { m_excludeResourceTagsHasBeenSet = true; m_excludeResourceTags = std::forward<ExcludeResourceTagsT>(value); }
170 template<typename ExcludeResourceTagsT = Aws::Vector<ResourceTag>>
171 CreateRuleResult& WithExcludeResourceTags(ExcludeResourceTagsT&& value) { SetExcludeResourceTags(std::forward<ExcludeResourceTagsT>(value)); return *this;}
172 template<typename ExcludeResourceTagsT = ResourceTag>
173 CreateRuleResult& AddExcludeResourceTags(ExcludeResourceTagsT&& value) { m_excludeResourceTagsHasBeenSet = true; m_excludeResourceTags.emplace_back(std::forward<ExcludeResourceTagsT>(value)); return *this; }
175
177
178 inline const Aws::String& GetRequestId() const { return m_requestId; }
179 template<typename RequestIdT = Aws::String>
180 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
181 template<typename RequestIdT = Aws::String>
182 CreateRuleResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
184 private:
185
186 Aws::String m_identifier;
187 bool m_identifierHasBeenSet = false;
188
189 RetentionPeriod m_retentionPeriod;
190 bool m_retentionPeriodHasBeenSet = false;
191
192 Aws::String m_description;
193 bool m_descriptionHasBeenSet = false;
194
195 Aws::Vector<Tag> m_tags;
196 bool m_tagsHasBeenSet = false;
197
198 ResourceType m_resourceType{ResourceType::NOT_SET};
199 bool m_resourceTypeHasBeenSet = 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::String m_ruleArn;
214 bool m_ruleArnHasBeenSet = false;
215
216 Aws::Vector<ResourceTag> m_excludeResourceTags;
217 bool m_excludeResourceTagsHasBeenSet = false;
218
219 Aws::String m_requestId;
220 bool m_requestIdHasBeenSet = false;
221 };
222
223} // namespace Model
224} // namespace RecycleBin
225} // namespace Aws
CreateRuleResult & WithRuleArn(RuleArnT &&value)
CreateRuleResult & AddExcludeResourceTags(ExcludeResourceTagsT &&value)
const Aws::String & GetRequestId() const
void SetExcludeResourceTags(ExcludeResourceTagsT &&value)
CreateRuleResult & WithTags(TagsT &&value)
void SetRetentionPeriod(RetentionPeriodT &&value)
const LockConfiguration & GetLockConfiguration() const
const Aws::Vector< Tag > & GetTags() const
AWS_RECYCLEBIN_API CreateRuleResult()=default
CreateRuleResult & WithRetentionPeriod(RetentionPeriodT &&value)
const Aws::String & GetIdentifier() const
const Aws::String & GetDescription() const
AWS_RECYCLEBIN_API CreateRuleResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateRuleResult & WithIdentifier(IdentifierT &&value)
CreateRuleResult & WithStatus(RuleStatus value)
CreateRuleResult & AddResourceTags(ResourceTagsT &&value)
const Aws::Vector< ResourceTag > & GetResourceTags() const
void SetLockConfiguration(LockConfigurationT &&value)
void SetDescription(DescriptionT &&value)
CreateRuleResult & WithLockState(LockState value)
CreateRuleResult & WithLockConfiguration(LockConfigurationT &&value)
AWS_RECYCLEBIN_API CreateRuleResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetResourceTags(ResourceTagsT &&value)
CreateRuleResult & WithResourceTags(ResourceTagsT &&value)
CreateRuleResult & WithDescription(DescriptionT &&value)
const Aws::Vector< ResourceTag > & GetExcludeResourceTags() const
CreateRuleResult & WithRequestId(RequestIdT &&value)
const RetentionPeriod & GetRetentionPeriod() const
CreateRuleResult & AddTags(TagsT &&value)
CreateRuleResult & WithExcludeResourceTags(ExcludeResourceTagsT &&value)
CreateRuleResult & WithResourceType(ResourceType 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