AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = 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 LockRuleResult& WithIdentifier(IdentifierT&& value) { SetIdentifier(std::forward<IdentifierT>(value)); return *this;}
52
54
57 inline const Aws::String& GetDescription() const { return m_description; }
58 template<typename DescriptionT = Aws::String>
59 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
60 template<typename DescriptionT = Aws::String>
61 LockRuleResult& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
63
65
68 inline ResourceType GetResourceType() const { return m_resourceType; }
69 inline void SetResourceType(ResourceType value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
70 inline LockRuleResult& WithResourceType(ResourceType value) { SetResourceType(value); return *this;}
72
74
75 inline const RetentionPeriod& GetRetentionPeriod() const { return m_retentionPeriod; }
76 template<typename RetentionPeriodT = RetentionPeriod>
77 void SetRetentionPeriod(RetentionPeriodT&& value) { m_retentionPeriodHasBeenSet = true; m_retentionPeriod = std::forward<RetentionPeriodT>(value); }
78 template<typename RetentionPeriodT = RetentionPeriod>
79 LockRuleResult& WithRetentionPeriod(RetentionPeriodT&& value) { SetRetentionPeriod(std::forward<RetentionPeriodT>(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 LockRuleResult& WithResourceTags(ResourceTagsT&& value) { SetResourceTags(std::forward<ResourceTagsT>(value)); return *this;}
92 template<typename ResourceTagsT = ResourceTag>
93 LockRuleResult& 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 LockRuleResult& WithStatus(RuleStatus value) { SetStatus(value); return *this;}
105
107
110 inline const LockConfiguration& GetLockConfiguration() const { return m_lockConfiguration; }
111 template<typename LockConfigurationT = LockConfiguration>
112 void SetLockConfiguration(LockConfigurationT&& value) { m_lockConfigurationHasBeenSet = true; m_lockConfiguration = std::forward<LockConfigurationT>(value); }
113 template<typename LockConfigurationT = LockConfiguration>
114 LockRuleResult& WithLockConfiguration(LockConfigurationT&& value) { SetLockConfiguration(std::forward<LockConfigurationT>(value)); return *this;}
116
118
131 inline LockState GetLockState() const { return m_lockState; }
132 inline void SetLockState(LockState value) { m_lockStateHasBeenSet = true; m_lockState = value; }
133 inline LockRuleResult& WithLockState(LockState value) { SetLockState(value); return *this;}
135
137
140 inline const Aws::String& GetRuleArn() const { return m_ruleArn; }
141 template<typename RuleArnT = Aws::String>
142 void SetRuleArn(RuleArnT&& value) { m_ruleArnHasBeenSet = true; m_ruleArn = std::forward<RuleArnT>(value); }
143 template<typename RuleArnT = Aws::String>
144 LockRuleResult& WithRuleArn(RuleArnT&& value) { SetRuleArn(std::forward<RuleArnT>(value)); return *this;}
146
148
153 inline const Aws::Vector<ResourceTag>& GetExcludeResourceTags() const { return m_excludeResourceTags; }
154 template<typename ExcludeResourceTagsT = Aws::Vector<ResourceTag>>
155 void SetExcludeResourceTags(ExcludeResourceTagsT&& value) { m_excludeResourceTagsHasBeenSet = true; m_excludeResourceTags = std::forward<ExcludeResourceTagsT>(value); }
156 template<typename ExcludeResourceTagsT = Aws::Vector<ResourceTag>>
157 LockRuleResult& WithExcludeResourceTags(ExcludeResourceTagsT&& value) { SetExcludeResourceTags(std::forward<ExcludeResourceTagsT>(value)); return *this;}
158 template<typename ExcludeResourceTagsT = ResourceTag>
159 LockRuleResult& AddExcludeResourceTags(ExcludeResourceTagsT&& value) { m_excludeResourceTagsHasBeenSet = true; m_excludeResourceTags.emplace_back(std::forward<ExcludeResourceTagsT>(value)); return *this; }
161
163
164 inline const Aws::String& GetRequestId() const { return m_requestId; }
165 template<typename RequestIdT = Aws::String>
166 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
167 template<typename RequestIdT = Aws::String>
168 LockRuleResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
170 private:
171
172 Aws::String m_identifier;
173 bool m_identifierHasBeenSet = false;
174
175 Aws::String m_description;
176 bool m_descriptionHasBeenSet = false;
177
178 ResourceType m_resourceType{ResourceType::NOT_SET};
179 bool m_resourceTypeHasBeenSet = false;
180
181 RetentionPeriod m_retentionPeriod;
182 bool m_retentionPeriodHasBeenSet = false;
183
184 Aws::Vector<ResourceTag> m_resourceTags;
185 bool m_resourceTagsHasBeenSet = false;
186
188 bool m_statusHasBeenSet = false;
189
190 LockConfiguration m_lockConfiguration;
191 bool m_lockConfigurationHasBeenSet = false;
192
193 LockState m_lockState{LockState::NOT_SET};
194 bool m_lockStateHasBeenSet = false;
195
196 Aws::String m_ruleArn;
197 bool m_ruleArnHasBeenSet = false;
198
199 Aws::Vector<ResourceTag> m_excludeResourceTags;
200 bool m_excludeResourceTagsHasBeenSet = false;
201
202 Aws::String m_requestId;
203 bool m_requestIdHasBeenSet = false;
204 };
205
206} // namespace Model
207} // namespace RecycleBin
208} // namespace Aws
const Aws::Vector< ResourceTag > & GetResourceTags() const
void SetExcludeResourceTags(ExcludeResourceTagsT &&value)
LockRuleResult & WithRequestId(RequestIdT &&value)
const Aws::String & GetRequestId() const
const LockConfiguration & GetLockConfiguration() const
LockRuleResult & WithRuleArn(RuleArnT &&value)
AWS_RECYCLEBIN_API LockRuleResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetRequestId(RequestIdT &&value)
LockRuleResult & WithResourceTags(ResourceTagsT &&value)
const Aws::Vector< ResourceTag > & GetExcludeResourceTags() const
LockRuleResult & WithLockConfiguration(LockConfigurationT &&value)
void SetDescription(DescriptionT &&value)
LockRuleResult & WithDescription(DescriptionT &&value)
void SetRetentionPeriod(RetentionPeriodT &&value)
void SetResourceTags(ResourceTagsT &&value)
LockRuleResult & AddResourceTags(ResourceTagsT &&value)
LockRuleResult & WithLockState(LockState value)
AWS_RECYCLEBIN_API LockRuleResult()=default
LockRuleResult & WithRetentionPeriod(RetentionPeriodT &&value)
void SetIdentifier(IdentifierT &&value)
LockRuleResult & WithIdentifier(IdentifierT &&value)
const RetentionPeriod & GetRetentionPeriod() const
LockRuleResult & WithExcludeResourceTags(ExcludeResourceTagsT &&value)
AWS_RECYCLEBIN_API LockRuleResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
LockRuleResult & WithStatus(RuleStatus value)
LockRuleResult & AddExcludeResourceTags(ExcludeResourceTagsT &&value)
void SetResourceType(ResourceType value)
const Aws::String & GetRuleArn() const
const Aws::String & GetIdentifier() const
const Aws::String & GetDescription() const
void SetLockConfiguration(LockConfigurationT &&value)
LockRuleResult & 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