AWS SDK for C++  1.9.104
AWS SDK for C++
ModifyClusterParameterGroupRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Redshift
17 {
18 namespace Model
19 {
20 
28  {
29  public:
31 
32  // Service request name is the Operation name which will send this request out,
33  // each operation should has unique request name, so that we can get operation's name from this request.
34  // Note: this is not true for response, multiple operations may have the same response name,
35  // so we can not get operation's name from response.
36  inline virtual const char* GetServiceRequestName() const override { return "ModifyClusterParameterGroup"; }
37 
38  Aws::String SerializePayload() const override;
39 
40  protected:
41  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
42 
43  public:
44 
48  inline const Aws::String& GetParameterGroupName() const{ return m_parameterGroupName; }
49 
53  inline bool ParameterGroupNameHasBeenSet() const { return m_parameterGroupNameHasBeenSet; }
54 
58  inline void SetParameterGroupName(const Aws::String& value) { m_parameterGroupNameHasBeenSet = true; m_parameterGroupName = value; }
59 
63  inline void SetParameterGroupName(Aws::String&& value) { m_parameterGroupNameHasBeenSet = true; m_parameterGroupName = std::move(value); }
64 
68  inline void SetParameterGroupName(const char* value) { m_parameterGroupNameHasBeenSet = true; m_parameterGroupName.assign(value); }
69 
73  inline ModifyClusterParameterGroupRequest& WithParameterGroupName(const Aws::String& value) { SetParameterGroupName(value); return *this;}
74 
78  inline ModifyClusterParameterGroupRequest& WithParameterGroupName(Aws::String&& value) { SetParameterGroupName(std::move(value)); return *this;}
79 
83  inline ModifyClusterParameterGroupRequest& WithParameterGroupName(const char* value) { SetParameterGroupName(value); return *this;}
84 
85 
94  inline const Aws::Vector<Parameter>& GetParameters() const{ return m_parameters; }
95 
104  inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
105 
114  inline void SetParameters(const Aws::Vector<Parameter>& value) { m_parametersHasBeenSet = true; m_parameters = value; }
115 
124  inline void SetParameters(Aws::Vector<Parameter>&& value) { m_parametersHasBeenSet = true; m_parameters = std::move(value); }
125 
134  inline ModifyClusterParameterGroupRequest& WithParameters(const Aws::Vector<Parameter>& value) { SetParameters(value); return *this;}
135 
144  inline ModifyClusterParameterGroupRequest& WithParameters(Aws::Vector<Parameter>&& value) { SetParameters(std::move(value)); return *this;}
145 
154  inline ModifyClusterParameterGroupRequest& AddParameters(const Parameter& value) { m_parametersHasBeenSet = true; m_parameters.push_back(value); return *this; }
155 
164  inline ModifyClusterParameterGroupRequest& AddParameters(Parameter&& value) { m_parametersHasBeenSet = true; m_parameters.push_back(std::move(value)); return *this; }
165 
166  private:
167 
168  Aws::String m_parameterGroupName;
169  bool m_parameterGroupNameHasBeenSet;
170 
171  Aws::Vector<Parameter> m_parameters;
172  bool m_parametersHasBeenSet;
173  };
174 
175 } // namespace Model
176 } // namespace Redshift
177 } // namespace Aws
Aws::Redshift::Model::ModifyClusterParameterGroupRequest::AddParameters
ModifyClusterParameterGroupRequest & AddParameters(const Parameter &value)
Definition: ModifyClusterParameterGroupRequest.h:154
Parameter.h
Aws::Http::URI
Definition: URI.h:32
Aws::Redshift::Model::ModifyClusterParameterGroupRequest::WithParameterGroupName
ModifyClusterParameterGroupRequest & WithParameterGroupName(Aws::String &&value)
Definition: ModifyClusterParameterGroupRequest.h:78
Aws::Redshift::Model::ModifyClusterParameterGroupRequest::GetParameters
const Aws::Vector< Parameter > & GetParameters() const
Definition: ModifyClusterParameterGroupRequest.h:94
Aws::Redshift::Model::ModifyClusterParameterGroupRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
RedshiftRequest.h
AWSVector.h
Aws::Redshift::Model::ModifyClusterParameterGroupRequest::SetParameters
void SetParameters(Aws::Vector< Parameter > &&value)
Definition: ModifyClusterParameterGroupRequest.h:124
Aws::Redshift::Model::ModifyClusterParameterGroupRequest::WithParameters
ModifyClusterParameterGroupRequest & WithParameters(Aws::Vector< Parameter > &&value)
Definition: ModifyClusterParameterGroupRequest.h:144
Aws::Redshift::Model::ModifyClusterParameterGroupRequest::SetParameters
void SetParameters(const Aws::Vector< Parameter > &value)
Definition: ModifyClusterParameterGroupRequest.h:114
AWS_REDSHIFT_API
#define AWS_REDSHIFT_API
Definition: Redshift_EXPORTS.h:28
Aws::Redshift::Model::ModifyClusterParameterGroupRequest::SetParameterGroupName
void SetParameterGroupName(const char *value)
Definition: ModifyClusterParameterGroupRequest.h:68
Aws::Redshift::RedshiftRequest
Definition: RedshiftRequest.h:17
Aws::Redshift::Model::ModifyClusterParameterGroupRequest::SetParameterGroupName
void SetParameterGroupName(Aws::String &&value)
Definition: ModifyClusterParameterGroupRequest.h:63
AWSString.h
Aws::Redshift::Model::ModifyClusterParameterGroupRequest::WithParameterGroupName
ModifyClusterParameterGroupRequest & WithParameterGroupName(const char *value)
Definition: ModifyClusterParameterGroupRequest.h:83
Aws::Redshift::Model::ModifyClusterParameterGroupRequest
Definition: ModifyClusterParameterGroupRequest.h:28
Aws::Redshift::Model::ModifyClusterParameterGroupRequest::ParametersHasBeenSet
bool ParametersHasBeenSet() const
Definition: ModifyClusterParameterGroupRequest.h:104
Aws::Redshift::Model::ModifyClusterParameterGroupRequest::ParameterGroupNameHasBeenSet
bool ParameterGroupNameHasBeenSet() const
Definition: ModifyClusterParameterGroupRequest.h:53
Aws
Definition: AccessManagementClient.h:15
Aws::Redshift::Model::ModifyClusterParameterGroupRequest::WithParameterGroupName
ModifyClusterParameterGroupRequest & WithParameterGroupName(const Aws::String &value)
Definition: ModifyClusterParameterGroupRequest.h:73
Redshift_EXPORTS.h
Aws::Redshift::Model::ModifyClusterParameterGroupRequest::GetParameterGroupName
const Aws::String & GetParameterGroupName() const
Definition: ModifyClusterParameterGroupRequest.h:48
Aws::Redshift::Model::ModifyClusterParameterGroupRequest::SetParameterGroupName
void SetParameterGroupName(const Aws::String &value)
Definition: ModifyClusterParameterGroupRequest.h:58
Aws::Redshift::Model::Parameter
Definition: Parameter.h:34
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Redshift::Model::ModifyClusterParameterGroupRequest::AddParameters
ModifyClusterParameterGroupRequest & AddParameters(Parameter &&value)
Definition: ModifyClusterParameterGroupRequest.h:164
Aws::Redshift::Model::ModifyClusterParameterGroupRequest::ModifyClusterParameterGroupRequest
ModifyClusterParameterGroupRequest()
Aws::Redshift::Model::ModifyClusterParameterGroupRequest::WithParameters
ModifyClusterParameterGroupRequest & WithParameters(const Aws::Vector< Parameter > &value)
Definition: ModifyClusterParameterGroupRequest.h:134
Aws::Redshift::Model::ModifyClusterParameterGroupRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ModifyClusterParameterGroupRequest.h:36
Aws::Redshift::Model::ModifyClusterParameterGroupRequest::SerializePayload
Aws::String SerializePayload() const override