AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateClusterSubnetGroupRequest.h
1
6#pragma once
7#include <aws/redshift/Redshift_EXPORTS.h>
8#include <aws/redshift/RedshiftRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/redshift/model/Tag.h>
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
37 AWS_REDSHIFT_API Aws::String SerializePayload() const override;
38
39 protected:
40 AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
41
42 public:
43
45
53 inline const Aws::String& GetClusterSubnetGroupName() const{ return m_clusterSubnetGroupName; }
54 inline bool ClusterSubnetGroupNameHasBeenSet() const { return m_clusterSubnetGroupNameHasBeenSet; }
55 inline void SetClusterSubnetGroupName(const Aws::String& value) { m_clusterSubnetGroupNameHasBeenSet = true; m_clusterSubnetGroupName = value; }
56 inline void SetClusterSubnetGroupName(Aws::String&& value) { m_clusterSubnetGroupNameHasBeenSet = true; m_clusterSubnetGroupName = std::move(value); }
57 inline void SetClusterSubnetGroupName(const char* value) { m_clusterSubnetGroupNameHasBeenSet = true; m_clusterSubnetGroupName.assign(value); }
62
64
67 inline const Aws::String& GetDescription() const{ return m_description; }
68 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
69 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
70 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
71 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
72 inline CreateClusterSubnetGroupRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
73 inline CreateClusterSubnetGroupRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
74 inline CreateClusterSubnetGroupRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
76
78
82 inline const Aws::Vector<Aws::String>& GetSubnetIds() const{ return m_subnetIds; }
83 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
84 inline void SetSubnetIds(const Aws::Vector<Aws::String>& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = value; }
85 inline void SetSubnetIds(Aws::Vector<Aws::String>&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::move(value); }
87 inline CreateClusterSubnetGroupRequest& WithSubnetIds(Aws::Vector<Aws::String>&& value) { SetSubnetIds(std::move(value)); return *this;}
88 inline CreateClusterSubnetGroupRequest& AddSubnetIds(const Aws::String& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
89 inline CreateClusterSubnetGroupRequest& AddSubnetIds(Aws::String&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(std::move(value)); return *this; }
90 inline CreateClusterSubnetGroupRequest& AddSubnetIds(const char* value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
92
94
97 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
98 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
99 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
100 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
101 inline CreateClusterSubnetGroupRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
102 inline CreateClusterSubnetGroupRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
103 inline CreateClusterSubnetGroupRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
104 inline CreateClusterSubnetGroupRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
106 private:
107
108 Aws::String m_clusterSubnetGroupName;
109 bool m_clusterSubnetGroupNameHasBeenSet = false;
110
111 Aws::String m_description;
112 bool m_descriptionHasBeenSet = false;
113
114 Aws::Vector<Aws::String> m_subnetIds;
115 bool m_subnetIdsHasBeenSet = false;
116
117 Aws::Vector<Tag> m_tags;
118 bool m_tagsHasBeenSet = false;
119 };
120
121} // namespace Model
122} // namespace Redshift
123} // namespace Aws
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 & 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