AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CreateClusterSubnetGroupRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/redshift/RedshiftRequest.h>
10#include <aws/redshift/Redshift_EXPORTS.h>
11#include <aws/redshift/model/Tag.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Redshift {
17namespace Model {
18
25 public:
26 AWS_REDSHIFT_API CreateClusterSubnetGroupRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateClusterSubnetGroup"; }
33
34 AWS_REDSHIFT_API Aws::String SerializePayload() const override;
35
36 protected:
37 AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
38
39 public:
41
49 inline const Aws::String& GetClusterSubnetGroupName() const { return m_clusterSubnetGroupName; }
50 inline bool ClusterSubnetGroupNameHasBeenSet() const { return m_clusterSubnetGroupNameHasBeenSet; }
51 template <typename ClusterSubnetGroupNameT = Aws::String>
52 void SetClusterSubnetGroupName(ClusterSubnetGroupNameT&& value) {
53 m_clusterSubnetGroupNameHasBeenSet = true;
54 m_clusterSubnetGroupName = std::forward<ClusterSubnetGroupNameT>(value);
55 }
56 template <typename ClusterSubnetGroupNameT = Aws::String>
58 SetClusterSubnetGroupName(std::forward<ClusterSubnetGroupNameT>(value));
59 return *this;
60 }
62
64
67 inline const Aws::String& GetDescription() const { return m_description; }
68 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
69 template <typename DescriptionT = Aws::String>
70 void SetDescription(DescriptionT&& value) {
71 m_descriptionHasBeenSet = true;
72 m_description = std::forward<DescriptionT>(value);
73 }
74 template <typename DescriptionT = Aws::String>
76 SetDescription(std::forward<DescriptionT>(value));
77 return *this;
78 }
80
82
86 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
87 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
88 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
89 void SetSubnetIds(SubnetIdsT&& value) {
90 m_subnetIdsHasBeenSet = true;
91 m_subnetIds = std::forward<SubnetIdsT>(value);
92 }
93 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
95 SetSubnetIds(std::forward<SubnetIdsT>(value));
96 return *this;
97 }
98 template <typename SubnetIdsT = Aws::String>
100 m_subnetIdsHasBeenSet = true;
101 m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value));
102 return *this;
103 }
105
107
110 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
111 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
112 template <typename TagsT = Aws::Vector<Tag>>
113 void SetTags(TagsT&& value) {
114 m_tagsHasBeenSet = true;
115 m_tags = std::forward<TagsT>(value);
116 }
117 template <typename TagsT = Aws::Vector<Tag>>
119 SetTags(std::forward<TagsT>(value));
120 return *this;
121 }
122 template <typename TagsT = Tag>
124 m_tagsHasBeenSet = true;
125 m_tags.emplace_back(std::forward<TagsT>(value));
126 return *this;
127 }
129 private:
130 Aws::String m_clusterSubnetGroupName;
131
132 Aws::String m_description;
133
134 Aws::Vector<Aws::String> m_subnetIds;
135
136 Aws::Vector<Tag> m_tags;
137 bool m_clusterSubnetGroupNameHasBeenSet = false;
138 bool m_descriptionHasBeenSet = false;
139 bool m_subnetIdsHasBeenSet = false;
140 bool m_tagsHasBeenSet = false;
141};
142
143} // namespace Model
144} // namespace Redshift
145} // namespace Aws
CreateClusterSubnetGroupRequest & AddSubnetIds(SubnetIdsT &&value)
CreateClusterSubnetGroupRequest & WithClusterSubnetGroupName(ClusterSubnetGroupNameT &&value)
AWS_REDSHIFT_API CreateClusterSubnetGroupRequest()=default
CreateClusterSubnetGroupRequest & WithSubnetIds(SubnetIdsT &&value)
CreateClusterSubnetGroupRequest & WithTags(TagsT &&value)
AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWS_REDSHIFT_API Aws::String SerializePayload() const override
CreateClusterSubnetGroupRequest & AddTags(TagsT &&value)
CreateClusterSubnetGroupRequest & WithDescription(DescriptionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector