AWS SDK for C++  0.14.3
AWS SDK for C++
CacheSubnetGroup.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
21 
22 namespace Aws
23 {
24 namespace Utils
25 {
26 namespace Xml
27 {
28  class XmlNode;
29 } // namespace Xml
30 } // namespace Utils
31 namespace ElastiCache
32 {
33 namespace Model
34 {
35 
42  {
43  public:
46  CacheSubnetGroup& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
47 
48  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
49  void OutputToStream(Aws::OStream& oStream, const char* location) const;
50 
54  inline const Aws::String& GetCacheSubnetGroupName() const{ return m_cacheSubnetGroupName; }
55 
59  inline void SetCacheSubnetGroupName(const Aws::String& value) { m_cacheSubnetGroupNameHasBeenSet = true; m_cacheSubnetGroupName = value; }
60 
64  inline void SetCacheSubnetGroupName(Aws::String&& value) { m_cacheSubnetGroupNameHasBeenSet = true; m_cacheSubnetGroupName = value; }
65 
69  inline void SetCacheSubnetGroupName(const char* value) { m_cacheSubnetGroupNameHasBeenSet = true; m_cacheSubnetGroupName.assign(value); }
70 
74  inline CacheSubnetGroup& WithCacheSubnetGroupName(const Aws::String& value) { SetCacheSubnetGroupName(value); return *this;}
75 
79  inline CacheSubnetGroup& WithCacheSubnetGroupName(Aws::String&& value) { SetCacheSubnetGroupName(value); return *this;}
80 
84  inline CacheSubnetGroup& WithCacheSubnetGroupName(const char* value) { SetCacheSubnetGroupName(value); return *this;}
85 
89  inline const Aws::String& GetCacheSubnetGroupDescription() const{ return m_cacheSubnetGroupDescription; }
90 
94  inline void SetCacheSubnetGroupDescription(const Aws::String& value) { m_cacheSubnetGroupDescriptionHasBeenSet = true; m_cacheSubnetGroupDescription = value; }
95 
99  inline void SetCacheSubnetGroupDescription(Aws::String&& value) { m_cacheSubnetGroupDescriptionHasBeenSet = true; m_cacheSubnetGroupDescription = value; }
100 
104  inline void SetCacheSubnetGroupDescription(const char* value) { m_cacheSubnetGroupDescriptionHasBeenSet = true; m_cacheSubnetGroupDescription.assign(value); }
105 
109  inline CacheSubnetGroup& WithCacheSubnetGroupDescription(const Aws::String& value) { SetCacheSubnetGroupDescription(value); return *this;}
110 
114  inline CacheSubnetGroup& WithCacheSubnetGroupDescription(Aws::String&& value) { SetCacheSubnetGroupDescription(value); return *this;}
115 
119  inline CacheSubnetGroup& WithCacheSubnetGroupDescription(const char* value) { SetCacheSubnetGroupDescription(value); return *this;}
120 
125  inline const Aws::String& GetVpcId() const{ return m_vpcId; }
126 
131  inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
132 
137  inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
138 
143  inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
144 
149  inline CacheSubnetGroup& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
150 
155  inline CacheSubnetGroup& WithVpcId(Aws::String&& value) { SetVpcId(value); return *this;}
156 
161  inline CacheSubnetGroup& WithVpcId(const char* value) { SetVpcId(value); return *this;}
162 
166  inline const Aws::Vector<Subnet>& GetSubnets() const{ return m_subnets; }
167 
171  inline void SetSubnets(const Aws::Vector<Subnet>& value) { m_subnetsHasBeenSet = true; m_subnets = value; }
172 
176  inline void SetSubnets(Aws::Vector<Subnet>&& value) { m_subnetsHasBeenSet = true; m_subnets = value; }
177 
181  inline CacheSubnetGroup& WithSubnets(const Aws::Vector<Subnet>& value) { SetSubnets(value); return *this;}
182 
186  inline CacheSubnetGroup& WithSubnets(Aws::Vector<Subnet>&& value) { SetSubnets(value); return *this;}
187 
191  inline CacheSubnetGroup& AddSubnets(const Subnet& value) { m_subnetsHasBeenSet = true; m_subnets.push_back(value); return *this; }
192 
196  inline CacheSubnetGroup& AddSubnets(Subnet&& value) { m_subnetsHasBeenSet = true; m_subnets.push_back(value); return *this; }
197 
198  private:
199  Aws::String m_cacheSubnetGroupName;
200  bool m_cacheSubnetGroupNameHasBeenSet;
201  Aws::String m_cacheSubnetGroupDescription;
202  bool m_cacheSubnetGroupDescriptionHasBeenSet;
203  Aws::String m_vpcId;
204  bool m_vpcIdHasBeenSet;
205  Aws::Vector<Subnet> m_subnets;
206  bool m_subnetsHasBeenSet;
207  };
208 
209 } // namespace Model
210 } // namespace ElastiCache
211 } // namespace Aws
const Aws::Vector< Subnet > & GetSubnets() const
CacheSubnetGroup & WithCacheSubnetGroupDescription(Aws::String &&value)
void SetCacheSubnetGroupDescription(const char *value)
CacheSubnetGroup & WithVpcId(Aws::String &&value)
CacheSubnetGroup & WithVpcId(const char *value)
CacheSubnetGroup & WithSubnets(const Aws::Vector< Subnet > &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
void SetCacheSubnetGroupName(const Aws::String &value)
void SetCacheSubnetGroupName(const char *value)
const Aws::String & GetCacheSubnetGroupName() const
void SetSubnets(const Aws::Vector< Subnet > &value)
void SetSubnets(Aws::Vector< Subnet > &&value)
CacheSubnetGroup & AddSubnets(Subnet &&value)
CacheSubnetGroup & WithSubnets(Aws::Vector< Subnet > &&value)
CacheSubnetGroup & WithCacheSubnetGroupName(Aws::String &&value)
const Aws::String & GetCacheSubnetGroupDescription() const
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
CacheSubnetGroup & WithCacheSubnetGroupDescription(const char *value)
CacheSubnetGroup & WithCacheSubnetGroupDescription(const Aws::String &value)
CacheSubnetGroup & AddSubnets(const Subnet &value)
void SetCacheSubnetGroupName(Aws::String &&value)
void SetCacheSubnetGroupDescription(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_ELASTICACHE_API
CacheSubnetGroup & WithCacheSubnetGroupName(const char *value)
void SetVpcId(const Aws::String &value)
CacheSubnetGroup & WithCacheSubnetGroupName(const Aws::String &value)
CacheSubnetGroup & WithVpcId(const Aws::String &value)
void SetCacheSubnetGroupDescription(const Aws::String &value)
const Aws::String & GetVpcId() const
JSON (JavaScript Object Notation).