AWS SDK for C++  0.12.9
AWS SDK for C++
ModifyCacheParameterGroupRequest.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 ElastiCache
25 {
26 namespace Model
27 {
28 
33  {
34  public:
36  Aws::String SerializePayload() const override;
37 
41  inline const Aws::String& GetCacheParameterGroupName() const{ return m_cacheParameterGroupName; }
42 
46  inline void SetCacheParameterGroupName(const Aws::String& value) { m_cacheParameterGroupNameHasBeenSet = true; m_cacheParameterGroupName = value; }
47 
51  inline void SetCacheParameterGroupName(Aws::String&& value) { m_cacheParameterGroupNameHasBeenSet = true; m_cacheParameterGroupName = value; }
52 
56  inline void SetCacheParameterGroupName(const char* value) { m_cacheParameterGroupNameHasBeenSet = true; m_cacheParameterGroupName.assign(value); }
57 
61  inline ModifyCacheParameterGroupRequest& WithCacheParameterGroupName(const Aws::String& value) { SetCacheParameterGroupName(value); return *this;}
62 
66  inline ModifyCacheParameterGroupRequest& WithCacheParameterGroupName(Aws::String&& value) { SetCacheParameterGroupName(value); return *this;}
67 
71  inline ModifyCacheParameterGroupRequest& WithCacheParameterGroupName(const char* value) { SetCacheParameterGroupName(value); return *this;}
72 
78  inline const Aws::Vector<ParameterNameValue>& GetParameterNameValues() const{ return m_parameterNameValues; }
79 
85  inline void SetParameterNameValues(const Aws::Vector<ParameterNameValue>& value) { m_parameterNameValuesHasBeenSet = true; m_parameterNameValues = value; }
86 
92  inline void SetParameterNameValues(Aws::Vector<ParameterNameValue>&& value) { m_parameterNameValuesHasBeenSet = true; m_parameterNameValues = value; }
93 
99  inline ModifyCacheParameterGroupRequest& WithParameterNameValues(const Aws::Vector<ParameterNameValue>& value) { SetParameterNameValues(value); return *this;}
100 
106  inline ModifyCacheParameterGroupRequest& WithParameterNameValues(Aws::Vector<ParameterNameValue>&& value) { SetParameterNameValues(value); return *this;}
107 
113  inline ModifyCacheParameterGroupRequest& AddParameterNameValues(const ParameterNameValue& value) { m_parameterNameValuesHasBeenSet = true; m_parameterNameValues.push_back(value); return *this; }
114 
120  inline ModifyCacheParameterGroupRequest& AddParameterNameValues(ParameterNameValue&& value) { m_parameterNameValuesHasBeenSet = true; m_parameterNameValues.push_back(value); return *this; }
121 
122  private:
123  Aws::String m_cacheParameterGroupName;
124  bool m_cacheParameterGroupNameHasBeenSet;
125  Aws::Vector<ParameterNameValue> m_parameterNameValues;
126  bool m_parameterNameValuesHasBeenSet;
127  };
128 
129 } // namespace Model
130 } // namespace ElastiCache
131 } // namespace Aws
const Aws::Vector< ParameterNameValue > & GetParameterNameValues() const
ModifyCacheParameterGroupRequest & WithParameterNameValues(Aws::Vector< ParameterNameValue > &&value)
ModifyCacheParameterGroupRequest & WithParameterNameValues(const Aws::Vector< ParameterNameValue > &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
ModifyCacheParameterGroupRequest & WithCacheParameterGroupName(Aws::String &&value)
ModifyCacheParameterGroupRequest & AddParameterNameValues(ParameterNameValue &&value)
ModifyCacheParameterGroupRequest & WithCacheParameterGroupName(const Aws::String &value)
ModifyCacheParameterGroupRequest & WithCacheParameterGroupName(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetParameterNameValues(const Aws::Vector< ParameterNameValue > &value)
#define AWS_ELASTICACHE_API
void SetParameterNameValues(Aws::Vector< ParameterNameValue > &&value)
JSON (JavaScript Object Notation).
ModifyCacheParameterGroupRequest & AddParameterNameValues(const ParameterNameValue &value)