AWS SDK for C++  0.14.3
AWS SDK for C++
CreateClusterSubnetGroupRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
20 #include <aws/redshift/model/Tag.h>
21 
22 namespace Aws
23 {
24 namespace Redshift
25 {
26 namespace Model
27 {
28 
33  {
34  public:
36  Aws::String SerializePayload() const override;
37 
45  inline const Aws::String& GetClusterSubnetGroupName() const{ return m_clusterSubnetGroupName; }
46 
54  inline void SetClusterSubnetGroupName(const Aws::String& value) { m_clusterSubnetGroupNameHasBeenSet = true; m_clusterSubnetGroupName = value; }
55 
63  inline void SetClusterSubnetGroupName(Aws::String&& value) { m_clusterSubnetGroupNameHasBeenSet = true; m_clusterSubnetGroupName = value; }
64 
72  inline void SetClusterSubnetGroupName(const char* value) { m_clusterSubnetGroupNameHasBeenSet = true; m_clusterSubnetGroupName.assign(value); }
73 
81  inline CreateClusterSubnetGroupRequest& WithClusterSubnetGroupName(const Aws::String& value) { SetClusterSubnetGroupName(value); return *this;}
82 
90  inline CreateClusterSubnetGroupRequest& WithClusterSubnetGroupName(Aws::String&& value) { SetClusterSubnetGroupName(value); return *this;}
91 
99  inline CreateClusterSubnetGroupRequest& WithClusterSubnetGroupName(const char* value) { SetClusterSubnetGroupName(value); return *this;}
100 
104  inline const Aws::String& GetDescription() const{ return m_description; }
105 
109  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
110 
114  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = value; }
115 
119  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
120 
124  inline CreateClusterSubnetGroupRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
125 
129  inline CreateClusterSubnetGroupRequest& WithDescription(Aws::String&& value) { SetDescription(value); return *this;}
130 
134  inline CreateClusterSubnetGroupRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
135 
140  inline const Aws::Vector<Aws::String>& GetSubnetIds() const{ return m_subnetIds; }
141 
146  inline void SetSubnetIds(const Aws::Vector<Aws::String>& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = value; }
147 
152  inline void SetSubnetIds(Aws::Vector<Aws::String>&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = value; }
153 
158  inline CreateClusterSubnetGroupRequest& WithSubnetIds(const Aws::Vector<Aws::String>& value) { SetSubnetIds(value); return *this;}
159 
164  inline CreateClusterSubnetGroupRequest& WithSubnetIds(Aws::Vector<Aws::String>&& value) { SetSubnetIds(value); return *this;}
165 
170  inline CreateClusterSubnetGroupRequest& AddSubnetIds(const Aws::String& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
171 
176  inline CreateClusterSubnetGroupRequest& AddSubnetIds(Aws::String&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
177 
182  inline CreateClusterSubnetGroupRequest& AddSubnetIds(const char* value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
183 
187  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
188 
192  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
193 
197  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = value; }
198 
202  inline CreateClusterSubnetGroupRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
203 
207  inline CreateClusterSubnetGroupRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(value); return *this;}
208 
212  inline CreateClusterSubnetGroupRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
213 
217  inline CreateClusterSubnetGroupRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
218 
219  private:
220  Aws::String m_clusterSubnetGroupName;
221  bool m_clusterSubnetGroupNameHasBeenSet;
222  Aws::String m_description;
223  bool m_descriptionHasBeenSet;
224  Aws::Vector<Aws::String> m_subnetIds;
225  bool m_subnetIdsHasBeenSet;
226  Aws::Vector<Tag> m_tags;
227  bool m_tagsHasBeenSet;
228  };
229 
230 } // namespace Model
231 } // namespace Redshift
232 } // namespace Aws
CreateClusterSubnetGroupRequest & AddTags(const Tag &value)
CreateClusterSubnetGroupRequest & AddSubnetIds(Aws::String &&value)
CreateClusterSubnetGroupRequest & AddSubnetIds(const Aws::String &value)
CreateClusterSubnetGroupRequest & WithSubnetIds(const Aws::Vector< Aws::String > &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
CreateClusterSubnetGroupRequest & WithClusterSubnetGroupName(Aws::String &&value)
#define AWS_REDSHIFT_API
CreateClusterSubnetGroupRequest & WithClusterSubnetGroupName(const char *value)
CreateClusterSubnetGroupRequest & WithSubnetIds(Aws::Vector< Aws::String > &&value)
CreateClusterSubnetGroupRequest & WithDescription(Aws::String &&value)
CreateClusterSubnetGroupRequest & AddSubnetIds(const char *value)
CreateClusterSubnetGroupRequest & AddTags(Tag &&value)
CreateClusterSubnetGroupRequest & WithTags(Aws::Vector< Tag > &&value)
void SetSubnetIds(const Aws::Vector< Aws::String > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CreateClusterSubnetGroupRequest & WithDescription(const char *value)
CreateClusterSubnetGroupRequest & WithDescription(const Aws::String &value)
CreateClusterSubnetGroupRequest & WithClusterSubnetGroupName(const Aws::String &value)
JSON (JavaScript Object Notation).
CreateClusterSubnetGroupRequest & WithTags(const Aws::Vector< Tag > &value)