AWS SDK for C++  1.9.103
AWS SDK for C++
CreateClusterSubnetGroupRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <aws/redshift/model/Tag.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Redshift
17 {
18 namespace 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::String SerializePayload() const override;
38 
39  protected:
40  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 
102  inline CreateClusterSubnetGroupRequest& WithClusterSubnetGroupName(const Aws::String& value) { SetClusterSubnetGroupName(value); return *this;}
103 
112  inline CreateClusterSubnetGroupRequest& WithClusterSubnetGroupName(Aws::String&& value) { SetClusterSubnetGroupName(std::move(value)); return *this;}
113 
122  inline CreateClusterSubnetGroupRequest& WithClusterSubnetGroupName(const char* value) { SetClusterSubnetGroupName(value); return *this;}
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 
194  inline CreateClusterSubnetGroupRequest& WithSubnetIds(const Aws::Vector<Aws::String>& value) { SetSubnetIds(value); return *this;}
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;
265 
266  Aws::String m_description;
267  bool m_descriptionHasBeenSet;
268 
269  Aws::Vector<Aws::String> m_subnetIds;
270  bool m_subnetIdsHasBeenSet;
271 
272  Aws::Vector<Tag> m_tags;
273  bool m_tagsHasBeenSet;
274  };
275 
276 } // namespace Model
277 } // namespace Redshift
278 } // namespace Aws
Aws::Redshift::Model::CreateClusterSubnetGroupRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateClusterSubnetGroupRequest.h:35
Aws::Redshift::Model::Tag
Definition: Tag.h:33
Aws::Http::URI
Definition: URI.h:32
Aws::Redshift::Model::CreateClusterSubnetGroupRequest::WithClusterSubnetGroupName
CreateClusterSubnetGroupRequest & WithClusterSubnetGroupName(const char *value)
Definition: CreateClusterSubnetGroupRequest.h:122
Aws::Redshift::Model::CreateClusterSubnetGroupRequest::AddSubnetIds
CreateClusterSubnetGroupRequest & AddSubnetIds(Aws::String &&value)
Definition: CreateClusterSubnetGroupRequest.h:212
Aws::Redshift::Model::CreateClusterSubnetGroupRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: CreateClusterSubnetGroupRequest.h:143
Aws::Redshift::Model::CreateClusterSubnetGroupRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateClusterSubnetGroupRequest.h:224
Aws::Redshift::Model::CreateClusterSubnetGroupRequest::WithDescription
CreateClusterSubnetGroupRequest & WithDescription(const char *value)
Definition: CreateClusterSubnetGroupRequest.h:163
Aws::Redshift::Model::CreateClusterSubnetGroupRequest::AddSubnetIds
CreateClusterSubnetGroupRequest & AddSubnetIds(const Aws::String &value)
Definition: CreateClusterSubnetGroupRequest.h:206
Aws::Redshift::Model::CreateClusterSubnetGroupRequest::AddTags
CreateClusterSubnetGroupRequest & AddTags(Tag &&value)
Definition: CreateClusterSubnetGroupRequest.h:259
Tag.h
Aws::Redshift::Model::CreateClusterSubnetGroupRequest::GetSubnetIds
const Aws::Vector< Aws::String > & GetSubnetIds() const
Definition: CreateClusterSubnetGroupRequest.h:170
Aws::Redshift::Model::CreateClusterSubnetGroupRequest::AddSubnetIds
CreateClusterSubnetGroupRequest & AddSubnetIds(const char *value)
Definition: CreateClusterSubnetGroupRequest.h:218
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Redshift::Model::CreateClusterSubnetGroupRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreateClusterSubnetGroupRequest.h:234
RedshiftRequest.h
Aws::Redshift::Model::CreateClusterSubnetGroupRequest::WithClusterSubnetGroupName
CreateClusterSubnetGroupRequest & WithClusterSubnetGroupName(Aws::String &&value)
Definition: CreateClusterSubnetGroupRequest.h:112
Aws::Redshift::Model::CreateClusterSubnetGroupRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Redshift::Model::CreateClusterSubnetGroupRequest::SetSubnetIds
void SetSubnetIds(Aws::Vector< Aws::String > &&value)
Definition: CreateClusterSubnetGroupRequest.h:188
AWSVector.h
Aws::Redshift::Model::CreateClusterSubnetGroupRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::Redshift::Model::CreateClusterSubnetGroupRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: CreateClusterSubnetGroupRequest.h:138
Aws::Redshift::Model::CreateClusterSubnetGroupRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreateClusterSubnetGroupRequest.h:239
Aws::Redshift::Model::CreateClusterSubnetGroupRequest::WithClusterSubnetGroupName
CreateClusterSubnetGroupRequest & WithClusterSubnetGroupName(const Aws::String &value)
Definition: CreateClusterSubnetGroupRequest.h:102
Aws::Redshift::Model::CreateClusterSubnetGroupRequest::WithSubnetIds
CreateClusterSubnetGroupRequest & WithSubnetIds(Aws::Vector< Aws::String > &&value)
Definition: CreateClusterSubnetGroupRequest.h:200
Aws::Redshift::Model::CreateClusterSubnetGroupRequest
Definition: CreateClusterSubnetGroupRequest.h:27
Aws::Redshift::Model::CreateClusterSubnetGroupRequest::SetDescription
void SetDescription(const char *value)
Definition: CreateClusterSubnetGroupRequest.h:148
Aws::Redshift::Model::CreateClusterSubnetGroupRequest::SetClusterSubnetGroupName
void SetClusterSubnetGroupName(const Aws::String &value)
Definition: CreateClusterSubnetGroupRequest.h:72
AWS_REDSHIFT_API
#define AWS_REDSHIFT_API
Definition: Redshift_EXPORTS.h:28
Aws::Redshift::Model::CreateClusterSubnetGroupRequest::SetClusterSubnetGroupName
void SetClusterSubnetGroupName(const char *value)
Definition: CreateClusterSubnetGroupRequest.h:92
Aws::Redshift::Model::CreateClusterSubnetGroupRequest::SetSubnetIds
void SetSubnetIds(const Aws::Vector< Aws::String > &value)
Definition: CreateClusterSubnetGroupRequest.h:182
Aws::Redshift::Model::CreateClusterSubnetGroupRequest::ClusterSubnetGroupNameHasBeenSet
bool ClusterSubnetGroupNameHasBeenSet() const
Definition: CreateClusterSubnetGroupRequest.h:62
Aws::Redshift::RedshiftRequest
Definition: RedshiftRequest.h:17
AWSString.h
Aws::Redshift::Model::CreateClusterSubnetGroupRequest::WithTags
CreateClusterSubnetGroupRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreateClusterSubnetGroupRequest.h:244
Aws::Redshift::Model::CreateClusterSubnetGroupRequest::SetClusterSubnetGroupName
void SetClusterSubnetGroupName(Aws::String &&value)
Definition: CreateClusterSubnetGroupRequest.h:82
Aws::Redshift::Model::CreateClusterSubnetGroupRequest::GetDescription
const Aws::String & GetDescription() const
Definition: CreateClusterSubnetGroupRequest.h:128
Aws::Redshift::Model::CreateClusterSubnetGroupRequest::CreateClusterSubnetGroupRequest
CreateClusterSubnetGroupRequest()
Aws
Definition: AccessManagementClient.h:15
Redshift_EXPORTS.h
Aws::Redshift::Model::CreateClusterSubnetGroupRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: CreateClusterSubnetGroupRequest.h:133
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Redshift::Model::CreateClusterSubnetGroupRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateClusterSubnetGroupRequest.h:229
Aws::Redshift::Model::CreateClusterSubnetGroupRequest::WithDescription
CreateClusterSubnetGroupRequest & WithDescription(Aws::String &&value)
Definition: CreateClusterSubnetGroupRequest.h:158
Aws::Redshift::Model::CreateClusterSubnetGroupRequest::WithSubnetIds
CreateClusterSubnetGroupRequest & WithSubnetIds(const Aws::Vector< Aws::String > &value)
Definition: CreateClusterSubnetGroupRequest.h:194
Aws::Redshift::Model::CreateClusterSubnetGroupRequest::WithDescription
CreateClusterSubnetGroupRequest & WithDescription(const Aws::String &value)
Definition: CreateClusterSubnetGroupRequest.h:153
Aws::Redshift::Model::CreateClusterSubnetGroupRequest::AddTags
CreateClusterSubnetGroupRequest & AddTags(const Tag &value)
Definition: CreateClusterSubnetGroupRequest.h:254
Aws::Redshift::Model::CreateClusterSubnetGroupRequest::GetClusterSubnetGroupName
const Aws::String & GetClusterSubnetGroupName() const
Definition: CreateClusterSubnetGroupRequest.h:52
Aws::Redshift::Model::CreateClusterSubnetGroupRequest::WithTags
CreateClusterSubnetGroupRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreateClusterSubnetGroupRequest.h:249
Aws::Redshift::Model::CreateClusterSubnetGroupRequest::SubnetIdsHasBeenSet
bool SubnetIdsHasBeenSet() const
Definition: CreateClusterSubnetGroupRequest.h:176