7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/elasticache/ElastiCache_EXPORTS.h>
11#include <aws/elasticache/model/AvailabilityZone.h>
12#include <aws/elasticache/model/NetworkType.h>
13#include <aws/elasticache/model/SubnetOutpost.h>
23namespace ElastiCache {
35 AWS_ELASTICACHE_API
Subnet() =
default;
48 template <
typename SubnetIdentifierT = Aws::String>
50 m_subnetIdentifierHasBeenSet =
true;
51 m_subnetIdentifier = std::forward<SubnetIdentifierT>(value);
53 template <
typename SubnetIdentifierT = Aws::String>
66 template <
typename SubnetAvailabilityZoneT = AvailabilityZone>
68 m_subnetAvailabilityZoneHasBeenSet =
true;
69 m_subnetAvailabilityZone = std::forward<SubnetAvailabilityZoneT>(value);
71 template <
typename SubnetAvailabilityZoneT = AvailabilityZone>
84 template <
typename SubnetOutpostT = SubnetOutpost>
86 m_subnetOutpostHasBeenSet =
true;
87 m_subnetOutpost = std::forward<SubnetOutpostT>(value);
89 template <
typename SubnetOutpostT = SubnetOutpost>
105 template <
typename SupportedNetworkTypesT = Aws::Vector<NetworkType>>
107 m_supportedNetworkTypesHasBeenSet =
true;
108 m_supportedNetworkTypes = std::forward<SupportedNetworkTypesT>(value);
110 template <
typename SupportedNetworkTypesT = Aws::Vector<NetworkType>>
116 m_supportedNetworkTypesHasBeenSet =
true;
117 m_supportedNetworkTypes.push_back(value);
129 bool m_subnetIdentifierHasBeenSet =
false;
130 bool m_subnetAvailabilityZoneHasBeenSet =
false;
131 bool m_subnetOutpostHasBeenSet =
false;
132 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