AWS SDK for C++  0.14.3
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 
39  {
40  public:
43  ReplicationSubnetGroup& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
44  Aws::Utils::Json::JsonValue Jsonize() const;
45 
49  inline const Aws::String& GetReplicationSubnetGroupIdentifier() const{ return m_replicationSubnetGroupIdentifier; }
50 
54  inline void SetReplicationSubnetGroupIdentifier(const Aws::String& value) { m_replicationSubnetGroupIdentifierHasBeenSet = true; m_replicationSubnetGroupIdentifier = value; }
55 
59  inline void SetReplicationSubnetGroupIdentifier(Aws::String&& value) { m_replicationSubnetGroupIdentifierHasBeenSet = true; m_replicationSubnetGroupIdentifier = value; }
60 
64  inline void SetReplicationSubnetGroupIdentifier(const char* value) { m_replicationSubnetGroupIdentifierHasBeenSet = true; m_replicationSubnetGroupIdentifier.assign(value); }
65 
69  inline ReplicationSubnetGroup& WithReplicationSubnetGroupIdentifier(const Aws::String& value) { SetReplicationSubnetGroupIdentifier(value); return *this;}
70 
74  inline ReplicationSubnetGroup& WithReplicationSubnetGroupIdentifier(Aws::String&& value) { SetReplicationSubnetGroupIdentifier(value); return *this;}
75 
79  inline ReplicationSubnetGroup& WithReplicationSubnetGroupIdentifier(const char* value) { SetReplicationSubnetGroupIdentifier(value); return *this;}
80 
84  inline const Aws::String& GetReplicationSubnetGroupDescription() const{ return m_replicationSubnetGroupDescription; }
85 
89  inline void SetReplicationSubnetGroupDescription(const Aws::String& value) { m_replicationSubnetGroupDescriptionHasBeenSet = true; m_replicationSubnetGroupDescription = value; }
90 
94  inline void SetReplicationSubnetGroupDescription(Aws::String&& value) { m_replicationSubnetGroupDescriptionHasBeenSet = true; m_replicationSubnetGroupDescription = value; }
95 
99  inline void SetReplicationSubnetGroupDescription(const char* value) { m_replicationSubnetGroupDescriptionHasBeenSet = true; m_replicationSubnetGroupDescription.assign(value); }
100 
104  inline ReplicationSubnetGroup& WithReplicationSubnetGroupDescription(const Aws::String& value) { SetReplicationSubnetGroupDescription(value); return *this;}
105 
109  inline ReplicationSubnetGroup& WithReplicationSubnetGroupDescription(Aws::String&& value) { SetReplicationSubnetGroupDescription(value); return *this;}
110 
114  inline ReplicationSubnetGroup& WithReplicationSubnetGroupDescription(const char* value) { SetReplicationSubnetGroupDescription(value); return *this;}
115 
119  inline const Aws::String& GetVpcId() const{ return m_vpcId; }
120 
124  inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
125 
129  inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
130 
134  inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
135 
139  inline ReplicationSubnetGroup& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
140 
144  inline ReplicationSubnetGroup& WithVpcId(Aws::String&& value) { SetVpcId(value); return *this;}
145 
149  inline ReplicationSubnetGroup& WithVpcId(const char* value) { SetVpcId(value); return *this;}
150 
154  inline const Aws::String& GetSubnetGroupStatus() const{ return m_subnetGroupStatus; }
155 
159  inline void SetSubnetGroupStatus(const Aws::String& value) { m_subnetGroupStatusHasBeenSet = true; m_subnetGroupStatus = value; }
160 
164  inline void SetSubnetGroupStatus(Aws::String&& value) { m_subnetGroupStatusHasBeenSet = true; m_subnetGroupStatus = value; }
165 
169  inline void SetSubnetGroupStatus(const char* value) { m_subnetGroupStatusHasBeenSet = true; m_subnetGroupStatus.assign(value); }
170 
174  inline ReplicationSubnetGroup& WithSubnetGroupStatus(const Aws::String& value) { SetSubnetGroupStatus(value); return *this;}
175 
179  inline ReplicationSubnetGroup& WithSubnetGroupStatus(Aws::String&& value) { SetSubnetGroupStatus(value); return *this;}
180 
184  inline ReplicationSubnetGroup& WithSubnetGroupStatus(const char* value) { SetSubnetGroupStatus(value); return *this;}
185 
189  inline const Aws::Vector<Subnet>& GetSubnets() const{ return m_subnets; }
190 
194  inline void SetSubnets(const Aws::Vector<Subnet>& value) { m_subnetsHasBeenSet = true; m_subnets = value; }
195 
199  inline void SetSubnets(Aws::Vector<Subnet>&& value) { m_subnetsHasBeenSet = true; m_subnets = value; }
200 
204  inline ReplicationSubnetGroup& WithSubnets(const Aws::Vector<Subnet>& value) { SetSubnets(value); return *this;}
205 
209  inline ReplicationSubnetGroup& WithSubnets(Aws::Vector<Subnet>&& value) { SetSubnets(value); return *this;}
210 
214  inline ReplicationSubnetGroup& AddSubnets(const Subnet& value) { m_subnetsHasBeenSet = true; m_subnets.push_back(value); return *this; }
215 
219  inline ReplicationSubnetGroup& AddSubnets(Subnet&& value) { m_subnetsHasBeenSet = true; m_subnets.push_back(value); return *this; }
220 
221  private:
222  Aws::String m_replicationSubnetGroupIdentifier;
223  bool m_replicationSubnetGroupIdentifierHasBeenSet;
224  Aws::String m_replicationSubnetGroupDescription;
225  bool m_replicationSubnetGroupDescriptionHasBeenSet;
226  Aws::String m_vpcId;
227  bool m_vpcIdHasBeenSet;
228  Aws::String m_subnetGroupStatus;
229  bool m_subnetGroupStatusHasBeenSet;
230  Aws::Vector<Subnet> m_subnets;
231  bool m_subnetsHasBeenSet;
232  };
233 
234 } // namespace Model
235 } // namespace DatabaseMigrationService
236 } // 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).