7#include <aws/rbin/RecycleBin_EXPORTS.h>
8#include <aws/rbin/RecycleBinRequest.h>
9#include <aws/rbin/model/RetentionPeriod.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/rbin/model/ResourceType.h>
13#include <aws/rbin/model/LockConfiguration.h>
14#include <aws/rbin/model/Tag.h>
15#include <aws/rbin/model/ResourceTag.h>
48 template<
typename RetentionPeriodT = RetentionPeriod>
49 void SetRetentionPeriod(RetentionPeriodT&& value) { m_retentionPeriodHasBeenSet =
true; m_retentionPeriod = std::forward<RetentionPeriodT>(value); }
50 template<
typename RetentionPeriodT = RetentionPeriod>
60 template<
typename DescriptionT = Aws::String>
61 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet =
true; m_description = std::forward<DescriptionT>(value); }
62 template<
typename DescriptionT = Aws::String>
72 template<
typename TagsT = Aws::Vector<Tag>>
73 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
74 template<
typename TagsT = Aws::Vector<Tag>>
76 template<
typename TagsT = Tag>
77 CreateRuleRequest&
AddTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags.emplace_back(std::forward<TagsT>(value));
return *
this; }
110 template<
typename ResourceTagsT = Aws::Vector<ResourceTag>>
111 void SetResourceTags(ResourceTagsT&& value) { m_resourceTagsHasBeenSet =
true; m_resourceTags = std::forward<ResourceTagsT>(value); }
112 template<
typename ResourceTagsT = Aws::Vector<ResourceTag>>
114 template<
typename ResourceTagsT = ResourceTag>
115 CreateRuleRequest&
AddResourceTags(ResourceTagsT&& value) { m_resourceTagsHasBeenSet =
true; m_resourceTags.emplace_back(std::forward<ResourceTagsT>(value));
return *
this; }
124 template<
typename LockConfigurationT = LockConfiguration>
125 void SetLockConfiguration(LockConfigurationT&& value) { m_lockConfigurationHasBeenSet =
true; m_lockConfiguration = std::forward<LockConfigurationT>(value); }
126 template<
typename LockConfigurationT = LockConfiguration>
140 template<
typename ExcludeResourceTagsT = Aws::Vector<ResourceTag>>
141 void SetExcludeResourceTags(ExcludeResourceTagsT&& value) { m_excludeResourceTagsHasBeenSet =
true; m_excludeResourceTags = std::forward<ExcludeResourceTagsT>(value); }
142 template<
typename ExcludeResourceTagsT = Aws::Vector<ResourceTag>>
144 template<
typename ExcludeResourceTagsT = ResourceTag>
145 CreateRuleRequest&
AddExcludeResourceTags(ExcludeResourceTagsT&& value) { m_excludeResourceTagsHasBeenSet =
true; m_excludeResourceTags.emplace_back(std::forward<ExcludeResourceTagsT>(value));
return *
this; }
150 bool m_retentionPeriodHasBeenSet =
false;
153 bool m_descriptionHasBeenSet =
false;
156 bool m_tagsHasBeenSet =
false;
159 bool m_resourceTypeHasBeenSet =
false;
162 bool m_resourceTagsHasBeenSet =
false;
164 LockConfiguration m_lockConfiguration;
165 bool m_lockConfigurationHasBeenSet =
false;
168 bool m_excludeResourceTagsHasBeenSet =
false;
CreateRuleRequest & WithResourceTags(ResourceTagsT &&value)
CreateRuleRequest & AddResourceTags(ResourceTagsT &&value)
void SetTags(TagsT &&value)
const Aws::String & GetDescription() const
CreateRuleRequest & AddExcludeResourceTags(ExcludeResourceTagsT &&value)
const Aws::Vector< Tag > & GetTags() const
CreateRuleRequest & WithTags(TagsT &&value)
void SetLockConfiguration(LockConfigurationT &&value)
CreateRuleRequest & WithResourceType(ResourceType value)
const Aws::Vector< ResourceTag > & GetResourceTags() const
CreateRuleRequest & WithExcludeResourceTags(ExcludeResourceTagsT &&value)
CreateRuleRequest & WithLockConfiguration(LockConfigurationT &&value)
bool LockConfigurationHasBeenSet() const
bool ResourceTagsHasBeenSet() const
void SetResourceTags(ResourceTagsT &&value)
void SetRetentionPeriod(RetentionPeriodT &&value)
void SetDescription(DescriptionT &&value)
const RetentionPeriod & GetRetentionPeriod() const
CreateRuleRequest & WithDescription(DescriptionT &&value)
AWS_RECYCLEBIN_API Aws::String SerializePayload() const override
void SetExcludeResourceTags(ExcludeResourceTagsT &&value)
CreateRuleRequest & AddTags(TagsT &&value)
CreateRuleRequest & WithRetentionPeriod(RetentionPeriodT &&value)
const Aws::Vector< ResourceTag > & GetExcludeResourceTags() const
bool ExcludeResourceTagsHasBeenSet() const
bool ResourceTypeHasBeenSet() const
bool DescriptionHasBeenSet() const
void SetResourceType(ResourceType value)
bool RetentionPeriodHasBeenSet() const
ResourceType GetResourceType() const
virtual const char * GetServiceRequestName() const override
const LockConfiguration & GetLockConfiguration() const
bool TagsHasBeenSet() const
AWS_RECYCLEBIN_API CreateRuleRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector