AWS SDK for C++  0.14.3
AWS SDK for C++
ResetCacheParameterGroupRequest.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 ResetCacheParameterGroupRequest& WithCacheParameterGroupName(const Aws::String& value) { SetCacheParameterGroupName(value); return *this;}
62 
66  inline ResetCacheParameterGroupRequest& WithCacheParameterGroupName(Aws::String&& value) { SetCacheParameterGroupName(value); return *this;}
67 
71  inline ResetCacheParameterGroupRequest& WithCacheParameterGroupName(const char* value) { SetCacheParameterGroupName(value); return *this;}
72 
79  inline bool GetResetAllParameters() const{ return m_resetAllParameters; }
80 
87  inline void SetResetAllParameters(bool value) { m_resetAllParametersHasBeenSet = true; m_resetAllParameters = value; }
88 
95  inline ResetCacheParameterGroupRequest& WithResetAllParameters(bool value) { SetResetAllParameters(value); return *this;}
96 
102  inline const Aws::Vector<ParameterNameValue>& GetParameterNameValues() const{ return m_parameterNameValues; }
103 
109  inline void SetParameterNameValues(const Aws::Vector<ParameterNameValue>& value) { m_parameterNameValuesHasBeenSet = true; m_parameterNameValues = value; }
110 
116  inline void SetParameterNameValues(Aws::Vector<ParameterNameValue>&& value) { m_parameterNameValuesHasBeenSet = true; m_parameterNameValues = value; }
117 
123  inline ResetCacheParameterGroupRequest& WithParameterNameValues(const Aws::Vector<ParameterNameValue>& value) { SetParameterNameValues(value); return *this;}
124 
130  inline ResetCacheParameterGroupRequest& WithParameterNameValues(Aws::Vector<ParameterNameValue>&& value) { SetParameterNameValues(value); return *this;}
131 
137  inline ResetCacheParameterGroupRequest& AddParameterNameValues(const ParameterNameValue& value) { m_parameterNameValuesHasBeenSet = true; m_parameterNameValues.push_back(value); return *this; }
138 
144  inline ResetCacheParameterGroupRequest& AddParameterNameValues(ParameterNameValue&& value) { m_parameterNameValuesHasBeenSet = true; m_parameterNameValues.push_back(value); return *this; }
145 
146  private:
147  Aws::String m_cacheParameterGroupName;
148  bool m_cacheParameterGroupNameHasBeenSet;
149  bool m_resetAllParameters;
150  bool m_resetAllParametersHasBeenSet;
151  Aws::Vector<ParameterNameValue> m_parameterNameValues;
152  bool m_parameterNameValuesHasBeenSet;
153  };
154 
155 } // namespace Model
156 } // namespace ElastiCache
157 } // namespace Aws
void SetParameterNameValues(const Aws::Vector< ParameterNameValue > &value)
ResetCacheParameterGroupRequest & WithCacheParameterGroupName(const Aws::String &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
ResetCacheParameterGroupRequest & WithCacheParameterGroupName(const char *value)
ResetCacheParameterGroupRequest & WithParameterNameValues(const Aws::Vector< ParameterNameValue > &value)
ResetCacheParameterGroupRequest & WithCacheParameterGroupName(Aws::String &&value)
ResetCacheParameterGroupRequest & AddParameterNameValues(const ParameterNameValue &value)
const Aws::Vector< ParameterNameValue > & GetParameterNameValues() const
ResetCacheParameterGroupRequest & WithResetAllParameters(bool value)
ResetCacheParameterGroupRequest & AddParameterNameValues(ParameterNameValue &&value)
ResetCacheParameterGroupRequest & WithParameterNameValues(Aws::Vector< ParameterNameValue > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_ELASTICACHE_API
void SetParameterNameValues(Aws::Vector< ParameterNameValue > &&value)
JSON (JavaScript Object Notation).