AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
40
41
43
46 inline const Aws::String& GetIdentifier() const { return m_identifier; }
47 template<typename IdentifierT = Aws::String>
48 void SetIdentifier(IdentifierT&& value) { m_identifierHasBeenSet = true; m_identifier = std::forward<IdentifierT>(value); }
49 template<typename IdentifierT = Aws::String>
50 UpdateRuleResult& WithIdentifier(IdentifierT&& value) { SetIdentifier(std::forward<IdentifierT>(value)); return *this;}
52
54
55 inline const RetentionPeriod& GetRetentionPeriod() const { return m_retentionPeriod; }
56 template<typename RetentionPeriodT = RetentionPeriod>
57 void SetRetentionPeriod(RetentionPeriodT&& value) { m_retentionPeriodHasBeenSet = true; m_retentionPeriod = std::forward<RetentionPeriodT>(value); }
58 template<typename RetentionPeriodT = RetentionPeriod>
59 UpdateRuleResult& WithRetentionPeriod(RetentionPeriodT&& value) { SetRetentionPeriod(std::forward<RetentionPeriodT>(value)); return *this;}
61
63
66 inline const Aws::String& GetDescription() const { return m_description; }
67 template<typename DescriptionT = Aws::String>
68 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
69 template<typename DescriptionT = Aws::String>
70 UpdateRuleResult& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
72
74
77 inline ResourceType GetResourceType() const { return m_resourceType; }
78 inline void SetResourceType(ResourceType value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
79 inline UpdateRuleResult& WithResourceType(ResourceType value) { SetResourceType(value); return *this;}
81
83
87 inline const Aws::Vector<ResourceTag>& GetResourceTags() const { return m_resourceTags; }
88 template<typename ResourceTagsT = Aws::Vector<ResourceTag>>
89 void SetResourceTags(ResourceTagsT&& value) { m_resourceTagsHasBeenSet = true; m_resourceTags = std::forward<ResourceTagsT>(value); }
90 template<typename ResourceTagsT = Aws::Vector<ResourceTag>>
91 UpdateRuleResult& WithResourceTags(ResourceTagsT&& value) { SetResourceTags(std::forward<ResourceTagsT>(value)); return *this;}
92 template<typename ResourceTagsT = ResourceTag>
93 UpdateRuleResult& AddResourceTags(ResourceTagsT&& value) { m_resourceTagsHasBeenSet = true; m_resourceTags.emplace_back(std::forward<ResourceTagsT>(value)); return *this; }
95
97
101 inline RuleStatus GetStatus() const { return m_status; }
102 inline void SetStatus(RuleStatus value) { m_statusHasBeenSet = true; m_status = value; }
103 inline UpdateRuleResult& WithStatus(RuleStatus value) { SetStatus(value); return *this;}
105
107
120 inline LockState GetLockState() const { return m_lockState; }
121 inline void SetLockState(LockState value) { m_lockStateHasBeenSet = true; m_lockState = value; }
122 inline UpdateRuleResult& WithLockState(LockState value) { SetLockState(value); return *this;}
124
126
131 inline const Aws::Utils::DateTime& GetLockEndTime() const { return m_lockEndTime; }
132 template<typename LockEndTimeT = Aws::Utils::DateTime>
133 void SetLockEndTime(LockEndTimeT&& value) { m_lockEndTimeHasBeenSet = true; m_lockEndTime = std::forward<LockEndTimeT>(value); }
134 template<typename LockEndTimeT = Aws::Utils::DateTime>
135 UpdateRuleResult& WithLockEndTime(LockEndTimeT&& value) { SetLockEndTime(std::forward<LockEndTimeT>(value)); return *this;}
137
139
142 inline const Aws::String& GetRuleArn() const { return m_ruleArn; }
143 template<typename RuleArnT = Aws::String>
144 void SetRuleArn(RuleArnT&& value) { m_ruleArnHasBeenSet = true; m_ruleArn = std::forward<RuleArnT>(value); }
145 template<typename RuleArnT = Aws::String>
146 UpdateRuleResult& WithRuleArn(RuleArnT&& value) { SetRuleArn(std::forward<RuleArnT>(value)); return *this;}
148
150
155 inline const Aws::Vector<ResourceTag>& GetExcludeResourceTags() const { return m_excludeResourceTags; }
156 template<typename ExcludeResourceTagsT = Aws::Vector<ResourceTag>>
157 void SetExcludeResourceTags(ExcludeResourceTagsT&& value) { m_excludeResourceTagsHasBeenSet = true; m_excludeResourceTags = std::forward<ExcludeResourceTagsT>(value); }
158 template<typename ExcludeResourceTagsT = Aws::Vector<ResourceTag>>
159 UpdateRuleResult& WithExcludeResourceTags(ExcludeResourceTagsT&& value) { SetExcludeResourceTags(std::forward<ExcludeResourceTagsT>(value)); return *this;}
160 template<typename ExcludeResourceTagsT = ResourceTag>
161 UpdateRuleResult& AddExcludeResourceTags(ExcludeResourceTagsT&& value) { m_excludeResourceTagsHasBeenSet = true; m_excludeResourceTags.emplace_back(std::forward<ExcludeResourceTagsT>(value)); return *this; }
163
165
166 inline const Aws::String& GetRequestId() const { return m_requestId; }
167 template<typename RequestIdT = Aws::String>
168 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
169 template<typename RequestIdT = Aws::String>
170 UpdateRuleResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
172 private:
173
174 Aws::String m_identifier;
175 bool m_identifierHasBeenSet = false;
176
177 RetentionPeriod m_retentionPeriod;
178 bool m_retentionPeriodHasBeenSet = false;
179
180 Aws::String m_description;
181 bool m_descriptionHasBeenSet = false;
182
183 ResourceType m_resourceType{ResourceType::NOT_SET};
184 bool m_resourceTypeHasBeenSet = false;
185
186 Aws::Vector<ResourceTag> m_resourceTags;
187 bool m_resourceTagsHasBeenSet = false;
188
190 bool m_statusHasBeenSet = false;
191
192 LockState m_lockState{LockState::NOT_SET};
193 bool m_lockStateHasBeenSet = false;
194
195 Aws::Utils::DateTime m_lockEndTime{};
196 bool m_lockEndTimeHasBeenSet = false;
197
198 Aws::String m_ruleArn;
199 bool m_ruleArnHasBeenSet = false;
200
201 Aws::Vector<ResourceTag> m_excludeResourceTags;
202 bool m_excludeResourceTagsHasBeenSet = false;
203
204 Aws::String m_requestId;
205 bool m_requestIdHasBeenSet = false;
206 };
207
208} // namespace Model
209} // namespace RecycleBin
210} // namespace Aws
void SetRetentionPeriod(RetentionPeriodT &&value)
const RetentionPeriod & GetRetentionPeriod() const
const Aws::String & GetDescription() const
AWS_RECYCLEBIN_API UpdateRuleResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdateRuleResult & WithLockState(LockState value)
UpdateRuleResult & WithDescription(DescriptionT &&value)
AWS_RECYCLEBIN_API UpdateRuleResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::String & GetIdentifier() const
AWS_RECYCLEBIN_API UpdateRuleResult()=default
void SetResourceTags(ResourceTagsT &&value)
UpdateRuleResult & WithRuleArn(RuleArnT &&value)
UpdateRuleResult & WithStatus(RuleStatus value)
UpdateRuleResult & WithExcludeResourceTags(ExcludeResourceTagsT &&value)
void SetDescription(DescriptionT &&value)
const Aws::Vector< ResourceTag > & GetExcludeResourceTags() const
UpdateRuleResult & WithResourceType(ResourceType value)
UpdateRuleResult & WithIdentifier(IdentifierT &&value)
UpdateRuleResult & WithRequestId(RequestIdT &&value)
void SetLockEndTime(LockEndTimeT &&value)
UpdateRuleResult & WithLockEndTime(LockEndTimeT &&value)
void SetExcludeResourceTags(ExcludeResourceTagsT &&value)
const Aws::String & GetRequestId() const
UpdateRuleResult & WithResourceTags(ResourceTagsT &&value)
UpdateRuleResult & AddResourceTags(ResourceTagsT &&value)
const Aws::Vector< ResourceTag > & GetResourceTags() const
const Aws::Utils::DateTime & GetLockEndTime() const
UpdateRuleResult & AddExcludeResourceTags(ExcludeResourceTagsT &&value)
UpdateRuleResult & WithRetentionPeriod(RetentionPeriodT &&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