AWS SDK for C++  0.14.3
AWS SDK for C++
ModifyDBParameterGroupRequest.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
16 #include <aws/rds/RDS_EXPORTS.h>
17 #include <aws/rds/RDSRequest.h>
21 
22 namespace Aws
23 {
24 namespace RDS
25 {
26 namespace Model
27 {
28 
33  {
34  public:
36  Aws::String SerializePayload() const override;
37 
45  inline const Aws::String& GetDBParameterGroupName() const{ return m_dBParameterGroupName; }
46 
54  inline void SetDBParameterGroupName(const Aws::String& value) { m_dBParameterGroupNameHasBeenSet = true; m_dBParameterGroupName = value; }
55 
63  inline void SetDBParameterGroupName(Aws::String&& value) { m_dBParameterGroupNameHasBeenSet = true; m_dBParameterGroupName = value; }
64 
72  inline void SetDBParameterGroupName(const char* value) { m_dBParameterGroupNameHasBeenSet = true; m_dBParameterGroupName.assign(value); }
73 
81  inline ModifyDBParameterGroupRequest& WithDBParameterGroupName(const Aws::String& value) { SetDBParameterGroupName(value); return *this;}
82 
90  inline ModifyDBParameterGroupRequest& WithDBParameterGroupName(Aws::String&& value) { SetDBParameterGroupName(value); return *this;}
91 
99  inline ModifyDBParameterGroupRequest& WithDBParameterGroupName(const char* value) { SetDBParameterGroupName(value); return *this;}
100 
111  inline const Aws::Vector<Parameter>& GetParameters() const{ return m_parameters; }
112 
123  inline void SetParameters(const Aws::Vector<Parameter>& value) { m_parametersHasBeenSet = true; m_parameters = value; }
124 
135  inline void SetParameters(Aws::Vector<Parameter>&& value) { m_parametersHasBeenSet = true; m_parameters = value; }
136 
147  inline ModifyDBParameterGroupRequest& WithParameters(const Aws::Vector<Parameter>& value) { SetParameters(value); return *this;}
148 
159  inline ModifyDBParameterGroupRequest& WithParameters(Aws::Vector<Parameter>&& value) { SetParameters(value); return *this;}
160 
171  inline ModifyDBParameterGroupRequest& AddParameters(const Parameter& value) { m_parametersHasBeenSet = true; m_parameters.push_back(value); return *this; }
172 
183  inline ModifyDBParameterGroupRequest& AddParameters(Parameter&& value) { m_parametersHasBeenSet = true; m_parameters.push_back(value); return *this; }
184 
185  private:
186  Aws::String m_dBParameterGroupName;
187  bool m_dBParameterGroupNameHasBeenSet;
188  Aws::Vector<Parameter> m_parameters;
189  bool m_parametersHasBeenSet;
190  };
191 
192 } // namespace Model
193 } // namespace RDS
194 } // namespace Aws
ModifyDBParameterGroupRequest & WithDBParameterGroupName(const char *value)
ModifyDBParameterGroupRequest & AddParameters(const Parameter &value)
#define AWS_RDS_API
Definition: RDS_EXPORTS.h:37
ModifyDBParameterGroupRequest & AddParameters(Parameter &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
ModifyDBParameterGroupRequest & WithParameters(Aws::Vector< Parameter > &&value)
const Aws::Vector< Parameter > & GetParameters() const
ModifyDBParameterGroupRequest & WithParameters(const Aws::Vector< Parameter > &value)
void SetParameters(Aws::Vector< Parameter > &&value)
ModifyDBParameterGroupRequest & WithDBParameterGroupName(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ModifyDBParameterGroupRequest & WithDBParameterGroupName(const Aws::String &value)
void SetParameters(const Aws::Vector< Parameter > &value)
JSON (JavaScript Object Notation).