AWS SDK for C++  0.12.9
AWS SDK for C++
ModifyClusterParameterGroupRequest.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 ModifyClusterParameterGroupRequest& WithParameterGroupName(const Aws::String& value) { SetParameterGroupName(value); return *this;}
62 
66  inline ModifyClusterParameterGroupRequest& WithParameterGroupName(Aws::String&& value) { SetParameterGroupName(value); return *this;}
67 
71  inline ModifyClusterParameterGroupRequest& WithParameterGroupName(const char* value) { SetParameterGroupName(value); return *this;}
72 
81  inline const Aws::Vector<Parameter>& GetParameters() const{ return m_parameters; }
82 
91  inline void SetParameters(const Aws::Vector<Parameter>& value) { m_parametersHasBeenSet = true; m_parameters = value; }
92 
101  inline void SetParameters(Aws::Vector<Parameter>&& value) { m_parametersHasBeenSet = true; m_parameters = value; }
102 
111  inline ModifyClusterParameterGroupRequest& WithParameters(const Aws::Vector<Parameter>& value) { SetParameters(value); return *this;}
112 
121  inline ModifyClusterParameterGroupRequest& WithParameters(Aws::Vector<Parameter>&& value) { SetParameters(value); return *this;}
122 
131  inline ModifyClusterParameterGroupRequest& AddParameters(const Parameter& value) { m_parametersHasBeenSet = true; m_parameters.push_back(value); return *this; }
132 
141  inline ModifyClusterParameterGroupRequest& AddParameters(Parameter&& value) { m_parametersHasBeenSet = true; m_parameters.push_back(value); return *this; }
142 
143  private:
144  Aws::String m_parameterGroupName;
145  bool m_parameterGroupNameHasBeenSet;
146  Aws::Vector<Parameter> m_parameters;
147  bool m_parametersHasBeenSet;
148  };
149 
150 } // namespace Model
151 } // namespace Redshift
152 } // namespace Aws
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
ModifyClusterParameterGroupRequest & AddParameters(const Parameter &value)
ModifyClusterParameterGroupRequest & WithParameters(const Aws::Vector< Parameter > &value)
ModifyClusterParameterGroupRequest & WithParameterGroupName(const Aws::String &value)
#define AWS_REDSHIFT_API
ModifyClusterParameterGroupRequest & AddParameters(Parameter &&value)
ModifyClusterParameterGroupRequest & WithParameters(Aws::Vector< Parameter > &&value)
ModifyClusterParameterGroupRequest & WithParameterGroupName(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ModifyClusterParameterGroupRequest & WithParameterGroupName(const char *value)
JSON (JavaScript Object Notation).