AWS SDK for C++  0.12.9
AWS SDK for C++
ReplicationSubnetGroup.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
19 #include <aws/dms/model/Subnet.h>
20 
21 namespace Aws
22 {
23 namespace Utils
24 {
25 namespace Json
26 {
27  class JsonValue;
28 } // namespace Json
29 } // namespace Utils
30 namespace DatabaseMigrationService
31 {
32 namespace Model
33 {
34 
36  {
37  public:
40  ReplicationSubnetGroup& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
41  Aws::Utils::Json::JsonValue Jsonize() const;
42 
46  inline const Aws::String& GetReplicationSubnetGroupIdentifier() const{ return m_replicationSubnetGroupIdentifier; }
47 
51  inline void SetReplicationSubnetGroupIdentifier(const Aws::String& value) { m_replicationSubnetGroupIdentifierHasBeenSet = true; m_replicationSubnetGroupIdentifier = value; }
52 
56  inline void SetReplicationSubnetGroupIdentifier(Aws::String&& value) { m_replicationSubnetGroupIdentifierHasBeenSet = true; m_replicationSubnetGroupIdentifier = value; }
57 
61  inline void SetReplicationSubnetGroupIdentifier(const char* value) { m_replicationSubnetGroupIdentifierHasBeenSet = true; m_replicationSubnetGroupIdentifier.assign(value); }
62 
66  inline ReplicationSubnetGroup& WithReplicationSubnetGroupIdentifier(const Aws::String& value) { SetReplicationSubnetGroupIdentifier(value); return *this;}
67 
71  inline ReplicationSubnetGroup& WithReplicationSubnetGroupIdentifier(Aws::String&& value) { SetReplicationSubnetGroupIdentifier(value); return *this;}
72 
76  inline ReplicationSubnetGroup& WithReplicationSubnetGroupIdentifier(const char* value) { SetReplicationSubnetGroupIdentifier(value); return *this;}
77 
81  inline const Aws::String& GetReplicationSubnetGroupDescription() const{ return m_replicationSubnetGroupDescription; }
82 
86  inline void SetReplicationSubnetGroupDescription(const Aws::String& value) { m_replicationSubnetGroupDescriptionHasBeenSet = true; m_replicationSubnetGroupDescription = value; }
87 
91  inline void SetReplicationSubnetGroupDescription(Aws::String&& value) { m_replicationSubnetGroupDescriptionHasBeenSet = true; m_replicationSubnetGroupDescription = value; }
92 
96  inline void SetReplicationSubnetGroupDescription(const char* value) { m_replicationSubnetGroupDescriptionHasBeenSet = true; m_replicationSubnetGroupDescription.assign(value); }
97 
101  inline ReplicationSubnetGroup& WithReplicationSubnetGroupDescription(const Aws::String& value) { SetReplicationSubnetGroupDescription(value); return *this;}
102 
106  inline ReplicationSubnetGroup& WithReplicationSubnetGroupDescription(Aws::String&& value) { SetReplicationSubnetGroupDescription(value); return *this;}
107 
111  inline ReplicationSubnetGroup& WithReplicationSubnetGroupDescription(const char* value) { SetReplicationSubnetGroupDescription(value); return *this;}
112 
116  inline const Aws::String& GetVpcId() const{ return m_vpcId; }
117 
121  inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
122 
126  inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
127 
131  inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
132 
136  inline ReplicationSubnetGroup& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
137 
141  inline ReplicationSubnetGroup& WithVpcId(Aws::String&& value) { SetVpcId(value); return *this;}
142 
146  inline ReplicationSubnetGroup& WithVpcId(const char* value) { SetVpcId(value); return *this;}
147 
151  inline const Aws::String& GetSubnetGroupStatus() const{ return m_subnetGroupStatus; }
152 
156  inline void SetSubnetGroupStatus(const Aws::String& value) { m_subnetGroupStatusHasBeenSet = true; m_subnetGroupStatus = value; }
157 
161  inline void SetSubnetGroupStatus(Aws::String&& value) { m_subnetGroupStatusHasBeenSet = true; m_subnetGroupStatus = value; }
162 
166  inline void SetSubnetGroupStatus(const char* value) { m_subnetGroupStatusHasBeenSet = true; m_subnetGroupStatus.assign(value); }
167 
171  inline ReplicationSubnetGroup& WithSubnetGroupStatus(const Aws::String& value) { SetSubnetGroupStatus(value); return *this;}
172 
176  inline ReplicationSubnetGroup& WithSubnetGroupStatus(Aws::String&& value) { SetSubnetGroupStatus(value); return *this;}
177 
181  inline ReplicationSubnetGroup& WithSubnetGroupStatus(const char* value) { SetSubnetGroupStatus(value); return *this;}
182 
186  inline const Aws::Vector<Subnet>& GetSubnets() const{ return m_subnets; }
187 
191  inline void SetSubnets(const Aws::Vector<Subnet>& value) { m_subnetsHasBeenSet = true; m_subnets = value; }
192 
196  inline void SetSubnets(Aws::Vector<Subnet>&& value) { m_subnetsHasBeenSet = true; m_subnets = value; }
197 
201  inline ReplicationSubnetGroup& WithSubnets(const Aws::Vector<Subnet>& value) { SetSubnets(value); return *this;}
202 
206  inline ReplicationSubnetGroup& WithSubnets(Aws::Vector<Subnet>&& value) { SetSubnets(value); return *this;}
207 
211  inline ReplicationSubnetGroup& AddSubnets(const Subnet& value) { m_subnetsHasBeenSet = true; m_subnets.push_back(value); return *this; }
212 
216  inline ReplicationSubnetGroup& AddSubnets(Subnet&& value) { m_subnetsHasBeenSet = true; m_subnets.push_back(value); return *this; }
217 
218  private:
219  Aws::String m_replicationSubnetGroupIdentifier;
220  bool m_replicationSubnetGroupIdentifierHasBeenSet;
221  Aws::String m_replicationSubnetGroupDescription;
222  bool m_replicationSubnetGroupDescriptionHasBeenSet;
223  Aws::String m_vpcId;
224  bool m_vpcIdHasBeenSet;
225  Aws::String m_subnetGroupStatus;
226  bool m_subnetGroupStatusHasBeenSet;
227  Aws::Vector<Subnet> m_subnets;
228  bool m_subnetsHasBeenSet;
229  };
230 
231 } // namespace Model
232 } // namespace DatabaseMigrationService
233 } // namespace Aws
ReplicationSubnetGroup & WithSubnetGroupStatus(const Aws::String &value)
ReplicationSubnetGroup & WithReplicationSubnetGroupDescription(Aws::String &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
ReplicationSubnetGroup & WithVpcId(Aws::String &&value)
ReplicationSubnetGroup & WithReplicationSubnetGroupDescription(const char *value)
#define AWS_DATABASEMIGRATIONSERVICE_API
ReplicationSubnetGroup & WithVpcId(const Aws::String &value)
ReplicationSubnetGroup & AddSubnets(const Subnet &value)
ReplicationSubnetGroup & WithSubnets(const Aws::Vector< Subnet > &value)
ReplicationSubnetGroup & WithSubnetGroupStatus(const char *value)
ReplicationSubnetGroup & WithReplicationSubnetGroupDescription(const Aws::String &value)
ReplicationSubnetGroup & WithSubnetGroupStatus(Aws::String &&value)
ReplicationSubnetGroup & WithReplicationSubnetGroupIdentifier(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ReplicationSubnetGroup & WithSubnets(Aws::Vector< Subnet > &&value)
ReplicationSubnetGroup & WithReplicationSubnetGroupIdentifier(Aws::String &&value)
ReplicationSubnetGroup & WithReplicationSubnetGroupIdentifier(const Aws::String &value)
JSON (JavaScript Object Notation).