AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename ReplicationSubnetGroupIdentifierT = Aws::String>
51 void SetReplicationSubnetGroupIdentifier(ReplicationSubnetGroupIdentifierT&& value) { m_replicationSubnetGroupIdentifierHasBeenSet = true; m_replicationSubnetGroupIdentifier = std::forward<ReplicationSubnetGroupIdentifierT>(value); }
52 template<typename ReplicationSubnetGroupIdentifierT = Aws::String>
53 ReplicationSubnetGroup& WithReplicationSubnetGroupIdentifier(ReplicationSubnetGroupIdentifierT&& value) { SetReplicationSubnetGroupIdentifier(std::forward<ReplicationSubnetGroupIdentifierT>(value)); return *this;}
55
57
60 inline const Aws::String& GetReplicationSubnetGroupDescription() const { return m_replicationSubnetGroupDescription; }
61 inline bool ReplicationSubnetGroupDescriptionHasBeenSet() const { return m_replicationSubnetGroupDescriptionHasBeenSet; }
62 template<typename ReplicationSubnetGroupDescriptionT = Aws::String>
63 void SetReplicationSubnetGroupDescription(ReplicationSubnetGroupDescriptionT&& value) { m_replicationSubnetGroupDescriptionHasBeenSet = true; m_replicationSubnetGroupDescription = std::forward<ReplicationSubnetGroupDescriptionT>(value); }
64 template<typename ReplicationSubnetGroupDescriptionT = Aws::String>
65 ReplicationSubnetGroup& WithReplicationSubnetGroupDescription(ReplicationSubnetGroupDescriptionT&& value) { SetReplicationSubnetGroupDescription(std::forward<ReplicationSubnetGroupDescriptionT>(value)); return *this;}
67
69
72 inline const Aws::String& GetVpcId() const { return m_vpcId; }
73 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
74 template<typename VpcIdT = Aws::String>
75 void SetVpcId(VpcIdT&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::forward<VpcIdT>(value); }
76 template<typename VpcIdT = Aws::String>
77 ReplicationSubnetGroup& WithVpcId(VpcIdT&& value) { SetVpcId(std::forward<VpcIdT>(value)); return *this;}
79
81
84 inline const Aws::String& GetSubnetGroupStatus() const { return m_subnetGroupStatus; }
85 inline bool SubnetGroupStatusHasBeenSet() const { return m_subnetGroupStatusHasBeenSet; }
86 template<typename SubnetGroupStatusT = Aws::String>
87 void SetSubnetGroupStatus(SubnetGroupStatusT&& value) { m_subnetGroupStatusHasBeenSet = true; m_subnetGroupStatus = std::forward<SubnetGroupStatusT>(value); }
88 template<typename SubnetGroupStatusT = Aws::String>
89 ReplicationSubnetGroup& WithSubnetGroupStatus(SubnetGroupStatusT&& value) { SetSubnetGroupStatus(std::forward<SubnetGroupStatusT>(value)); return *this;}
91
93
96 inline const Aws::Vector<Subnet>& GetSubnets() const { return m_subnets; }
97 inline bool SubnetsHasBeenSet() const { return m_subnetsHasBeenSet; }
98 template<typename SubnetsT = Aws::Vector<Subnet>>
99 void SetSubnets(SubnetsT&& value) { m_subnetsHasBeenSet = true; m_subnets = std::forward<SubnetsT>(value); }
100 template<typename SubnetsT = Aws::Vector<Subnet>>
101 ReplicationSubnetGroup& WithSubnets(SubnetsT&& value) { SetSubnets(std::forward<SubnetsT>(value)); return *this;}
102 template<typename SubnetsT = Subnet>
103 ReplicationSubnetGroup& AddSubnets(SubnetsT&& value) { m_subnetsHasBeenSet = true; m_subnets.emplace_back(std::forward<SubnetsT>(value)); return *this; }
105
107
112 inline const Aws::Vector<Aws::String>& GetSupportedNetworkTypes() const { return m_supportedNetworkTypes; }
113 inline bool SupportedNetworkTypesHasBeenSet() const { return m_supportedNetworkTypesHasBeenSet; }
114 template<typename SupportedNetworkTypesT = Aws::Vector<Aws::String>>
115 void SetSupportedNetworkTypes(SupportedNetworkTypesT&& value) { m_supportedNetworkTypesHasBeenSet = true; m_supportedNetworkTypes = std::forward<SupportedNetworkTypesT>(value); }
116 template<typename SupportedNetworkTypesT = Aws::Vector<Aws::String>>
117 ReplicationSubnetGroup& WithSupportedNetworkTypes(SupportedNetworkTypesT&& value) { SetSupportedNetworkTypes(std::forward<SupportedNetworkTypesT>(value)); return *this;}
118 template<typename SupportedNetworkTypesT = Aws::String>
119 ReplicationSubnetGroup& AddSupportedNetworkTypes(SupportedNetworkTypesT&& value) { m_supportedNetworkTypesHasBeenSet = true; m_supportedNetworkTypes.emplace_back(std::forward<SupportedNetworkTypesT>(value)); return *this; }
121 private:
122
123 Aws::String m_replicationSubnetGroupIdentifier;
124 bool m_replicationSubnetGroupIdentifierHasBeenSet = false;
125
126 Aws::String m_replicationSubnetGroupDescription;
127 bool m_replicationSubnetGroupDescriptionHasBeenSet = false;
128
129 Aws::String m_vpcId;
130 bool m_vpcIdHasBeenSet = false;
131
132 Aws::String m_subnetGroupStatus;
133 bool m_subnetGroupStatusHasBeenSet = false;
134
135 Aws::Vector<Subnet> m_subnets;
136 bool m_subnetsHasBeenSet = false;
137
138 Aws::Vector<Aws::String> m_supportedNetworkTypes;
139 bool m_supportedNetworkTypesHasBeenSet = false;
140 };
141
142} // namespace Model
143} // namespace DatabaseMigrationService
144} // namespace Aws
ReplicationSubnetGroup & WithSubnetGroupStatus(SubnetGroupStatusT &&value)
void SetReplicationSubnetGroupDescription(ReplicationSubnetGroupDescriptionT &&value)
ReplicationSubnetGroup & AddSupportedNetworkTypes(SupportedNetworkTypesT &&value)
AWS_DATABASEMIGRATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Aws::String > & GetSupportedNetworkTypes() const
ReplicationSubnetGroup & WithReplicationSubnetGroupDescription(ReplicationSubnetGroupDescriptionT &&value)
AWS_DATABASEMIGRATIONSERVICE_API ReplicationSubnetGroup()=default
AWS_DATABASEMIGRATIONSERVICE_API ReplicationSubnetGroup(Aws::Utils::Json::JsonView jsonValue)
ReplicationSubnetGroup & WithSupportedNetworkTypes(SupportedNetworkTypesT &&value)
AWS_DATABASEMIGRATIONSERVICE_API ReplicationSubnetGroup & operator=(Aws::Utils::Json::JsonView jsonValue)
ReplicationSubnetGroup & WithReplicationSubnetGroupIdentifier(ReplicationSubnetGroupIdentifierT &&value)
void SetReplicationSubnetGroupIdentifier(ReplicationSubnetGroupIdentifierT &&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