AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateRuleRequest.h
1
6#pragma once
7#include <aws/rbin/RecycleBin_EXPORTS.h>
8#include <aws/rbin/RecycleBinRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/rbin/model/RetentionPeriod.h>
11#include <aws/rbin/model/ResourceType.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/rbin/model/ResourceTag.h>
14#include <utility>
15
16namespace Aws
17{
18namespace RecycleBin
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_RECYCLEBIN_API UpdateRuleRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "UpdateRule"; }
35
36 AWS_RECYCLEBIN_API Aws::String SerializePayload() const override;
37
38
40
43 inline const Aws::String& GetIdentifier() const { return m_identifier; }
44 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
45 template<typename IdentifierT = Aws::String>
46 void SetIdentifier(IdentifierT&& value) { m_identifierHasBeenSet = true; m_identifier = std::forward<IdentifierT>(value); }
47 template<typename IdentifierT = Aws::String>
48 UpdateRuleRequest& WithIdentifier(IdentifierT&& value) { SetIdentifier(std::forward<IdentifierT>(value)); return *this;}
50
52
56 inline const RetentionPeriod& GetRetentionPeriod() const { return m_retentionPeriod; }
57 inline bool RetentionPeriodHasBeenSet() const { return m_retentionPeriodHasBeenSet; }
58 template<typename RetentionPeriodT = RetentionPeriod>
59 void SetRetentionPeriod(RetentionPeriodT&& value) { m_retentionPeriodHasBeenSet = true; m_retentionPeriod = std::forward<RetentionPeriodT>(value); }
60 template<typename RetentionPeriodT = RetentionPeriod>
61 UpdateRuleRequest& WithRetentionPeriod(RetentionPeriodT&& value) { SetRetentionPeriod(std::forward<RetentionPeriodT>(value)); return *this;}
63
65
68 inline const Aws::String& GetDescription() const { return m_description; }
69 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
70 template<typename DescriptionT = Aws::String>
71 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
72 template<typename DescriptionT = Aws::String>
73 UpdateRuleRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
75
77
81 inline ResourceType GetResourceType() const { return m_resourceType; }
82 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
83 inline void SetResourceType(ResourceType value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
84 inline UpdateRuleRequest& WithResourceType(ResourceType value) { SetResourceType(value); return *this;}
86
88
102 inline const Aws::Vector<ResourceTag>& GetResourceTags() const { return m_resourceTags; }
103 inline bool ResourceTagsHasBeenSet() const { return m_resourceTagsHasBeenSet; }
104 template<typename ResourceTagsT = Aws::Vector<ResourceTag>>
105 void SetResourceTags(ResourceTagsT&& value) { m_resourceTagsHasBeenSet = true; m_resourceTags = std::forward<ResourceTagsT>(value); }
106 template<typename ResourceTagsT = Aws::Vector<ResourceTag>>
107 UpdateRuleRequest& WithResourceTags(ResourceTagsT&& value) { SetResourceTags(std::forward<ResourceTagsT>(value)); return *this;}
108 template<typename ResourceTagsT = ResourceTag>
109 UpdateRuleRequest& AddResourceTags(ResourceTagsT&& value) { m_resourceTagsHasBeenSet = true; m_resourceTags.emplace_back(std::forward<ResourceTagsT>(value)); return *this; }
111
113
120 inline const Aws::Vector<ResourceTag>& GetExcludeResourceTags() const { return m_excludeResourceTags; }
121 inline bool ExcludeResourceTagsHasBeenSet() const { return m_excludeResourceTagsHasBeenSet; }
122 template<typename ExcludeResourceTagsT = Aws::Vector<ResourceTag>>
123 void SetExcludeResourceTags(ExcludeResourceTagsT&& value) { m_excludeResourceTagsHasBeenSet = true; m_excludeResourceTags = std::forward<ExcludeResourceTagsT>(value); }
124 template<typename ExcludeResourceTagsT = Aws::Vector<ResourceTag>>
125 UpdateRuleRequest& WithExcludeResourceTags(ExcludeResourceTagsT&& value) { SetExcludeResourceTags(std::forward<ExcludeResourceTagsT>(value)); return *this;}
126 template<typename ExcludeResourceTagsT = ResourceTag>
127 UpdateRuleRequest& AddExcludeResourceTags(ExcludeResourceTagsT&& value) { m_excludeResourceTagsHasBeenSet = true; m_excludeResourceTags.emplace_back(std::forward<ExcludeResourceTagsT>(value)); return *this; }
129 private:
130
131 Aws::String m_identifier;
132 bool m_identifierHasBeenSet = false;
133
134 RetentionPeriod m_retentionPeriod;
135 bool m_retentionPeriodHasBeenSet = false;
136
137 Aws::String m_description;
138 bool m_descriptionHasBeenSet = false;
139
140 ResourceType m_resourceType{ResourceType::NOT_SET};
141 bool m_resourceTypeHasBeenSet = false;
142
143 Aws::Vector<ResourceTag> m_resourceTags;
144 bool m_resourceTagsHasBeenSet = false;
145
146 Aws::Vector<ResourceTag> m_excludeResourceTags;
147 bool m_excludeResourceTagsHasBeenSet = false;
148 };
149
150} // namespace Model
151} // namespace RecycleBin
152} // namespace Aws
UpdateRuleRequest & WithRetentionPeriod(RetentionPeriodT &&value)
AWS_RECYCLEBIN_API UpdateRuleRequest()=default
const Aws::Vector< ResourceTag > & GetExcludeResourceTags() const
UpdateRuleRequest & WithResourceType(ResourceType value)
const RetentionPeriod & GetRetentionPeriod() const
void SetRetentionPeriod(RetentionPeriodT &&value)
const Aws::String & GetIdentifier() const
UpdateRuleRequest & WithExcludeResourceTags(ExcludeResourceTagsT &&value)
UpdateRuleRequest & WithIdentifier(IdentifierT &&value)
AWS_RECYCLEBIN_API Aws::String SerializePayload() const override
UpdateRuleRequest & WithDescription(DescriptionT &&value)
const Aws::String & GetDescription() const
virtual const char * GetServiceRequestName() const override
void SetExcludeResourceTags(ExcludeResourceTagsT &&value)
UpdateRuleRequest & AddExcludeResourceTags(ExcludeResourceTagsT &&value)
void SetResourceTags(ResourceTagsT &&value)
UpdateRuleRequest & AddResourceTags(ResourceTagsT &&value)
const Aws::Vector< ResourceTag > & GetResourceTags() const
UpdateRuleRequest & WithResourceTags(ResourceTagsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector