AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
CreateClusterSubnetGroupRequest.h
Go to the documentation of this file.
1
6#pragma once
12#include <utility>
13
14namespace Aws
15{
16namespace Redshift
17{
18namespace Model
19{
20
27 {
28 public:
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateClusterSubnetGroup"; }
36
38
39 protected:
40 AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
41
42 public:
43
52 inline const Aws::String& GetClusterSubnetGroupName() const{ return m_clusterSubnetGroupName; }
53
62 inline bool ClusterSubnetGroupNameHasBeenSet() const { return m_clusterSubnetGroupNameHasBeenSet; }
63
72 inline void SetClusterSubnetGroupName(const Aws::String& value) { m_clusterSubnetGroupNameHasBeenSet = true; m_clusterSubnetGroupName = value; }
73
82 inline void SetClusterSubnetGroupName(Aws::String&& value) { m_clusterSubnetGroupNameHasBeenSet = true; m_clusterSubnetGroupName = std::move(value); }
83
92 inline void SetClusterSubnetGroupName(const char* value) { m_clusterSubnetGroupNameHasBeenSet = true; m_clusterSubnetGroupName.assign(value); }
93
103
113
123
124
128 inline const Aws::String& GetDescription() const{ return m_description; }
129
133 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
134
138 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
139
143 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
144
148 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
149
153 inline CreateClusterSubnetGroupRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
154
158 inline CreateClusterSubnetGroupRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
159
163 inline CreateClusterSubnetGroupRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
164
165
170 inline const Aws::Vector<Aws::String>& GetSubnetIds() const{ return m_subnetIds; }
171
176 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
177
182 inline void SetSubnetIds(const Aws::Vector<Aws::String>& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = value; }
183
188 inline void SetSubnetIds(Aws::Vector<Aws::String>&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::move(value); }
189
195
200 inline CreateClusterSubnetGroupRequest& WithSubnetIds(Aws::Vector<Aws::String>&& value) { SetSubnetIds(std::move(value)); return *this;}
201
206 inline CreateClusterSubnetGroupRequest& AddSubnetIds(const Aws::String& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
207
212 inline CreateClusterSubnetGroupRequest& AddSubnetIds(Aws::String&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(std::move(value)); return *this; }
213
218 inline CreateClusterSubnetGroupRequest& AddSubnetIds(const char* value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
219
220
224 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
225
229 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
230
234 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
235
239 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
240
244 inline CreateClusterSubnetGroupRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
245
249 inline CreateClusterSubnetGroupRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
250
254 inline CreateClusterSubnetGroupRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
255
259 inline CreateClusterSubnetGroupRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
260
261 private:
262
263 Aws::String m_clusterSubnetGroupName;
264 bool m_clusterSubnetGroupNameHasBeenSet = false;
265
266 Aws::String m_description;
267 bool m_descriptionHasBeenSet = false;
268
269 Aws::Vector<Aws::String> m_subnetIds;
270 bool m_subnetIdsHasBeenSet = false;
271
272 Aws::Vector<Tag> m_tags;
273 bool m_tagsHasBeenSet = false;
274 };
275
276} // namespace Model
277} // namespace Redshift
278} // namespace Aws
#define AWS_REDSHIFT_API
CreateClusterSubnetGroupRequest & AddSubnetIds(const Aws::String &value)
CreateClusterSubnetGroupRequest & WithDescription(Aws::String &&value)
CreateClusterSubnetGroupRequest & WithTags(Aws::Vector< Tag > &&value)
void SetSubnetIds(const Aws::Vector< Aws::String > &value)
CreateClusterSubnetGroupRequest & AddTags(Tag &&value)
CreateClusterSubnetGroupRequest & WithClusterSubnetGroupName(const char *value)
CreateClusterSubnetGroupRequest & WithTags(const Aws::Vector< Tag > &value)
CreateClusterSubnetGroupRequest & WithSubnetIds(Aws::Vector< Aws::String > &&value)
CreateClusterSubnetGroupRequest & WithClusterSubnetGroupName(Aws::String &&value)
CreateClusterSubnetGroupRequest & WithDescription(const Aws::String &value)
CreateClusterSubnetGroupRequest & AddSubnetIds(Aws::String &&value)
CreateClusterSubnetGroupRequest & WithSubnetIds(const Aws::Vector< Aws::String > &value)
AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWS_REDSHIFT_API Aws::String SerializePayload() const override
CreateClusterSubnetGroupRequest & WithDescription(const char *value)
CreateClusterSubnetGroupRequest & AddSubnetIds(const char *value)
CreateClusterSubnetGroupRequest & AddTags(const Tag &value)
CreateClusterSubnetGroupRequest & WithClusterSubnetGroupName(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector