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/core/utils/memory/stl/AWSVector.h>
11#include <aws/elasticache/model/Subnet.h>
12#include <aws/elasticache/model/NetworkType.h>
53 template<
typename CacheSubnetGroupNameT = Aws::String>
54 void SetCacheSubnetGroupName(CacheSubnetGroupNameT&& value) { m_cacheSubnetGroupNameHasBeenSet =
true; m_cacheSubnetGroupName = std::forward<CacheSubnetGroupNameT>(value); }
55 template<
typename CacheSubnetGroupNameT = Aws::String>
65 template<
typename CacheSubnetGroupDescriptionT = Aws::String>
66 void SetCacheSubnetGroupDescription(CacheSubnetGroupDescriptionT&& value) { m_cacheSubnetGroupDescriptionHasBeenSet =
true; m_cacheSubnetGroupDescription = std::forward<CacheSubnetGroupDescriptionT>(value); }
67 template<
typename CacheSubnetGroupDescriptionT = Aws::String>
78 template<
typename VpcIdT = Aws::String>
79 void SetVpcId(VpcIdT&& value) { m_vpcIdHasBeenSet =
true; m_vpcId = std::forward<VpcIdT>(value); }
80 template<
typename VpcIdT = Aws::String>
90 template<
typename SubnetsT = Aws::Vector<Subnet>>
91 void SetSubnets(SubnetsT&& value) { m_subnetsHasBeenSet =
true; m_subnets = std::forward<SubnetsT>(value); }
92 template<
typename SubnetsT = Aws::Vector<Subnet>>
94 template<
typename SubnetsT = Subnet>
95 CacheSubnetGroup&
AddSubnets(SubnetsT&& value) { m_subnetsHasBeenSet =
true; m_subnets.emplace_back(std::forward<SubnetsT>(value));
return *
this; }
104 template<
typename ARNT = Aws::String>
105 void SetARN(ARNT&& value) { m_aRNHasBeenSet =
true; m_aRN = std::forward<ARNT>(value); }
106 template<
typename ARNT = Aws::String>
119 template<
typename SupportedNetworkTypesT = Aws::Vector<NetworkType>>
120 void SetSupportedNetworkTypes(SupportedNetworkTypesT&& value) { m_supportedNetworkTypesHasBeenSet =
true; m_supportedNetworkTypes = std::forward<SupportedNetworkTypesT>(value); }
121 template<
typename SupportedNetworkTypesT = Aws::Vector<NetworkType>>
128 bool m_cacheSubnetGroupNameHasBeenSet =
false;
131 bool m_cacheSubnetGroupDescriptionHasBeenSet =
false;
134 bool m_vpcIdHasBeenSet =
false;
137 bool m_subnetsHasBeenSet =
false;
140 bool m_aRNHasBeenSet =
false;
143 bool m_supportedNetworkTypesHasBeenSet =
false;
CacheSubnetGroup & WithSupportedNetworkTypes(SupportedNetworkTypesT &&value)
CacheSubnetGroup & WithCacheSubnetGroupDescription(CacheSubnetGroupDescriptionT &&value)
bool SubnetsHasBeenSet() const
void SetARN(ARNT &&value)
CacheSubnetGroup & WithVpcId(VpcIdT &&value)
const Aws::String & GetARN() const
CacheSubnetGroup & AddSupportedNetworkTypes(NetworkType value)
AWS_ELASTICACHE_API CacheSubnetGroup & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
CacheSubnetGroup & WithCacheSubnetGroupName(CacheSubnetGroupNameT &&value)
bool ARNHasBeenSet() const
void SetSubnets(SubnetsT &&value)
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_ELASTICACHE_API CacheSubnetGroup()=default
bool VpcIdHasBeenSet() const
AWS_ELASTICACHE_API CacheSubnetGroup(const Aws::Utils::Xml::XmlNode &xmlNode)
bool CacheSubnetGroupDescriptionHasBeenSet() const
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetCacheSubnetGroupName(CacheSubnetGroupNameT &&value)
const Aws::String & GetVpcId() const
const Aws::String & GetCacheSubnetGroupName() const
CacheSubnetGroup & AddSubnets(SubnetsT &&value)
void SetVpcId(VpcIdT &&value)
const Aws::Vector< Subnet > & GetSubnets() const
const Aws::Vector< NetworkType > & GetSupportedNetworkTypes() const
CacheSubnetGroup & WithSubnets(SubnetsT &&value)
void SetSupportedNetworkTypes(SupportedNetworkTypesT &&value)
bool CacheSubnetGroupNameHasBeenSet() const
void SetCacheSubnetGroupDescription(CacheSubnetGroupDescriptionT &&value)
CacheSubnetGroup & WithARN(ARNT &&value)
bool SupportedNetworkTypesHasBeenSet() const
const Aws::String & GetCacheSubnetGroupDescription() const
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