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>
21template<
typename RESULT_TYPE>
22class AmazonWebServiceResult;
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>
57 template<
typename RetentionPeriodT = RetentionPeriod>
58 void SetRetentionPeriod(RetentionPeriodT&& value) { m_retentionPeriodHasBeenSet =
true; m_retentionPeriod = std::forward<RetentionPeriodT>(value); }
59 template<
typename RetentionPeriodT = RetentionPeriod>
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>
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>>
83 template<
typename TagsT = Tag>
84 CreateRuleResult&
AddTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags.emplace_back(std::forward<TagsT>(value));
return *
this; }
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>>
106 template<
typename ResourceTagsT = ResourceTag>
107 CreateRuleResult&
AddResourceTags(ResourceTagsT&& value) { m_resourceTagsHasBeenSet =
true; m_resourceTags.emplace_back(std::forward<ResourceTagsT>(value));
return *
this; }
125 template<
typename LockConfigurationT = LockConfiguration>
126 void SetLockConfiguration(LockConfigurationT&& value) { m_lockConfigurationHasBeenSet =
true; m_lockConfiguration = std::forward<LockConfigurationT>(value); }
127 template<
typename LockConfigurationT = LockConfiguration>
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>
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>>
172 template<
typename ExcludeResourceTagsT = ResourceTag>
173 CreateRuleResult&
AddExcludeResourceTags(ExcludeResourceTagsT&& value) { m_excludeResourceTagsHasBeenSet =
true; m_excludeResourceTags.emplace_back(std::forward<ExcludeResourceTagsT>(value));
return *
this; }
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>
187 bool m_identifierHasBeenSet =
false;
190 bool m_retentionPeriodHasBeenSet =
false;
193 bool m_descriptionHasBeenSet =
false;
196 bool m_tagsHasBeenSet =
false;
199 bool m_resourceTypeHasBeenSet =
false;
202 bool m_resourceTagsHasBeenSet =
false;
205 bool m_statusHasBeenSet =
false;
207 LockConfiguration m_lockConfiguration;
208 bool m_lockConfigurationHasBeenSet =
false;
211 bool m_lockStateHasBeenSet =
false;
214 bool m_ruleArnHasBeenSet =
false;
217 bool m_excludeResourceTagsHasBeenSet =
false;
220 bool m_requestIdHasBeenSet =
false;
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
void SetStatus(RuleStatus value)
const Aws::String & GetRuleArn() const
LockState GetLockState() 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)
void SetIdentifier(IdentifierT &&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 SetTags(TagsT &&value)
void SetResourceTags(ResourceTagsT &&value)
ResourceType GetResourceType() const
CreateRuleResult & WithResourceTags(ResourceTagsT &&value)
CreateRuleResult & WithDescription(DescriptionT &&value)
void SetLockState(LockState value)
const Aws::Vector< ResourceTag > & GetExcludeResourceTags() const
CreateRuleResult & WithRequestId(RequestIdT &&value)
const RetentionPeriod & GetRetentionPeriod() const
CreateRuleResult & AddTags(TagsT &&value)
void SetRuleArn(RuleArnT &&value)
CreateRuleResult & WithExcludeResourceTags(ExcludeResourceTagsT &&value)
RuleStatus GetStatus() const
CreateRuleResult & WithResourceType(ResourceType value)
void SetRequestId(RequestIdT &&value)
void SetResourceType(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