AWS SDK for C++  0.14.3
AWS SDK for C++
ModifyDBSubnetGroupRequest.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
16 #include <aws/rds/RDS_EXPORTS.h>
17 #include <aws/rds/RDSRequest.h>
20 
21 namespace Aws
22 {
23 namespace RDS
24 {
25 namespace Model
26 {
27 
32  {
33  public:
35  Aws::String SerializePayload() const override;
36 
43  inline const Aws::String& GetDBSubnetGroupName() const{ return m_dBSubnetGroupName; }
44 
51  inline void SetDBSubnetGroupName(const Aws::String& value) { m_dBSubnetGroupNameHasBeenSet = true; m_dBSubnetGroupName = value; }
52 
59  inline void SetDBSubnetGroupName(Aws::String&& value) { m_dBSubnetGroupNameHasBeenSet = true; m_dBSubnetGroupName = value; }
60 
67  inline void SetDBSubnetGroupName(const char* value) { m_dBSubnetGroupNameHasBeenSet = true; m_dBSubnetGroupName.assign(value); }
68 
75  inline ModifyDBSubnetGroupRequest& WithDBSubnetGroupName(const Aws::String& value) { SetDBSubnetGroupName(value); return *this;}
76 
83  inline ModifyDBSubnetGroupRequest& WithDBSubnetGroupName(Aws::String&& value) { SetDBSubnetGroupName(value); return *this;}
84 
91  inline ModifyDBSubnetGroupRequest& WithDBSubnetGroupName(const char* value) { SetDBSubnetGroupName(value); return *this;}
92 
96  inline const Aws::String& GetDBSubnetGroupDescription() const{ return m_dBSubnetGroupDescription; }
97 
101  inline void SetDBSubnetGroupDescription(const Aws::String& value) { m_dBSubnetGroupDescriptionHasBeenSet = true; m_dBSubnetGroupDescription = value; }
102 
106  inline void SetDBSubnetGroupDescription(Aws::String&& value) { m_dBSubnetGroupDescriptionHasBeenSet = true; m_dBSubnetGroupDescription = value; }
107 
111  inline void SetDBSubnetGroupDescription(const char* value) { m_dBSubnetGroupDescriptionHasBeenSet = true; m_dBSubnetGroupDescription.assign(value); }
112 
116  inline ModifyDBSubnetGroupRequest& WithDBSubnetGroupDescription(const Aws::String& value) { SetDBSubnetGroupDescription(value); return *this;}
117 
121  inline ModifyDBSubnetGroupRequest& WithDBSubnetGroupDescription(Aws::String&& value) { SetDBSubnetGroupDescription(value); return *this;}
122 
126  inline ModifyDBSubnetGroupRequest& WithDBSubnetGroupDescription(const char* value) { SetDBSubnetGroupDescription(value); return *this;}
127 
131  inline const Aws::Vector<Aws::String>& GetSubnetIds() const{ return m_subnetIds; }
132 
136  inline void SetSubnetIds(const Aws::Vector<Aws::String>& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = value; }
137 
141  inline void SetSubnetIds(Aws::Vector<Aws::String>&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = value; }
142 
146  inline ModifyDBSubnetGroupRequest& WithSubnetIds(const Aws::Vector<Aws::String>& value) { SetSubnetIds(value); return *this;}
147 
151  inline ModifyDBSubnetGroupRequest& WithSubnetIds(Aws::Vector<Aws::String>&& value) { SetSubnetIds(value); return *this;}
152 
156  inline ModifyDBSubnetGroupRequest& AddSubnetIds(const Aws::String& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
157 
161  inline ModifyDBSubnetGroupRequest& AddSubnetIds(Aws::String&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
162 
166  inline ModifyDBSubnetGroupRequest& AddSubnetIds(const char* value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
167 
168  private:
169  Aws::String m_dBSubnetGroupName;
170  bool m_dBSubnetGroupNameHasBeenSet;
171  Aws::String m_dBSubnetGroupDescription;
172  bool m_dBSubnetGroupDescriptionHasBeenSet;
173  Aws::Vector<Aws::String> m_subnetIds;
174  bool m_subnetIdsHasBeenSet;
175  };
176 
177 } // namespace Model
178 } // namespace RDS
179 } // namespace Aws
ModifyDBSubnetGroupRequest & WithDBSubnetGroupDescription(const char *value)
#define AWS_RDS_API
Definition: RDS_EXPORTS.h:37
ModifyDBSubnetGroupRequest & WithSubnetIds(const Aws::Vector< Aws::String > &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
ModifyDBSubnetGroupRequest & AddSubnetIds(const char *value)
ModifyDBSubnetGroupRequest & WithDBSubnetGroupName(const Aws::String &value)
ModifyDBSubnetGroupRequest & WithDBSubnetGroupDescription(Aws::String &&value)
ModifyDBSubnetGroupRequest & WithSubnetIds(Aws::Vector< Aws::String > &&value)
void SetSubnetIds(Aws::Vector< Aws::String > &&value)
ModifyDBSubnetGroupRequest & AddSubnetIds(const Aws::String &value)
ModifyDBSubnetGroupRequest & WithDBSubnetGroupName(const char *value)
const Aws::Vector< Aws::String > & GetSubnetIds() const
void SetSubnetIds(const Aws::Vector< Aws::String > &value)
ModifyDBSubnetGroupRequest & WithDBSubnetGroupDescription(const Aws::String &value)
ModifyDBSubnetGroupRequest & WithDBSubnetGroupName(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ModifyDBSubnetGroupRequest & AddSubnetIds(Aws::String &&value)
void SetDBSubnetGroupDescription(const Aws::String &value)
JSON (JavaScript Object Notation).