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/NetworkType.h>
12#include <aws/elasticache/model/Subnet.h>
22namespace ElastiCache {
47 template <
typename CacheSubnetGroupNameT = Aws::String>
49 m_cacheSubnetGroupNameHasBeenSet =
true;
50 m_cacheSubnetGroupName = std::forward<CacheSubnetGroupNameT>(value);
52 template <
typename CacheSubnetGroupNameT = Aws::String>
65 template <
typename CacheSubnetGroupDescriptionT = Aws::String>
67 m_cacheSubnetGroupDescriptionHasBeenSet =
true;
68 m_cacheSubnetGroupDescription = std::forward<CacheSubnetGroupDescriptionT>(value);
70 template <
typename CacheSubnetGroupDescriptionT = Aws::String>
84 template <
typename VpcIdT = Aws::String>
86 m_vpcIdHasBeenSet =
true;
87 m_vpcId = std::forward<VpcIdT>(value);
89 template <
typename VpcIdT = Aws::String>
91 SetVpcId(std::forward<VpcIdT>(value));
102 template <
typename SubnetsT = Aws::Vector<Subnet>>
104 m_subnetsHasBeenSet =
true;
105 m_subnets = std::forward<SubnetsT>(value);
107 template <
typename SubnetsT = Aws::Vector<Subnet>>
112 template <
typename SubnetsT = Subnet>
114 m_subnetsHasBeenSet =
true;
115 m_subnets.emplace_back(std::forward<SubnetsT>(value));
126 template <
typename ARNT = Aws::String>
128 m_aRNHasBeenSet =
true;
129 m_aRN = std::forward<ARNT>(value);
131 template <
typename ARNT = Aws::String>
133 SetARN(std::forward<ARNT>(value));
147 template <
typename SupportedNetworkTypesT = Aws::Vector<NetworkType>>
149 m_supportedNetworkTypesHasBeenSet =
true;
150 m_supportedNetworkTypes = std::forward<SupportedNetworkTypesT>(value);
152 template <
typename SupportedNetworkTypesT = Aws::Vector<NetworkType>>
158 m_supportedNetworkTypesHasBeenSet =
true;
159 m_supportedNetworkTypes.push_back(value);
175 bool m_cacheSubnetGroupNameHasBeenSet =
false;
176 bool m_cacheSubnetGroupDescriptionHasBeenSet =
false;
177 bool m_vpcIdHasBeenSet =
false;
178 bool m_subnetsHasBeenSet =
false;
179 bool m_aRNHasBeenSet =
false;
180 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