AWS SDK for C++  0.14.3
AWS SDK for C++
ModifyClusterSubnetGroupRequest.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 
21 namespace Aws
22 {
23 namespace Redshift
24 {
25 namespace Model
26 {
27 
32  {
33  public:
35  Aws::String SerializePayload() const override;
36 
40  inline const Aws::String& GetClusterSubnetGroupName() const{ return m_clusterSubnetGroupName; }
41 
45  inline void SetClusterSubnetGroupName(const Aws::String& value) { m_clusterSubnetGroupNameHasBeenSet = true; m_clusterSubnetGroupName = value; }
46 
50  inline void SetClusterSubnetGroupName(Aws::String&& value) { m_clusterSubnetGroupNameHasBeenSet = true; m_clusterSubnetGroupName = value; }
51 
55  inline void SetClusterSubnetGroupName(const char* value) { m_clusterSubnetGroupNameHasBeenSet = true; m_clusterSubnetGroupName.assign(value); }
56 
60  inline ModifyClusterSubnetGroupRequest& WithClusterSubnetGroupName(const Aws::String& value) { SetClusterSubnetGroupName(value); return *this;}
61 
65  inline ModifyClusterSubnetGroupRequest& WithClusterSubnetGroupName(Aws::String&& value) { SetClusterSubnetGroupName(value); return *this;}
66 
70  inline ModifyClusterSubnetGroupRequest& WithClusterSubnetGroupName(const char* value) { SetClusterSubnetGroupName(value); return *this;}
71 
75  inline const Aws::String& GetDescription() const{ return m_description; }
76 
80  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
81 
85  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = value; }
86 
90  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
91 
95  inline ModifyClusterSubnetGroupRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
96 
100  inline ModifyClusterSubnetGroupRequest& WithDescription(Aws::String&& value) { SetDescription(value); return *this;}
101 
105  inline ModifyClusterSubnetGroupRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
106 
111  inline const Aws::Vector<Aws::String>& GetSubnetIds() const{ return m_subnetIds; }
112 
117  inline void SetSubnetIds(const Aws::Vector<Aws::String>& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = value; }
118 
123  inline void SetSubnetIds(Aws::Vector<Aws::String>&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = value; }
124 
129  inline ModifyClusterSubnetGroupRequest& WithSubnetIds(const Aws::Vector<Aws::String>& value) { SetSubnetIds(value); return *this;}
130 
135  inline ModifyClusterSubnetGroupRequest& WithSubnetIds(Aws::Vector<Aws::String>&& value) { SetSubnetIds(value); return *this;}
136 
141  inline ModifyClusterSubnetGroupRequest& AddSubnetIds(const Aws::String& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
142 
147  inline ModifyClusterSubnetGroupRequest& AddSubnetIds(Aws::String&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
148 
153  inline ModifyClusterSubnetGroupRequest& AddSubnetIds(const char* value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
154 
155  private:
156  Aws::String m_clusterSubnetGroupName;
157  bool m_clusterSubnetGroupNameHasBeenSet;
158  Aws::String m_description;
159  bool m_descriptionHasBeenSet;
160  Aws::Vector<Aws::String> m_subnetIds;
161  bool m_subnetIdsHasBeenSet;
162  };
163 
164 } // namespace Model
165 } // namespace Redshift
166 } // namespace Aws
ModifyClusterSubnetGroupRequest & WithSubnetIds(const Aws::Vector< Aws::String > &value)
ModifyClusterSubnetGroupRequest & WithClusterSubnetGroupName(Aws::String &&value)
ModifyClusterSubnetGroupRequest & WithDescription(const char *value)
void SetSubnetIds(const Aws::Vector< Aws::String > &value)
ModifyClusterSubnetGroupRequest & WithDescription(Aws::String &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
ModifyClusterSubnetGroupRequest & AddSubnetIds(Aws::String &&value)
ModifyClusterSubnetGroupRequest & WithClusterSubnetGroupName(const Aws::String &value)
ModifyClusterSubnetGroupRequest & WithDescription(const Aws::String &value)
ModifyClusterSubnetGroupRequest & WithClusterSubnetGroupName(const char *value)
#define AWS_REDSHIFT_API
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ModifyClusterSubnetGroupRequest & WithSubnetIds(Aws::Vector< Aws::String > &&value)
ModifyClusterSubnetGroupRequest & AddSubnetIds(const Aws::String &value)
ModifyClusterSubnetGroupRequest & AddSubnetIds(const char *value)
JSON (JavaScript Object Notation).