AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
ReplicationSubnetGroup.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/dms/DatabaseMigrationService_EXPORTS.h>
10#include <aws/dms/model/Subnet.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace DatabaseMigrationService {
22namespace Model {
23
32 public:
33 AWS_DATABASEMIGRATIONSERVICE_API ReplicationSubnetGroup() = default;
34 AWS_DATABASEMIGRATIONSERVICE_API ReplicationSubnetGroup(Aws::Utils::Json::JsonView jsonValue);
35 AWS_DATABASEMIGRATIONSERVICE_API ReplicationSubnetGroup& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_DATABASEMIGRATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetReplicationSubnetGroupIdentifier() const { return m_replicationSubnetGroupIdentifier; }
43 inline bool ReplicationSubnetGroupIdentifierHasBeenSet() const { return m_replicationSubnetGroupIdentifierHasBeenSet; }
44 template <typename ReplicationSubnetGroupIdentifierT = Aws::String>
45 void SetReplicationSubnetGroupIdentifier(ReplicationSubnetGroupIdentifierT&& value) {
46 m_replicationSubnetGroupIdentifierHasBeenSet = true;
47 m_replicationSubnetGroupIdentifier = std::forward<ReplicationSubnetGroupIdentifierT>(value);
48 }
49 template <typename ReplicationSubnetGroupIdentifierT = Aws::String>
50 ReplicationSubnetGroup& WithReplicationSubnetGroupIdentifier(ReplicationSubnetGroupIdentifierT&& value) {
51 SetReplicationSubnetGroupIdentifier(std::forward<ReplicationSubnetGroupIdentifierT>(value));
52 return *this;
53 }
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) {
64 m_replicationSubnetGroupDescriptionHasBeenSet = true;
65 m_replicationSubnetGroupDescription = std::forward<ReplicationSubnetGroupDescriptionT>(value);
66 }
67 template <typename ReplicationSubnetGroupDescriptionT = Aws::String>
68 ReplicationSubnetGroup& WithReplicationSubnetGroupDescription(ReplicationSubnetGroupDescriptionT&& value) {
69 SetReplicationSubnetGroupDescription(std::forward<ReplicationSubnetGroupDescriptionT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetVpcId() const { return m_vpcId; }
79 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
80 template <typename VpcIdT = Aws::String>
81 void SetVpcId(VpcIdT&& value) {
82 m_vpcIdHasBeenSet = true;
83 m_vpcId = std::forward<VpcIdT>(value);
84 }
85 template <typename VpcIdT = Aws::String>
87 SetVpcId(std::forward<VpcIdT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetSubnetGroupStatus() const { return m_subnetGroupStatus; }
97 inline bool SubnetGroupStatusHasBeenSet() const { return m_subnetGroupStatusHasBeenSet; }
98 template <typename SubnetGroupStatusT = Aws::String>
99 void SetSubnetGroupStatus(SubnetGroupStatusT&& value) {
100 m_subnetGroupStatusHasBeenSet = true;
101 m_subnetGroupStatus = std::forward<SubnetGroupStatusT>(value);
102 }
103 template <typename SubnetGroupStatusT = Aws::String>
104 ReplicationSubnetGroup& WithSubnetGroupStatus(SubnetGroupStatusT&& value) {
105 SetSubnetGroupStatus(std::forward<SubnetGroupStatusT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::Vector<Subnet>& GetSubnets() const { return m_subnets; }
115 inline bool SubnetsHasBeenSet() const { return m_subnetsHasBeenSet; }
116 template <typename SubnetsT = Aws::Vector<Subnet>>
117 void SetSubnets(SubnetsT&& value) {
118 m_subnetsHasBeenSet = true;
119 m_subnets = std::forward<SubnetsT>(value);
120 }
121 template <typename SubnetsT = Aws::Vector<Subnet>>
123 SetSubnets(std::forward<SubnetsT>(value));
124 return *this;
125 }
126 template <typename SubnetsT = Subnet>
128 m_subnetsHasBeenSet = true;
129 m_subnets.emplace_back(std::forward<SubnetsT>(value));
130 return *this;
131 }
133
135
140 inline const Aws::Vector<Aws::String>& GetSupportedNetworkTypes() const { return m_supportedNetworkTypes; }
141 inline bool SupportedNetworkTypesHasBeenSet() const { return m_supportedNetworkTypesHasBeenSet; }
142 template <typename SupportedNetworkTypesT = Aws::Vector<Aws::String>>
143 void SetSupportedNetworkTypes(SupportedNetworkTypesT&& value) {
144 m_supportedNetworkTypesHasBeenSet = true;
145 m_supportedNetworkTypes = std::forward<SupportedNetworkTypesT>(value);
146 }
147 template <typename SupportedNetworkTypesT = Aws::Vector<Aws::String>>
148 ReplicationSubnetGroup& WithSupportedNetworkTypes(SupportedNetworkTypesT&& value) {
149 SetSupportedNetworkTypes(std::forward<SupportedNetworkTypesT>(value));
150 return *this;
151 }
152 template <typename SupportedNetworkTypesT = Aws::String>
153 ReplicationSubnetGroup& AddSupportedNetworkTypes(SupportedNetworkTypesT&& value) {
154 m_supportedNetworkTypesHasBeenSet = true;
155 m_supportedNetworkTypes.emplace_back(std::forward<SupportedNetworkTypesT>(value));
156 return *this;
157 }
159
161
168 inline bool GetIsReadOnly() const { return m_isReadOnly; }
169 inline bool IsReadOnlyHasBeenSet() const { return m_isReadOnlyHasBeenSet; }
170 inline void SetIsReadOnly(bool value) {
171 m_isReadOnlyHasBeenSet = true;
172 m_isReadOnly = value;
173 }
175 SetIsReadOnly(value);
176 return *this;
177 }
179 private:
180 Aws::String m_replicationSubnetGroupIdentifier;
181
182 Aws::String m_replicationSubnetGroupDescription;
183
184 Aws::String m_vpcId;
185
186 Aws::String m_subnetGroupStatus;
187
188 Aws::Vector<Subnet> m_subnets;
189
190 Aws::Vector<Aws::String> m_supportedNetworkTypes;
191
192 bool m_isReadOnly{false};
193 bool m_replicationSubnetGroupIdentifierHasBeenSet = false;
194 bool m_replicationSubnetGroupDescriptionHasBeenSet = false;
195 bool m_vpcIdHasBeenSet = false;
196 bool m_subnetGroupStatusHasBeenSet = false;
197 bool m_subnetsHasBeenSet = false;
198 bool m_supportedNetworkTypesHasBeenSet = false;
199 bool m_isReadOnlyHasBeenSet = false;
200};
201
202} // namespace Model
203} // namespace DatabaseMigrationService
204} // 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