AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ReplicationSubnetGroup.h
1
6#pragma once
7#include <aws/dms/DatabaseMigrationService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/dms/model/Subnet.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace DatabaseMigrationService
24{
25namespace Model
26{
27
36 {
37 public:
38 AWS_DATABASEMIGRATIONSERVICE_API ReplicationSubnetGroup();
39 AWS_DATABASEMIGRATIONSERVICE_API ReplicationSubnetGroup(Aws::Utils::Json::JsonView jsonValue);
40 AWS_DATABASEMIGRATIONSERVICE_API ReplicationSubnetGroup& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_DATABASEMIGRATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetReplicationSubnetGroupIdentifier() const{ return m_replicationSubnetGroupIdentifier; }
49 inline bool ReplicationSubnetGroupIdentifierHasBeenSet() const { return m_replicationSubnetGroupIdentifierHasBeenSet; }
50 inline void SetReplicationSubnetGroupIdentifier(const Aws::String& value) { m_replicationSubnetGroupIdentifierHasBeenSet = true; m_replicationSubnetGroupIdentifier = value; }
51 inline void SetReplicationSubnetGroupIdentifier(Aws::String&& value) { m_replicationSubnetGroupIdentifierHasBeenSet = true; m_replicationSubnetGroupIdentifier = std::move(value); }
52 inline void SetReplicationSubnetGroupIdentifier(const char* value) { m_replicationSubnetGroupIdentifierHasBeenSet = true; m_replicationSubnetGroupIdentifier.assign(value); }
57
59
62 inline const Aws::String& GetReplicationSubnetGroupDescription() const{ return m_replicationSubnetGroupDescription; }
63 inline bool ReplicationSubnetGroupDescriptionHasBeenSet() const { return m_replicationSubnetGroupDescriptionHasBeenSet; }
64 inline void SetReplicationSubnetGroupDescription(const Aws::String& value) { m_replicationSubnetGroupDescriptionHasBeenSet = true; m_replicationSubnetGroupDescription = value; }
65 inline void SetReplicationSubnetGroupDescription(Aws::String&& value) { m_replicationSubnetGroupDescriptionHasBeenSet = true; m_replicationSubnetGroupDescription = std::move(value); }
66 inline void SetReplicationSubnetGroupDescription(const char* value) { m_replicationSubnetGroupDescriptionHasBeenSet = true; m_replicationSubnetGroupDescription.assign(value); }
71
73
76 inline const Aws::String& GetVpcId() const{ return m_vpcId; }
77 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
78 inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
79 inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
80 inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
81 inline ReplicationSubnetGroup& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
82 inline ReplicationSubnetGroup& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
83 inline ReplicationSubnetGroup& WithVpcId(const char* value) { SetVpcId(value); return *this;}
85
87
90 inline const Aws::String& GetSubnetGroupStatus() const{ return m_subnetGroupStatus; }
91 inline bool SubnetGroupStatusHasBeenSet() const { return m_subnetGroupStatusHasBeenSet; }
92 inline void SetSubnetGroupStatus(const Aws::String& value) { m_subnetGroupStatusHasBeenSet = true; m_subnetGroupStatus = value; }
93 inline void SetSubnetGroupStatus(Aws::String&& value) { m_subnetGroupStatusHasBeenSet = true; m_subnetGroupStatus = std::move(value); }
94 inline void SetSubnetGroupStatus(const char* value) { m_subnetGroupStatusHasBeenSet = true; m_subnetGroupStatus.assign(value); }
96 inline ReplicationSubnetGroup& WithSubnetGroupStatus(Aws::String&& value) { SetSubnetGroupStatus(std::move(value)); return *this;}
97 inline ReplicationSubnetGroup& WithSubnetGroupStatus(const char* value) { SetSubnetGroupStatus(value); return *this;}
99
101
104 inline const Aws::Vector<Subnet>& GetSubnets() const{ return m_subnets; }
105 inline bool SubnetsHasBeenSet() const { return m_subnetsHasBeenSet; }
106 inline void SetSubnets(const Aws::Vector<Subnet>& value) { m_subnetsHasBeenSet = true; m_subnets = value; }
107 inline void SetSubnets(Aws::Vector<Subnet>&& value) { m_subnetsHasBeenSet = true; m_subnets = std::move(value); }
108 inline ReplicationSubnetGroup& WithSubnets(const Aws::Vector<Subnet>& value) { SetSubnets(value); return *this;}
109 inline ReplicationSubnetGroup& WithSubnets(Aws::Vector<Subnet>&& value) { SetSubnets(std::move(value)); return *this;}
110 inline ReplicationSubnetGroup& AddSubnets(const Subnet& value) { m_subnetsHasBeenSet = true; m_subnets.push_back(value); return *this; }
111 inline ReplicationSubnetGroup& AddSubnets(Subnet&& value) { m_subnetsHasBeenSet = true; m_subnets.push_back(std::move(value)); return *this; }
113
115
120 inline const Aws::Vector<Aws::String>& GetSupportedNetworkTypes() const{ return m_supportedNetworkTypes; }
121 inline bool SupportedNetworkTypesHasBeenSet() const { return m_supportedNetworkTypesHasBeenSet; }
122 inline void SetSupportedNetworkTypes(const Aws::Vector<Aws::String>& value) { m_supportedNetworkTypesHasBeenSet = true; m_supportedNetworkTypes = value; }
123 inline void SetSupportedNetworkTypes(Aws::Vector<Aws::String>&& value) { m_supportedNetworkTypesHasBeenSet = true; m_supportedNetworkTypes = std::move(value); }
126 inline ReplicationSubnetGroup& AddSupportedNetworkTypes(const Aws::String& value) { m_supportedNetworkTypesHasBeenSet = true; m_supportedNetworkTypes.push_back(value); return *this; }
127 inline ReplicationSubnetGroup& AddSupportedNetworkTypes(Aws::String&& value) { m_supportedNetworkTypesHasBeenSet = true; m_supportedNetworkTypes.push_back(std::move(value)); return *this; }
128 inline ReplicationSubnetGroup& AddSupportedNetworkTypes(const char* value) { m_supportedNetworkTypesHasBeenSet = true; m_supportedNetworkTypes.push_back(value); return *this; }
130 private:
131
132 Aws::String m_replicationSubnetGroupIdentifier;
133 bool m_replicationSubnetGroupIdentifierHasBeenSet = false;
134
135 Aws::String m_replicationSubnetGroupDescription;
136 bool m_replicationSubnetGroupDescriptionHasBeenSet = false;
137
138 Aws::String m_vpcId;
139 bool m_vpcIdHasBeenSet = false;
140
141 Aws::String m_subnetGroupStatus;
142 bool m_subnetGroupStatusHasBeenSet = false;
143
144 Aws::Vector<Subnet> m_subnets;
145 bool m_subnetsHasBeenSet = false;
146
147 Aws::Vector<Aws::String> m_supportedNetworkTypes;
148 bool m_supportedNetworkTypesHasBeenSet = false;
149 };
150
151} // namespace Model
152} // namespace DatabaseMigrationService
153} // namespace Aws
ReplicationSubnetGroup & WithSubnetGroupStatus(Aws::String &&value)
ReplicationSubnetGroup & WithSubnetGroupStatus(const Aws::String &value)
ReplicationSubnetGroup & WithSubnets(Aws::Vector< Subnet > &&value)
ReplicationSubnetGroup & AddSupportedNetworkTypes(Aws::String &&value)
AWS_DATABASEMIGRATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
ReplicationSubnetGroup & WithReplicationSubnetGroupIdentifier(const Aws::String &value)
const Aws::Vector< Aws::String > & GetSupportedNetworkTypes() const
ReplicationSubnetGroup & WithSupportedNetworkTypes(Aws::Vector< Aws::String > &&value)
ReplicationSubnetGroup & AddSupportedNetworkTypes(const char *value)
ReplicationSubnetGroup & WithSubnets(const Aws::Vector< Subnet > &value)
ReplicationSubnetGroup & WithReplicationSubnetGroupIdentifier(const char *value)
ReplicationSubnetGroup & WithReplicationSubnetGroupDescription(const Aws::String &value)
void SetSupportedNetworkTypes(const Aws::Vector< Aws::String > &value)
AWS_DATABASEMIGRATIONSERVICE_API ReplicationSubnetGroup(Aws::Utils::Json::JsonView jsonValue)
ReplicationSubnetGroup & WithSupportedNetworkTypes(const Aws::Vector< Aws::String > &value)
ReplicationSubnetGroup & WithReplicationSubnetGroupDescription(const char *value)
AWS_DATABASEMIGRATIONSERVICE_API ReplicationSubnetGroup & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DATABASEMIGRATIONSERVICE_API ReplicationSubnetGroup()
ReplicationSubnetGroup & WithReplicationSubnetGroupDescription(Aws::String &&value)
ReplicationSubnetGroup & AddSupportedNetworkTypes(const Aws::String &value)
ReplicationSubnetGroup & WithVpcId(Aws::String &&value)
void SetSupportedNetworkTypes(Aws::Vector< Aws::String > &&value)
ReplicationSubnetGroup & WithReplicationSubnetGroupIdentifier(Aws::String &&value)
ReplicationSubnetGroup & AddSubnets(const Subnet &value)
ReplicationSubnetGroup & WithVpcId(const Aws::String &value)
ReplicationSubnetGroup & WithSubnetGroupStatus(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue