AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateRuleRequest.h
1
6#pragma once
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>
16#include <utility>
17
18namespace Aws
19{
20namespace RecycleBin
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_RECYCLEBIN_API CreateRuleRequest();
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "CreateRule"; }
37
38 AWS_RECYCLEBIN_API Aws::String SerializePayload() const override;
39
40
42
46 inline const RetentionPeriod& GetRetentionPeriod() const{ return m_retentionPeriod; }
47 inline bool RetentionPeriodHasBeenSet() const { return m_retentionPeriodHasBeenSet; }
48 inline void SetRetentionPeriod(const RetentionPeriod& value) { m_retentionPeriodHasBeenSet = true; m_retentionPeriod = value; }
49 inline void SetRetentionPeriod(RetentionPeriod&& value) { m_retentionPeriodHasBeenSet = true; m_retentionPeriod = std::move(value); }
50 inline CreateRuleRequest& WithRetentionPeriod(const RetentionPeriod& value) { SetRetentionPeriod(value); return *this;}
51 inline CreateRuleRequest& WithRetentionPeriod(RetentionPeriod&& value) { SetRetentionPeriod(std::move(value)); return *this;}
53
55
58 inline const Aws::String& GetDescription() const{ return m_description; }
59 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
60 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
61 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
62 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
63 inline CreateRuleRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
64 inline CreateRuleRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
65 inline CreateRuleRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
67
69
72 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
73 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
74 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
75 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
76 inline CreateRuleRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
77 inline CreateRuleRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
78 inline CreateRuleRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
79 inline CreateRuleRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
81
83
89 inline const ResourceType& GetResourceType() const{ return m_resourceType; }
90 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
91 inline void SetResourceType(const ResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
92 inline void SetResourceType(ResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
93 inline CreateRuleRequest& WithResourceType(const ResourceType& value) { SetResourceType(value); return *this;}
94 inline CreateRuleRequest& WithResourceType(ResourceType&& value) { SetResourceType(std::move(value)); return *this;}
96
98
111 inline const Aws::Vector<ResourceTag>& GetResourceTags() const{ return m_resourceTags; }
112 inline bool ResourceTagsHasBeenSet() const { return m_resourceTagsHasBeenSet; }
113 inline void SetResourceTags(const Aws::Vector<ResourceTag>& value) { m_resourceTagsHasBeenSet = true; m_resourceTags = value; }
114 inline void SetResourceTags(Aws::Vector<ResourceTag>&& value) { m_resourceTagsHasBeenSet = true; m_resourceTags = std::move(value); }
115 inline CreateRuleRequest& WithResourceTags(const Aws::Vector<ResourceTag>& value) { SetResourceTags(value); return *this;}
116 inline CreateRuleRequest& WithResourceTags(Aws::Vector<ResourceTag>&& value) { SetResourceTags(std::move(value)); return *this;}
117 inline CreateRuleRequest& AddResourceTags(const ResourceTag& value) { m_resourceTagsHasBeenSet = true; m_resourceTags.push_back(value); return *this; }
118 inline CreateRuleRequest& AddResourceTags(ResourceTag&& value) { m_resourceTagsHasBeenSet = true; m_resourceTags.push_back(std::move(value)); return *this; }
120
122
125 inline const LockConfiguration& GetLockConfiguration() const{ return m_lockConfiguration; }
126 inline bool LockConfigurationHasBeenSet() const { return m_lockConfigurationHasBeenSet; }
127 inline void SetLockConfiguration(const LockConfiguration& value) { m_lockConfigurationHasBeenSet = true; m_lockConfiguration = value; }
128 inline void SetLockConfiguration(LockConfiguration&& value) { m_lockConfigurationHasBeenSet = true; m_lockConfiguration = std::move(value); }
130 inline CreateRuleRequest& WithLockConfiguration(LockConfiguration&& value) { SetLockConfiguration(std::move(value)); return *this;}
132 private:
133
134 RetentionPeriod m_retentionPeriod;
135 bool m_retentionPeriodHasBeenSet = false;
136
137 Aws::String m_description;
138 bool m_descriptionHasBeenSet = false;
139
140 Aws::Vector<Tag> m_tags;
141 bool m_tagsHasBeenSet = false;
142
143 ResourceType m_resourceType;
144 bool m_resourceTypeHasBeenSet = false;
145
146 Aws::Vector<ResourceTag> m_resourceTags;
147 bool m_resourceTagsHasBeenSet = false;
148
149 LockConfiguration m_lockConfiguration;
150 bool m_lockConfigurationHasBeenSet = false;
151 };
152
153} // namespace Model
154} // namespace RecycleBin
155} // namespace Aws
CreateRuleRequest & WithDescription(const Aws::String &value)
const Aws::String & GetDescription() const
void SetDescription(const Aws::String &value)
void SetTags(const Aws::Vector< Tag > &value)
const Aws::Vector< Tag > & GetTags() const
CreateRuleRequest & WithDescription(const char *value)
CreateRuleRequest & WithRetentionPeriod(RetentionPeriod &&value)
CreateRuleRequest & WithResourceType(ResourceType &&value)
CreateRuleRequest & AddTags(const Tag &value)
CreateRuleRequest & WithResourceType(const ResourceType &value)
CreateRuleRequest & WithResourceTags(const Aws::Vector< ResourceTag > &value)
CreateRuleRequest & WithLockConfiguration(const LockConfiguration &value)
const Aws::Vector< ResourceTag > & GetResourceTags() const
void SetRetentionPeriod(RetentionPeriod &&value)
void SetResourceTags(const Aws::Vector< ResourceTag > &value)
void SetResourceTags(Aws::Vector< ResourceTag > &&value)
CreateRuleRequest & WithTags(Aws::Vector< Tag > &&value)
CreateRuleRequest & WithDescription(Aws::String &&value)
void SetResourceType(const ResourceType &value)
void SetRetentionPeriod(const RetentionPeriod &value)
const RetentionPeriod & GetRetentionPeriod() const
void SetLockConfiguration(const LockConfiguration &value)
AWS_RECYCLEBIN_API Aws::String SerializePayload() const override
CreateRuleRequest & AddResourceTags(const ResourceTag &value)
CreateRuleRequest & WithLockConfiguration(LockConfiguration &&value)
CreateRuleRequest & WithResourceTags(Aws::Vector< ResourceTag > &&value)
CreateRuleRequest & AddResourceTags(ResourceTag &&value)
CreateRuleRequest & AddTags(Tag &&value)
void SetLockConfiguration(LockConfiguration &&value)
CreateRuleRequest & WithRetentionPeriod(const RetentionPeriod &value)
const ResourceType & GetResourceType() const
void SetTags(Aws::Vector< Tag > &&value)
CreateRuleRequest & WithTags(const Aws::Vector< Tag > &value)
virtual const char * GetServiceRequestName() const override
const LockConfiguration & GetLockConfiguration() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector