AWS SDK for C++  0.14.3
AWS SDK for C++
ResetDBParameterGroupRequest.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 
44  inline const Aws::String& GetDBParameterGroupName() const{ return m_dBParameterGroupName; }
45 
52  inline void SetDBParameterGroupName(const Aws::String& value) { m_dBParameterGroupNameHasBeenSet = true; m_dBParameterGroupName = value; }
53 
60  inline void SetDBParameterGroupName(Aws::String&& value) { m_dBParameterGroupNameHasBeenSet = true; m_dBParameterGroupName = value; }
61 
68  inline void SetDBParameterGroupName(const char* value) { m_dBParameterGroupNameHasBeenSet = true; m_dBParameterGroupName.assign(value); }
69 
76  inline ResetDBParameterGroupRequest& WithDBParameterGroupName(const Aws::String& value) { SetDBParameterGroupName(value); return *this;}
77 
84  inline ResetDBParameterGroupRequest& WithDBParameterGroupName(Aws::String&& value) { SetDBParameterGroupName(value); return *this;}
85 
92  inline ResetDBParameterGroupRequest& WithDBParameterGroupName(const char* value) { SetDBParameterGroupName(value); return *this;}
93 
99  inline bool GetResetAllParameters() const{ return m_resetAllParameters; }
100 
106  inline void SetResetAllParameters(bool value) { m_resetAllParametersHasBeenSet = true; m_resetAllParameters = value; }
107 
113  inline ResetDBParameterGroupRequest& WithResetAllParameters(bool value) { SetResetAllParameters(value); return *this;}
114 
131  inline const Aws::Vector<Parameter>& GetParameters() const{ return m_parameters; }
132 
149  inline void SetParameters(const Aws::Vector<Parameter>& value) { m_parametersHasBeenSet = true; m_parameters = value; }
150 
167  inline void SetParameters(Aws::Vector<Parameter>&& value) { m_parametersHasBeenSet = true; m_parameters = value; }
168 
185  inline ResetDBParameterGroupRequest& WithParameters(const Aws::Vector<Parameter>& value) { SetParameters(value); return *this;}
186 
203  inline ResetDBParameterGroupRequest& WithParameters(Aws::Vector<Parameter>&& value) { SetParameters(value); return *this;}
204 
221  inline ResetDBParameterGroupRequest& AddParameters(const Parameter& value) { m_parametersHasBeenSet = true; m_parameters.push_back(value); return *this; }
222 
239  inline ResetDBParameterGroupRequest& AddParameters(Parameter&& value) { m_parametersHasBeenSet = true; m_parameters.push_back(value); return *this; }
240 
241  private:
242  Aws::String m_dBParameterGroupName;
243  bool m_dBParameterGroupNameHasBeenSet;
244  bool m_resetAllParameters;
245  bool m_resetAllParametersHasBeenSet;
246  Aws::Vector<Parameter> m_parameters;
247  bool m_parametersHasBeenSet;
248  };
249 
250 } // namespace Model
251 } // namespace RDS
252 } // namespace Aws
ResetDBParameterGroupRequest & WithResetAllParameters(bool value)
ResetDBParameterGroupRequest & AddParameters(Parameter &&value)
#define AWS_RDS_API
Definition: RDS_EXPORTS.h:37
ResetDBParameterGroupRequest & WithDBParameterGroupName(const char *value)
const Aws::Vector< Parameter > & GetParameters() const
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
ResetDBParameterGroupRequest & WithDBParameterGroupName(const Aws::String &value)
ResetDBParameterGroupRequest & WithDBParameterGroupName(Aws::String &&value)
void SetParameters(Aws::Vector< Parameter > &&value)
ResetDBParameterGroupRequest & WithParameters(const Aws::Vector< Parameter > &value)
ResetDBParameterGroupRequest & AddParameters(const Parameter &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ResetDBParameterGroupRequest & WithParameters(Aws::Vector< Parameter > &&value)
void SetParameters(const Aws::Vector< Parameter > &value)
JSON (JavaScript Object Notation).