AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CacheSubnetGroup.h
1
6#pragma once
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>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Xml
20{
21 class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace ElastiCache
25{
26namespace Model
27{
28
37 {
38 public:
39 AWS_ELASTICACHE_API CacheSubnetGroup() = default;
40 AWS_ELASTICACHE_API CacheSubnetGroup(const Aws::Utils::Xml::XmlNode& xmlNode);
41 AWS_ELASTICACHE_API CacheSubnetGroup& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
42
43 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
44 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
45
46
48
51 inline const Aws::String& GetCacheSubnetGroupName() const { return m_cacheSubnetGroupName; }
52 inline bool CacheSubnetGroupNameHasBeenSet() const { return m_cacheSubnetGroupNameHasBeenSet; }
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>
56 CacheSubnetGroup& WithCacheSubnetGroupName(CacheSubnetGroupNameT&& value) { SetCacheSubnetGroupName(std::forward<CacheSubnetGroupNameT>(value)); return *this;}
58
60
63 inline const Aws::String& GetCacheSubnetGroupDescription() const { return m_cacheSubnetGroupDescription; }
64 inline bool CacheSubnetGroupDescriptionHasBeenSet() const { return m_cacheSubnetGroupDescriptionHasBeenSet; }
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>
68 CacheSubnetGroup& WithCacheSubnetGroupDescription(CacheSubnetGroupDescriptionT&& value) { SetCacheSubnetGroupDescription(std::forward<CacheSubnetGroupDescriptionT>(value)); return *this;}
70
72
76 inline const Aws::String& GetVpcId() const { return m_vpcId; }
77 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
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>
81 CacheSubnetGroup& WithVpcId(VpcIdT&& value) { SetVpcId(std::forward<VpcIdT>(value)); return *this;}
83
85
88 inline const Aws::Vector<Subnet>& GetSubnets() const { return m_subnets; }
89 inline bool SubnetsHasBeenSet() const { return m_subnetsHasBeenSet; }
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>>
93 CacheSubnetGroup& WithSubnets(SubnetsT&& value) { SetSubnets(std::forward<SubnetsT>(value)); return *this;}
94 template<typename SubnetsT = Subnet>
95 CacheSubnetGroup& AddSubnets(SubnetsT&& value) { m_subnetsHasBeenSet = true; m_subnets.emplace_back(std::forward<SubnetsT>(value)); return *this; }
97
99
102 inline const Aws::String& GetARN() const { return m_aRN; }
103 inline bool ARNHasBeenSet() const { return m_aRNHasBeenSet; }
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>
107 CacheSubnetGroup& WithARN(ARNT&& value) { SetARN(std::forward<ARNT>(value)); return *this;}
109
111
117 inline const Aws::Vector<NetworkType>& GetSupportedNetworkTypes() const { return m_supportedNetworkTypes; }
118 inline bool SupportedNetworkTypesHasBeenSet() const { return m_supportedNetworkTypesHasBeenSet; }
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>>
122 CacheSubnetGroup& WithSupportedNetworkTypes(SupportedNetworkTypesT&& value) { SetSupportedNetworkTypes(std::forward<SupportedNetworkTypesT>(value)); return *this;}
123 inline CacheSubnetGroup& AddSupportedNetworkTypes(NetworkType value) { m_supportedNetworkTypesHasBeenSet = true; m_supportedNetworkTypes.push_back(value); return *this; }
125 private:
126
127 Aws::String m_cacheSubnetGroupName;
128 bool m_cacheSubnetGroupNameHasBeenSet = false;
129
130 Aws::String m_cacheSubnetGroupDescription;
131 bool m_cacheSubnetGroupDescriptionHasBeenSet = false;
132
133 Aws::String m_vpcId;
134 bool m_vpcIdHasBeenSet = false;
135
136 Aws::Vector<Subnet> m_subnets;
137 bool m_subnetsHasBeenSet = false;
138
139 Aws::String m_aRN;
140 bool m_aRNHasBeenSet = false;
141
142 Aws::Vector<NetworkType> m_supportedNetworkTypes;
143 bool m_supportedNetworkTypesHasBeenSet = false;
144 };
145
146} // namespace Model
147} // namespace ElastiCache
148} // namespace Aws
CacheSubnetGroup & WithSupportedNetworkTypes(SupportedNetworkTypesT &&value)
CacheSubnetGroup & WithCacheSubnetGroupDescription(CacheSubnetGroupDescriptionT &&value)
CacheSubnetGroup & WithVpcId(VpcIdT &&value)
CacheSubnetGroup & AddSupportedNetworkTypes(NetworkType value)
AWS_ELASTICACHE_API CacheSubnetGroup & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
CacheSubnetGroup & WithCacheSubnetGroupName(CacheSubnetGroupNameT &&value)
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_ELASTICACHE_API CacheSubnetGroup()=default
AWS_ELASTICACHE_API CacheSubnetGroup(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetCacheSubnetGroupName(CacheSubnetGroupNameT &&value)
const Aws::String & GetCacheSubnetGroupName() const
CacheSubnetGroup & AddSubnets(SubnetsT &&value)
const Aws::Vector< Subnet > & GetSubnets() const
const Aws::Vector< NetworkType > & GetSupportedNetworkTypes() const
CacheSubnetGroup & WithSubnets(SubnetsT &&value)
void SetSupportedNetworkTypes(SupportedNetworkTypesT &&value)
void SetCacheSubnetGroupDescription(CacheSubnetGroupDescriptionT &&value)
CacheSubnetGroup & WithARN(ARNT &&value)
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