AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetIdentifier(const Aws::String& value) { m_identifierHasBeenSet = true; m_identifier = value; }
46 inline void SetIdentifier(Aws::String&& value) { m_identifierHasBeenSet = true; m_identifier = std::move(value); }
47 inline void SetIdentifier(const char* value) { m_identifierHasBeenSet = true; m_identifier.assign(value); }
48 inline UpdateRuleRequest& WithIdentifier(const Aws::String& value) { SetIdentifier(value); return *this;}
49 inline UpdateRuleRequest& WithIdentifier(Aws::String&& value) { SetIdentifier(std::move(value)); return *this;}
50 inline UpdateRuleRequest& WithIdentifier(const char* value) { SetIdentifier(value); return *this;}
52
54
58 inline const RetentionPeriod& GetRetentionPeriod() const{ return m_retentionPeriod; }
59 inline bool RetentionPeriodHasBeenSet() const { return m_retentionPeriodHasBeenSet; }
60 inline void SetRetentionPeriod(const RetentionPeriod& value) { m_retentionPeriodHasBeenSet = true; m_retentionPeriod = value; }
61 inline void SetRetentionPeriod(RetentionPeriod&& value) { m_retentionPeriodHasBeenSet = true; m_retentionPeriod = std::move(value); }
62 inline UpdateRuleRequest& WithRetentionPeriod(const RetentionPeriod& value) { SetRetentionPeriod(value); return *this;}
63 inline UpdateRuleRequest& WithRetentionPeriod(RetentionPeriod&& value) { SetRetentionPeriod(std::move(value)); return *this;}
65
67
70 inline const Aws::String& GetDescription() const{ return m_description; }
71 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
72 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
73 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
74 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
75 inline UpdateRuleRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
76 inline UpdateRuleRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
77 inline UpdateRuleRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
79
81
85 inline const ResourceType& GetResourceType() const{ return m_resourceType; }
86 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
87 inline void SetResourceType(const ResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
88 inline void SetResourceType(ResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
89 inline UpdateRuleRequest& WithResourceType(const ResourceType& value) { SetResourceType(value); return *this;}
90 inline UpdateRuleRequest& WithResourceType(ResourceType&& value) { SetResourceType(std::move(value)); return *this;}
92
94
107 inline const Aws::Vector<ResourceTag>& GetResourceTags() const{ return m_resourceTags; }
108 inline bool ResourceTagsHasBeenSet() const { return m_resourceTagsHasBeenSet; }
109 inline void SetResourceTags(const Aws::Vector<ResourceTag>& value) { m_resourceTagsHasBeenSet = true; m_resourceTags = value; }
110 inline void SetResourceTags(Aws::Vector<ResourceTag>&& value) { m_resourceTagsHasBeenSet = true; m_resourceTags = std::move(value); }
111 inline UpdateRuleRequest& WithResourceTags(const Aws::Vector<ResourceTag>& value) { SetResourceTags(value); return *this;}
112 inline UpdateRuleRequest& WithResourceTags(Aws::Vector<ResourceTag>&& value) { SetResourceTags(std::move(value)); return *this;}
113 inline UpdateRuleRequest& AddResourceTags(const ResourceTag& value) { m_resourceTagsHasBeenSet = true; m_resourceTags.push_back(value); return *this; }
114 inline UpdateRuleRequest& AddResourceTags(ResourceTag&& value) { m_resourceTagsHasBeenSet = true; m_resourceTags.push_back(std::move(value)); return *this; }
116 private:
117
118 Aws::String m_identifier;
119 bool m_identifierHasBeenSet = false;
120
121 RetentionPeriod m_retentionPeriod;
122 bool m_retentionPeriodHasBeenSet = false;
123
124 Aws::String m_description;
125 bool m_descriptionHasBeenSet = false;
126
127 ResourceType m_resourceType;
128 bool m_resourceTypeHasBeenSet = false;
129
130 Aws::Vector<ResourceTag> m_resourceTags;
131 bool m_resourceTagsHasBeenSet = false;
132 };
133
134} // namespace Model
135} // namespace RecycleBin
136} // namespace Aws
const ResourceType & GetResourceType() const
void SetIdentifier(const Aws::String &value)
void SetResourceType(const ResourceType &value)
UpdateRuleRequest & WithResourceType(ResourceType &&value)
UpdateRuleRequest & AddResourceTags(ResourceTag &&value)
void SetRetentionPeriod(const RetentionPeriod &value)
UpdateRuleRequest & WithIdentifier(const char *value)
UpdateRuleRequest & WithDescription(Aws::String &&value)
UpdateRuleRequest & WithResourceTags(const Aws::Vector< ResourceTag > &value)
UpdateRuleRequest & WithResourceType(const ResourceType &value)
UpdateRuleRequest & AddResourceTags(const ResourceTag &value)
UpdateRuleRequest & WithRetentionPeriod(RetentionPeriod &&value)
void SetDescription(const Aws::String &value)
const RetentionPeriod & GetRetentionPeriod() const
const Aws::String & GetIdentifier() const
void SetResourceTags(const Aws::Vector< ResourceTag > &value)
AWS_RECYCLEBIN_API Aws::String SerializePayload() const override
UpdateRuleRequest & WithIdentifier(const Aws::String &value)
UpdateRuleRequest & WithIdentifier(Aws::String &&value)
const Aws::String & GetDescription() const
virtual const char * GetServiceRequestName() const override
UpdateRuleRequest & WithDescription(const char *value)
const Aws::Vector< ResourceTag > & GetResourceTags() const
void SetResourceTags(Aws::Vector< ResourceTag > &&value)
UpdateRuleRequest & WithRetentionPeriod(const RetentionPeriod &value)
UpdateRuleRequest & WithDescription(const Aws::String &value)
UpdateRuleRequest & WithResourceTags(Aws::Vector< ResourceTag > &&value)
void SetRetentionPeriod(RetentionPeriod &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector