AWS SDK for C++  0.12.9
AWS SDK for C++
CreateCacheParameterGroupRequest.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
19 
20 namespace Aws
21 {
22 namespace ElastiCache
23 {
24 namespace Model
25 {
26 
31  {
32  public:
34  Aws::String SerializePayload() const override;
35 
39  inline const Aws::String& GetCacheParameterGroupName() const{ return m_cacheParameterGroupName; }
40 
44  inline void SetCacheParameterGroupName(const Aws::String& value) { m_cacheParameterGroupNameHasBeenSet = true; m_cacheParameterGroupName = value; }
45 
49  inline void SetCacheParameterGroupName(Aws::String&& value) { m_cacheParameterGroupNameHasBeenSet = true; m_cacheParameterGroupName = value; }
50 
54  inline void SetCacheParameterGroupName(const char* value) { m_cacheParameterGroupNameHasBeenSet = true; m_cacheParameterGroupName.assign(value); }
55 
59  inline CreateCacheParameterGroupRequest& WithCacheParameterGroupName(const Aws::String& value) { SetCacheParameterGroupName(value); return *this;}
60 
64  inline CreateCacheParameterGroupRequest& WithCacheParameterGroupName(Aws::String&& value) { SetCacheParameterGroupName(value); return *this;}
65 
69  inline CreateCacheParameterGroupRequest& WithCacheParameterGroupName(const char* value) { SetCacheParameterGroupName(value); return *this;}
70 
76  inline const Aws::String& GetCacheParameterGroupFamily() const{ return m_cacheParameterGroupFamily; }
77 
83  inline void SetCacheParameterGroupFamily(const Aws::String& value) { m_cacheParameterGroupFamilyHasBeenSet = true; m_cacheParameterGroupFamily = value; }
84 
90  inline void SetCacheParameterGroupFamily(Aws::String&& value) { m_cacheParameterGroupFamilyHasBeenSet = true; m_cacheParameterGroupFamily = value; }
91 
97  inline void SetCacheParameterGroupFamily(const char* value) { m_cacheParameterGroupFamilyHasBeenSet = true; m_cacheParameterGroupFamily.assign(value); }
98 
104  inline CreateCacheParameterGroupRequest& WithCacheParameterGroupFamily(const Aws::String& value) { SetCacheParameterGroupFamily(value); return *this;}
105 
111  inline CreateCacheParameterGroupRequest& WithCacheParameterGroupFamily(Aws::String&& value) { SetCacheParameterGroupFamily(value); return *this;}
112 
118  inline CreateCacheParameterGroupRequest& WithCacheParameterGroupFamily(const char* value) { SetCacheParameterGroupFamily(value); return *this;}
119 
123  inline const Aws::String& GetDescription() const{ return m_description; }
124 
128  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
129 
133  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = value; }
134 
138  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
139 
143  inline CreateCacheParameterGroupRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
144 
148  inline CreateCacheParameterGroupRequest& WithDescription(Aws::String&& value) { SetDescription(value); return *this;}
149 
153  inline CreateCacheParameterGroupRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
154 
155  private:
156  Aws::String m_cacheParameterGroupName;
157  bool m_cacheParameterGroupNameHasBeenSet;
158  Aws::String m_cacheParameterGroupFamily;
159  bool m_cacheParameterGroupFamilyHasBeenSet;
160  Aws::String m_description;
161  bool m_descriptionHasBeenSet;
162  };
163 
164 } // namespace Model
165 } // namespace ElastiCache
166 } // namespace Aws
CreateCacheParameterGroupRequest & WithDescription(const Aws::String &value)
CreateCacheParameterGroupRequest & WithCacheParameterGroupFamily(Aws::String &&value)
CreateCacheParameterGroupRequest & WithCacheParameterGroupFamily(const Aws::String &value)
CreateCacheParameterGroupRequest & WithCacheParameterGroupName(const char *value)
CreateCacheParameterGroupRequest & WithDescription(Aws::String &&value)
CreateCacheParameterGroupRequest & WithCacheParameterGroupFamily(const char *value)
CreateCacheParameterGroupRequest & WithCacheParameterGroupName(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CreateCacheParameterGroupRequest & WithDescription(const char *value)
#define AWS_ELASTICACHE_API
CreateCacheParameterGroupRequest & WithCacheParameterGroupName(Aws::String &&value)
JSON (JavaScript Object Notation).