AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetCacheSubnetGroupName(const Aws::String& value) { m_cacheSubnetGroupNameHasBeenSet = true; m_cacheSubnetGroupName = value; }
54 inline void SetCacheSubnetGroupName(Aws::String&& value) { m_cacheSubnetGroupNameHasBeenSet = true; m_cacheSubnetGroupName = std::move(value); }
55 inline void SetCacheSubnetGroupName(const char* value) { m_cacheSubnetGroupNameHasBeenSet = true; m_cacheSubnetGroupName.assign(value); }
57 inline CacheSubnetGroup& WithCacheSubnetGroupName(Aws::String&& value) { SetCacheSubnetGroupName(std::move(value)); return *this;}
58 inline CacheSubnetGroup& WithCacheSubnetGroupName(const char* value) { SetCacheSubnetGroupName(value); return *this;}
60
62
65 inline const Aws::String& GetCacheSubnetGroupDescription() const{ return m_cacheSubnetGroupDescription; }
66 inline bool CacheSubnetGroupDescriptionHasBeenSet() const { return m_cacheSubnetGroupDescriptionHasBeenSet; }
67 inline void SetCacheSubnetGroupDescription(const Aws::String& value) { m_cacheSubnetGroupDescriptionHasBeenSet = true; m_cacheSubnetGroupDescription = value; }
68 inline void SetCacheSubnetGroupDescription(Aws::String&& value) { m_cacheSubnetGroupDescriptionHasBeenSet = true; m_cacheSubnetGroupDescription = std::move(value); }
69 inline void SetCacheSubnetGroupDescription(const char* value) { m_cacheSubnetGroupDescriptionHasBeenSet = true; m_cacheSubnetGroupDescription.assign(value); }
72 inline CacheSubnetGroup& WithCacheSubnetGroupDescription(const char* value) { SetCacheSubnetGroupDescription(value); return *this;}
74
76
80 inline const Aws::String& GetVpcId() const{ return m_vpcId; }
81 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
82 inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
83 inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
84 inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
85 inline CacheSubnetGroup& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
86 inline CacheSubnetGroup& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
87 inline CacheSubnetGroup& WithVpcId(const char* value) { SetVpcId(value); return *this;}
89
91
94 inline const Aws::Vector<Subnet>& GetSubnets() const{ return m_subnets; }
95 inline bool SubnetsHasBeenSet() const { return m_subnetsHasBeenSet; }
96 inline void SetSubnets(const Aws::Vector<Subnet>& value) { m_subnetsHasBeenSet = true; m_subnets = value; }
97 inline void SetSubnets(Aws::Vector<Subnet>&& value) { m_subnetsHasBeenSet = true; m_subnets = std::move(value); }
98 inline CacheSubnetGroup& WithSubnets(const Aws::Vector<Subnet>& value) { SetSubnets(value); return *this;}
99 inline CacheSubnetGroup& WithSubnets(Aws::Vector<Subnet>&& value) { SetSubnets(std::move(value)); return *this;}
100 inline CacheSubnetGroup& AddSubnets(const Subnet& value) { m_subnetsHasBeenSet = true; m_subnets.push_back(value); return *this; }
101 inline CacheSubnetGroup& AddSubnets(Subnet&& value) { m_subnetsHasBeenSet = true; m_subnets.push_back(std::move(value)); return *this; }
103
105
108 inline const Aws::String& GetARN() const{ return m_aRN; }
109 inline bool ARNHasBeenSet() const { return m_aRNHasBeenSet; }
110 inline void SetARN(const Aws::String& value) { m_aRNHasBeenSet = true; m_aRN = value; }
111 inline void SetARN(Aws::String&& value) { m_aRNHasBeenSet = true; m_aRN = std::move(value); }
112 inline void SetARN(const char* value) { m_aRNHasBeenSet = true; m_aRN.assign(value); }
113 inline CacheSubnetGroup& WithARN(const Aws::String& value) { SetARN(value); return *this;}
114 inline CacheSubnetGroup& WithARN(Aws::String&& value) { SetARN(std::move(value)); return *this;}
115 inline CacheSubnetGroup& WithARN(const char* value) { SetARN(value); return *this;}
117
119
125 inline const Aws::Vector<NetworkType>& GetSupportedNetworkTypes() const{ return m_supportedNetworkTypes; }
126 inline bool SupportedNetworkTypesHasBeenSet() const { return m_supportedNetworkTypesHasBeenSet; }
127 inline void SetSupportedNetworkTypes(const Aws::Vector<NetworkType>& value) { m_supportedNetworkTypesHasBeenSet = true; m_supportedNetworkTypes = value; }
128 inline void SetSupportedNetworkTypes(Aws::Vector<NetworkType>&& value) { m_supportedNetworkTypesHasBeenSet = true; m_supportedNetworkTypes = std::move(value); }
131 inline CacheSubnetGroup& AddSupportedNetworkTypes(const NetworkType& value) { m_supportedNetworkTypesHasBeenSet = true; m_supportedNetworkTypes.push_back(value); return *this; }
132 inline CacheSubnetGroup& AddSupportedNetworkTypes(NetworkType&& value) { m_supportedNetworkTypesHasBeenSet = true; m_supportedNetworkTypes.push_back(std::move(value)); return *this; }
134 private:
135
136 Aws::String m_cacheSubnetGroupName;
137 bool m_cacheSubnetGroupNameHasBeenSet = false;
138
139 Aws::String m_cacheSubnetGroupDescription;
140 bool m_cacheSubnetGroupDescriptionHasBeenSet = false;
141
142 Aws::String m_vpcId;
143 bool m_vpcIdHasBeenSet = false;
144
145 Aws::Vector<Subnet> m_subnets;
146 bool m_subnetsHasBeenSet = false;
147
148 Aws::String m_aRN;
149 bool m_aRNHasBeenSet = false;
150
151 Aws::Vector<NetworkType> m_supportedNetworkTypes;
152 bool m_supportedNetworkTypesHasBeenSet = false;
153 };
154
155} // namespace Model
156} // namespace ElastiCache
157} // namespace Aws
void SetVpcId(const Aws::String &value)
CacheSubnetGroup & WithSupportedNetworkTypes(const Aws::Vector< NetworkType > &value)
CacheSubnetGroup & AddSubnets(const Subnet &value)
CacheSubnetGroup & WithVpcId(const Aws::String &value)
CacheSubnetGroup & WithCacheSubnetGroupName(const Aws::String &value)
void SetCacheSubnetGroupName(const char *value)
void SetSupportedNetworkTypes(const Aws::Vector< NetworkType > &value)
CacheSubnetGroup & AddSupportedNetworkTypes(NetworkType &&value)
CacheSubnetGroup & WithCacheSubnetGroupName(const char *value)
AWS_ELASTICACHE_API CacheSubnetGroup & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
CacheSubnetGroup & AddSupportedNetworkTypes(const NetworkType &value)
void SetCacheSubnetGroupDescription(const Aws::String &value)
void SetCacheSubnetGroupName(Aws::String &&value)
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
CacheSubnetGroup & WithSupportedNetworkTypes(Aws::Vector< NetworkType > &&value)
void SetCacheSubnetGroupDescription(const char *value)
CacheSubnetGroup & WithARN(Aws::String &&value)
CacheSubnetGroup & WithSubnets(Aws::Vector< Subnet > &&value)
void SetCacheSubnetGroupName(const Aws::String &value)
AWS_ELASTICACHE_API CacheSubnetGroup(const Aws::Utils::Xml::XmlNode &xmlNode)
CacheSubnetGroup & WithCacheSubnetGroupDescription(Aws::String &&value)
CacheSubnetGroup & WithSubnets(const Aws::Vector< Subnet > &value)
CacheSubnetGroup & AddSubnets(Subnet &&value)
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &oStream, const char *location) const
CacheSubnetGroup & WithARN(const char *value)
const Aws::String & GetCacheSubnetGroupName() const
void SetSubnets(Aws::Vector< Subnet > &&value)
CacheSubnetGroup & WithVpcId(Aws::String &&value)
CacheSubnetGroup & WithCacheSubnetGroupDescription(const Aws::String &value)
CacheSubnetGroup & WithCacheSubnetGroupDescription(const char *value)
CacheSubnetGroup & WithCacheSubnetGroupName(Aws::String &&value)
void SetCacheSubnetGroupDescription(Aws::String &&value)
const Aws::Vector< Subnet > & GetSubnets() const
void SetSubnets(const Aws::Vector< Subnet > &value)
const Aws::Vector< NetworkType > & GetSupportedNetworkTypes() const
void SetARN(const Aws::String &value)
const Aws::String & GetCacheSubnetGroupDescription() const
void SetSupportedNetworkTypes(Aws::Vector< NetworkType > &&value)
CacheSubnetGroup & WithVpcId(const char *value)
CacheSubnetGroup & WithARN(const Aws::String &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