AWS SDK for C++  0.12.9
AWS SDK for C++
ResetClusterParameterGroupRequest.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 Redshift
25 {
26 namespace Model
27 {
28 
33  {
34  public:
36  Aws::String SerializePayload() const override;
37 
41  inline const Aws::String& GetParameterGroupName() const{ return m_parameterGroupName; }
42 
46  inline void SetParameterGroupName(const Aws::String& value) { m_parameterGroupNameHasBeenSet = true; m_parameterGroupName = value; }
47 
51  inline void SetParameterGroupName(Aws::String&& value) { m_parameterGroupNameHasBeenSet = true; m_parameterGroupName = value; }
52 
56  inline void SetParameterGroupName(const char* value) { m_parameterGroupNameHasBeenSet = true; m_parameterGroupName.assign(value); }
57 
61  inline ResetClusterParameterGroupRequest& WithParameterGroupName(const Aws::String& value) { SetParameterGroupName(value); return *this;}
62 
66  inline ResetClusterParameterGroupRequest& WithParameterGroupName(Aws::String&& value) { SetParameterGroupName(value); return *this;}
67 
71  inline ResetClusterParameterGroupRequest& WithParameterGroupName(const char* value) { SetParameterGroupName(value); return *this;}
72 
77  inline bool GetResetAllParameters() const{ return m_resetAllParameters; }
78 
83  inline void SetResetAllParameters(bool value) { m_resetAllParametersHasBeenSet = true; m_resetAllParameters = value; }
84 
89  inline ResetClusterParameterGroupRequest& WithResetAllParameters(bool value) { SetResetAllParameters(value); return *this;}
90 
96  inline const Aws::Vector<Parameter>& GetParameters() const{ return m_parameters; }
97 
103  inline void SetParameters(const Aws::Vector<Parameter>& value) { m_parametersHasBeenSet = true; m_parameters = value; }
104 
110  inline void SetParameters(Aws::Vector<Parameter>&& value) { m_parametersHasBeenSet = true; m_parameters = value; }
111 
117  inline ResetClusterParameterGroupRequest& WithParameters(const Aws::Vector<Parameter>& value) { SetParameters(value); return *this;}
118 
124  inline ResetClusterParameterGroupRequest& WithParameters(Aws::Vector<Parameter>&& value) { SetParameters(value); return *this;}
125 
131  inline ResetClusterParameterGroupRequest& AddParameters(const Parameter& value) { m_parametersHasBeenSet = true; m_parameters.push_back(value); return *this; }
132 
138  inline ResetClusterParameterGroupRequest& AddParameters(Parameter&& value) { m_parametersHasBeenSet = true; m_parameters.push_back(value); return *this; }
139 
140  private:
141  Aws::String m_parameterGroupName;
142  bool m_parameterGroupNameHasBeenSet;
143  bool m_resetAllParameters;
144  bool m_resetAllParametersHasBeenSet;
145  Aws::Vector<Parameter> m_parameters;
146  bool m_parametersHasBeenSet;
147  };
148 
149 } // namespace Model
150 } // namespace Redshift
151 } // namespace Aws
ResetClusterParameterGroupRequest & WithParameters(Aws::Vector< Parameter > &&value)
ResetClusterParameterGroupRequest & AddParameters(const Parameter &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
ResetClusterParameterGroupRequest & WithParameterGroupName(Aws::String &&value)
#define AWS_REDSHIFT_API
ResetClusterParameterGroupRequest & WithParameters(const Aws::Vector< Parameter > &value)
ResetClusterParameterGroupRequest & WithParameterGroupName(const char *value)
ResetClusterParameterGroupRequest & WithParameterGroupName(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ResetClusterParameterGroupRequest & AddParameters(Parameter &&value)
ResetClusterParameterGroupRequest & WithResetAllParameters(bool value)
JSON (JavaScript Object Notation).