7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/crt/cbor/Cbor.h>
10#include <aws/memorydb/MemoryDB_EXPORTS.h>
11#include <aws/memorydb/model/NetworkType.h>
12#include <aws/memorydb/model/Subnet.h>
37 AWS_MEMORYDB_API
SubnetGroup(
const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
39 AWS_MEMORYDB_API
void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder)
const;
47 template <
typename NameT = Aws::String>
49 m_nameHasBeenSet =
true;
50 m_name = std::forward<NameT>(value);
52 template <
typename NameT = Aws::String>
54 SetName(std::forward<NameT>(value));
65 template <
typename DescriptionT = Aws::String>
67 m_descriptionHasBeenSet =
true;
68 m_description = std::forward<DescriptionT>(value);
70 template <
typename DescriptionT = Aws::String>
83 template <
typename VpcIdT = Aws::String>
85 m_vpcIdHasBeenSet =
true;
86 m_vpcId = std::forward<VpcIdT>(value);
88 template <
typename VpcIdT = Aws::String>
90 SetVpcId(std::forward<VpcIdT>(value));
101 template <
typename SubnetsT = Aws::Vector<Subnet>>
103 m_subnetsHasBeenSet =
true;
104 m_subnets = std::forward<SubnetsT>(value);
106 template <
typename SubnetsT = Aws::Vector<Subnet>>
111 template <
typename SubnetsT = Subnet>
113 m_subnetsHasBeenSet =
true;
114 m_subnets.emplace_back(std::forward<SubnetsT>(value));
125 template <
typename ARNT = Aws::String>
127 m_aRNHasBeenSet =
true;
128 m_aRN = std::forward<ARNT>(value);
130 template <
typename ARNT = Aws::String>
132 SetARN(std::forward<ARNT>(value));
145 template <
typename SupportedNetworkTypesT = Aws::Vector<NetworkType>>
147 m_supportedNetworkTypesHasBeenSet =
true;
148 m_supportedNetworkTypes = std::forward<SupportedNetworkTypesT>(value);
150 template <
typename SupportedNetworkTypesT = Aws::Vector<NetworkType>>
156 m_supportedNetworkTypesHasBeenSet =
true;
157 m_supportedNetworkTypes.push_back(value);
173 bool m_nameHasBeenSet =
false;
174 bool m_descriptionHasBeenSet =
false;
175 bool m_vpcIdHasBeenSet =
false;
176 bool m_subnetsHasBeenSet =
false;
177 bool m_aRNHasBeenSet =
false;
178 bool m_supportedNetworkTypesHasBeenSet =
false;
const Aws::String & GetName() const
AWS_MEMORYDB_API SubnetGroup(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
SubnetGroup & WithVpcId(VpcIdT &&value)
AWS_MEMORYDB_API SubnetGroup & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
bool NameHasBeenSet() const
SubnetGroup & AddSubnets(SubnetsT &&value)
bool ARNHasBeenSet() const
SubnetGroup & WithDescription(DescriptionT &&value)
void SetSubnets(SubnetsT &&value)
const Aws::String & GetARN() const
SubnetGroup & WithName(NameT &&value)
SubnetGroup & AddSupportedNetworkTypes(NetworkType value)
SubnetGroup & WithSubnets(SubnetsT &&value)
void SetSupportedNetworkTypes(SupportedNetworkTypesT &&value)
bool VpcIdHasBeenSet() const
const Aws::Vector< NetworkType > & GetSupportedNetworkTypes() const
bool SubnetsHasBeenSet() const
AWS_MEMORYDB_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
void SetVpcId(VpcIdT &&value)
SubnetGroup & WithARN(ARNT &&value)
const Aws::String & GetDescription() const
const Aws::String & GetVpcId() const
const Aws::Vector< Subnet > & GetSubnets() const
void SetARN(ARNT &&value)
bool DescriptionHasBeenSet() const
SubnetGroup & WithSupportedNetworkTypes(SupportedNetworkTypesT &&value)
void SetName(NameT &&value)
bool SupportedNetworkTypesHasBeenSet() const
void SetDescription(DescriptionT &&value)
AWS_MEMORYDB_API SubnetGroup()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector