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>
20template<
typename RESULT_TYPE>
21class AmazonWebServiceResult;
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>
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>
76 template<
typename RetentionPeriodT = RetentionPeriod>
77 void SetRetentionPeriod(RetentionPeriodT&& value) { m_retentionPeriodHasBeenSet =
true; m_retentionPeriod = std::forward<RetentionPeriodT>(value); }
78 template<
typename RetentionPeriodT = RetentionPeriod>
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>>
92 template<
typename ResourceTagsT = ResourceTag>
93 LockRuleResult&
AddResourceTags(ResourceTagsT&& value) { m_resourceTagsHasBeenSet =
true; m_resourceTags.emplace_back(std::forward<ResourceTagsT>(value));
return *
this; }
111 template<
typename LockConfigurationT = LockConfiguration>
112 void SetLockConfiguration(LockConfigurationT&& value) { m_lockConfigurationHasBeenSet =
true; m_lockConfiguration = std::forward<LockConfigurationT>(value); }
113 template<
typename LockConfigurationT = LockConfiguration>
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>
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>>
158 template<
typename ExcludeResourceTagsT = ResourceTag>
159 LockRuleResult&
AddExcludeResourceTags(ExcludeResourceTagsT&& value) { m_excludeResourceTagsHasBeenSet =
true; m_excludeResourceTags.emplace_back(std::forward<ExcludeResourceTagsT>(value));
return *
this; }
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>
173 bool m_identifierHasBeenSet =
false;
176 bool m_descriptionHasBeenSet =
false;
179 bool m_resourceTypeHasBeenSet =
false;
181 RetentionPeriod m_retentionPeriod;
182 bool m_retentionPeriodHasBeenSet =
false;
185 bool m_resourceTagsHasBeenSet =
false;
188 bool m_statusHasBeenSet =
false;
190 LockConfiguration m_lockConfiguration;
191 bool m_lockConfigurationHasBeenSet =
false;
194 bool m_lockStateHasBeenSet =
false;
197 bool m_ruleArnHasBeenSet =
false;
200 bool m_excludeResourceTagsHasBeenSet =
false;
203 bool m_requestIdHasBeenSet =
false;
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)
LockState GetLockState() const
LockRuleResult & WithLockState(LockState value)
AWS_RECYCLEBIN_API LockRuleResult()=default
LockRuleResult & WithRetentionPeriod(RetentionPeriodT &&value)
RuleStatus GetStatus() const
ResourceType GetResourceType() const
void SetIdentifier(IdentifierT &&value)
void SetLockState(LockState value)
LockRuleResult & WithIdentifier(IdentifierT &&value)
const RetentionPeriod & GetRetentionPeriod() const
void SetStatus(RuleStatus value)
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
void SetRuleArn(RuleArnT &&value)
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