AWS SDK for C++  0.14.3
AWS SDK for C++
CreateCacheSubnetGroupRequest.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
20 
21 namespace Aws
22 {
23 namespace ElastiCache
24 {
25 namespace Model
26 {
27 
32  {
33  public:
35  Aws::String SerializePayload() const override;
36 
42  inline const Aws::String& GetCacheSubnetGroupName() const{ return m_cacheSubnetGroupName; }
43 
49  inline void SetCacheSubnetGroupName(const Aws::String& value) { m_cacheSubnetGroupNameHasBeenSet = true; m_cacheSubnetGroupName = value; }
50 
56  inline void SetCacheSubnetGroupName(Aws::String&& value) { m_cacheSubnetGroupNameHasBeenSet = true; m_cacheSubnetGroupName = value; }
57 
63  inline void SetCacheSubnetGroupName(const char* value) { m_cacheSubnetGroupNameHasBeenSet = true; m_cacheSubnetGroupName.assign(value); }
64 
70  inline CreateCacheSubnetGroupRequest& WithCacheSubnetGroupName(const Aws::String& value) { SetCacheSubnetGroupName(value); return *this;}
71 
77  inline CreateCacheSubnetGroupRequest& WithCacheSubnetGroupName(Aws::String&& value) { SetCacheSubnetGroupName(value); return *this;}
78 
84  inline CreateCacheSubnetGroupRequest& 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 CreateCacheSubnetGroupRequest& WithCacheSubnetGroupDescription(const Aws::String& value) { SetCacheSubnetGroupDescription(value); return *this;}
110 
114  inline CreateCacheSubnetGroupRequest& WithCacheSubnetGroupDescription(Aws::String&& value) { SetCacheSubnetGroupDescription(value); return *this;}
115 
119  inline CreateCacheSubnetGroupRequest& WithCacheSubnetGroupDescription(const char* value) { SetCacheSubnetGroupDescription(value); return *this;}
120 
124  inline const Aws::Vector<Aws::String>& GetSubnetIds() const{ return m_subnetIds; }
125 
129  inline void SetSubnetIds(const Aws::Vector<Aws::String>& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = value; }
130 
134  inline void SetSubnetIds(Aws::Vector<Aws::String>&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = value; }
135 
139  inline CreateCacheSubnetGroupRequest& WithSubnetIds(const Aws::Vector<Aws::String>& value) { SetSubnetIds(value); return *this;}
140 
144  inline CreateCacheSubnetGroupRequest& WithSubnetIds(Aws::Vector<Aws::String>&& value) { SetSubnetIds(value); return *this;}
145 
149  inline CreateCacheSubnetGroupRequest& AddSubnetIds(const Aws::String& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
150 
154  inline CreateCacheSubnetGroupRequest& AddSubnetIds(Aws::String&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
155 
159  inline CreateCacheSubnetGroupRequest& AddSubnetIds(const char* value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
160 
161  private:
162  Aws::String m_cacheSubnetGroupName;
163  bool m_cacheSubnetGroupNameHasBeenSet;
164  Aws::String m_cacheSubnetGroupDescription;
165  bool m_cacheSubnetGroupDescriptionHasBeenSet;
166  Aws::Vector<Aws::String> m_subnetIds;
167  bool m_subnetIdsHasBeenSet;
168  };
169 
170 } // namespace Model
171 } // namespace ElastiCache
172 } // namespace Aws
CreateCacheSubnetGroupRequest & WithCacheSubnetGroupDescription(const Aws::String &value)
CreateCacheSubnetGroupRequest & WithSubnetIds(Aws::Vector< Aws::String > &&value)
void SetSubnetIds(const Aws::Vector< Aws::String > &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
CreateCacheSubnetGroupRequest & WithSubnetIds(const Aws::Vector< Aws::String > &value)
CreateCacheSubnetGroupRequest & AddSubnetIds(const char *value)
CreateCacheSubnetGroupRequest & WithCacheSubnetGroupName(const char *value)
CreateCacheSubnetGroupRequest & AddSubnetIds(Aws::String &&value)
CreateCacheSubnetGroupRequest & AddSubnetIds(const Aws::String &value)
CreateCacheSubnetGroupRequest & WithCacheSubnetGroupName(const Aws::String &value)
CreateCacheSubnetGroupRequest & WithCacheSubnetGroupDescription(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_ELASTICACHE_API
CreateCacheSubnetGroupRequest & WithCacheSubnetGroupDescription(const char *value)
CreateCacheSubnetGroupRequest & WithCacheSubnetGroupName(Aws::String &&value)
JSON (JavaScript Object Notation).