7#include <aws/elasticache/ElastiCache_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/elasticache/model/AvailabilityZone.h>
11#include <aws/elasticache/model/SubnetOutpost.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/elasticache/model/NetworkType.h>
40 AWS_ELASTICACHE_API
Subnet() =
default;
54 template<
typename SubnetIdentifierT = Aws::String>
55 void SetSubnetIdentifier(SubnetIdentifierT&& value) { m_subnetIdentifierHasBeenSet =
true; m_subnetIdentifier = std::forward<SubnetIdentifierT>(value); }
56 template<
typename SubnetIdentifierT = Aws::String>
66 template<
typename SubnetAvailabilityZoneT = AvailabilityZone>
67 void SetSubnetAvailabilityZone(SubnetAvailabilityZoneT&& value) { m_subnetAvailabilityZoneHasBeenSet =
true; m_subnetAvailabilityZone = std::forward<SubnetAvailabilityZoneT>(value); }
68 template<
typename SubnetAvailabilityZoneT = AvailabilityZone>
78 template<
typename SubnetOutpostT = SubnetOutpost>
79 void SetSubnetOutpost(SubnetOutpostT&& value) { m_subnetOutpostHasBeenSet =
true; m_subnetOutpost = std::forward<SubnetOutpostT>(value); }
80 template<
typename SubnetOutpostT = SubnetOutpost>
93 template<
typename SupportedNetworkTypesT = Aws::Vector<NetworkType>>
94 void SetSupportedNetworkTypes(SupportedNetworkTypesT&& value) { m_supportedNetworkTypesHasBeenSet =
true; m_supportedNetworkTypes = std::forward<SupportedNetworkTypesT>(value); }
95 template<
typename SupportedNetworkTypesT = Aws::Vector<NetworkType>>
102 bool m_subnetIdentifierHasBeenSet =
false;
105 bool m_subnetAvailabilityZoneHasBeenSet =
false;
108 bool m_subnetOutpostHasBeenSet =
false;
111 bool m_supportedNetworkTypesHasBeenSet =
false;
bool SubnetOutpostHasBeenSet() const
Subnet & WithSubnetIdentifier(SubnetIdentifierT &&value)
AWS_ELASTICACHE_API Subnet()=default
void SetSubnetIdentifier(SubnetIdentifierT &&value)
AWS_ELASTICACHE_API Subnet & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Subnet & WithSupportedNetworkTypes(SupportedNetworkTypesT &&value)
Subnet & AddSupportedNetworkTypes(NetworkType value)
Subnet & WithSubnetAvailabilityZone(SubnetAvailabilityZoneT &&value)
AWS_ELASTICACHE_API Subnet(const Aws::Utils::Xml::XmlNode &xmlNode)
bool SubnetIdentifierHasBeenSet() const
const Aws::String & GetSubnetIdentifier() const
void SetSupportedNetworkTypes(SupportedNetworkTypesT &&value)
void SetSubnetAvailabilityZone(SubnetAvailabilityZoneT &&value)
const AvailabilityZone & GetSubnetAvailabilityZone() const
const SubnetOutpost & GetSubnetOutpost() const
bool SubnetAvailabilityZoneHasBeenSet() const
void SetSubnetOutpost(SubnetOutpostT &&value)
bool SupportedNetworkTypesHasBeenSet() const
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::Vector< NetworkType > & GetSupportedNetworkTypes() const
Subnet & WithSubnetOutpost(SubnetOutpostT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream