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/AvailabilityZone.h>
12#include <aws/memorydb/model/NetworkType.h>
35 AWS_MEMORYDB_API
Subnet(
const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
36 AWS_MEMORYDB_API
Subnet&
operator=(
const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
37 AWS_MEMORYDB_API
void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder)
const;
45 template <
typename IdentifierT = Aws::String>
47 m_identifierHasBeenSet =
true;
48 m_identifier = std::forward<IdentifierT>(value);
50 template <
typename IdentifierT = Aws::String>
63 template <
typename AvailabilityZoneT = AvailabilityZone>
65 m_availabilityZoneHasBeenSet =
true;
66 m_availabilityZone = std::forward<AvailabilityZoneT>(value);
68 template <
typename AvailabilityZoneT = AvailabilityZone>
83 template <
typename SupportedNetworkTypesT = Aws::Vector<NetworkType>>
85 m_supportedNetworkTypesHasBeenSet =
true;
86 m_supportedNetworkTypes = std::forward<SupportedNetworkTypesT>(value);
88 template <
typename SupportedNetworkTypesT = Aws::Vector<NetworkType>>
94 m_supportedNetworkTypesHasBeenSet =
true;
95 m_supportedNetworkTypes.push_back(value);
105 bool m_identifierHasBeenSet =
false;
106 bool m_availabilityZoneHasBeenSet =
false;
107 bool m_supportedNetworkTypesHasBeenSet =
false;
AWS_MEMORYDB_API Subnet()=default
Subnet & AddSupportedNetworkTypes(NetworkType value)
AWS_MEMORYDB_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
Subnet & WithIdentifier(IdentifierT &&value)
const Aws::Vector< NetworkType > & GetSupportedNetworkTypes() const
bool SupportedNetworkTypesHasBeenSet() const
bool AvailabilityZoneHasBeenSet() const
void SetAvailabilityZone(AvailabilityZoneT &&value)
AWS_MEMORYDB_API Subnet & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
Subnet & WithSupportedNetworkTypes(SupportedNetworkTypesT &&value)
void SetIdentifier(IdentifierT &&value)
bool IdentifierHasBeenSet() const
AWS_MEMORYDB_API Subnet(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const Aws::String & GetIdentifier() const
const AvailabilityZone & GetAvailabilityZone() const
void SetSupportedNetworkTypes(SupportedNetworkTypesT &&value)
Subnet & WithAvailabilityZone(AvailabilityZoneT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector