AWS SDK for C++  0.14.3
AWS SDK for C++
CreateDBSubnetGroupRequest.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 #include <aws/rds/model/Tag.h>
21 
22 namespace Aws
23 {
24 namespace RDS
25 {
26 namespace Model
27 {
28 
33  {
34  public:
36  Aws::String SerializePayload() const override;
37 
44  inline const Aws::String& GetDBSubnetGroupName() const{ return m_dBSubnetGroupName; }
45 
52  inline void SetDBSubnetGroupName(const Aws::String& value) { m_dBSubnetGroupNameHasBeenSet = true; m_dBSubnetGroupName = value; }
53 
60  inline void SetDBSubnetGroupName(Aws::String&& value) { m_dBSubnetGroupNameHasBeenSet = true; m_dBSubnetGroupName = value; }
61 
68  inline void SetDBSubnetGroupName(const char* value) { m_dBSubnetGroupNameHasBeenSet = true; m_dBSubnetGroupName.assign(value); }
69 
76  inline CreateDBSubnetGroupRequest& WithDBSubnetGroupName(const Aws::String& value) { SetDBSubnetGroupName(value); return *this;}
77 
84  inline CreateDBSubnetGroupRequest& WithDBSubnetGroupName(Aws::String&& value) { SetDBSubnetGroupName(value); return *this;}
85 
92  inline CreateDBSubnetGroupRequest& WithDBSubnetGroupName(const char* value) { SetDBSubnetGroupName(value); return *this;}
93 
97  inline const Aws::String& GetDBSubnetGroupDescription() const{ return m_dBSubnetGroupDescription; }
98 
102  inline void SetDBSubnetGroupDescription(const Aws::String& value) { m_dBSubnetGroupDescriptionHasBeenSet = true; m_dBSubnetGroupDescription = value; }
103 
107  inline void SetDBSubnetGroupDescription(Aws::String&& value) { m_dBSubnetGroupDescriptionHasBeenSet = true; m_dBSubnetGroupDescription = value; }
108 
112  inline void SetDBSubnetGroupDescription(const char* value) { m_dBSubnetGroupDescriptionHasBeenSet = true; m_dBSubnetGroupDescription.assign(value); }
113 
117  inline CreateDBSubnetGroupRequest& WithDBSubnetGroupDescription(const Aws::String& value) { SetDBSubnetGroupDescription(value); return *this;}
118 
122  inline CreateDBSubnetGroupRequest& WithDBSubnetGroupDescription(Aws::String&& value) { SetDBSubnetGroupDescription(value); return *this;}
123 
127  inline CreateDBSubnetGroupRequest& WithDBSubnetGroupDescription(const char* value) { SetDBSubnetGroupDescription(value); return *this;}
128 
132  inline const Aws::Vector<Aws::String>& GetSubnetIds() const{ return m_subnetIds; }
133 
137  inline void SetSubnetIds(const Aws::Vector<Aws::String>& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = value; }
138 
142  inline void SetSubnetIds(Aws::Vector<Aws::String>&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = value; }
143 
147  inline CreateDBSubnetGroupRequest& WithSubnetIds(const Aws::Vector<Aws::String>& value) { SetSubnetIds(value); return *this;}
148 
152  inline CreateDBSubnetGroupRequest& WithSubnetIds(Aws::Vector<Aws::String>&& value) { SetSubnetIds(value); return *this;}
153 
157  inline CreateDBSubnetGroupRequest& AddSubnetIds(const Aws::String& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
158 
162  inline CreateDBSubnetGroupRequest& AddSubnetIds(Aws::String&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
163 
167  inline CreateDBSubnetGroupRequest& AddSubnetIds(const char* value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
168 
169 
170  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
171 
172 
173  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
174 
175 
176  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = value; }
177 
178 
179  inline CreateDBSubnetGroupRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
180 
181 
182  inline CreateDBSubnetGroupRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(value); return *this;}
183 
184 
185  inline CreateDBSubnetGroupRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
186 
187 
188  inline CreateDBSubnetGroupRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
189 
190  private:
191  Aws::String m_dBSubnetGroupName;
192  bool m_dBSubnetGroupNameHasBeenSet;
193  Aws::String m_dBSubnetGroupDescription;
194  bool m_dBSubnetGroupDescriptionHasBeenSet;
195  Aws::Vector<Aws::String> m_subnetIds;
196  bool m_subnetIdsHasBeenSet;
197  Aws::Vector<Tag> m_tags;
198  bool m_tagsHasBeenSet;
199  };
200 
201 } // namespace Model
202 } // namespace RDS
203 } // namespace Aws
CreateDBSubnetGroupRequest & AddSubnetIds(const Aws::String &value)
#define AWS_RDS_API
Definition: RDS_EXPORTS.h:37
CreateDBSubnetGroupRequest & AddTags(const Tag &value)
CreateDBSubnetGroupRequest & WithTags(const Aws::Vector< Tag > &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
const Aws::Vector< Aws::String > & GetSubnetIds() const
CreateDBSubnetGroupRequest & AddSubnetIds(Aws::String &&value)
void SetDBSubnetGroupDescription(const Aws::String &value)
CreateDBSubnetGroupRequest & WithTags(Aws::Vector< Tag > &&value)
void SetSubnetIds(Aws::Vector< Aws::String > &&value)
void SetSubnetIds(const Aws::Vector< Aws::String > &value)
CreateDBSubnetGroupRequest & WithDBSubnetGroupName(const char *value)
CreateDBSubnetGroupRequest & WithDBSubnetGroupDescription(const Aws::String &value)
CreateDBSubnetGroupRequest & WithSubnetIds(const Aws::Vector< Aws::String > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CreateDBSubnetGroupRequest & WithDBSubnetGroupDescription(Aws::String &&value)
CreateDBSubnetGroupRequest & WithSubnetIds(Aws::Vector< Aws::String > &&value)
CreateDBSubnetGroupRequest & AddTags(Tag &&value)
CreateDBSubnetGroupRequest & WithDBSubnetGroupDescription(const char *value)
CreateDBSubnetGroupRequest & AddSubnetIds(const char *value)
void SetTags(const Aws::Vector< Tag > &value)
JSON (JavaScript Object Notation).
CreateDBSubnetGroupRequest & WithDBSubnetGroupName(const Aws::String &value)
CreateDBSubnetGroupRequest & WithDBSubnetGroupName(Aws::String &&value)