AWS SDK for C++  1.9.104
AWS SDK for C++
CreateClusterParameterGroupRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <aws/redshift/model/Tag.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Redshift
17 {
18 namespace Model
19 {
20 
27  {
28  public:
30 
31  // Service request name is the Operation name which will send this request out,
32  // each operation should has unique request name, so that we can get operation's name from this request.
33  // Note: this is not true for response, multiple operations may have the same response name,
34  // so we can not get operation's name from response.
35  inline virtual const char* GetServiceRequestName() const override { return "CreateClusterParameterGroup"; }
36 
37  Aws::String SerializePayload() const override;
38 
39  protected:
40  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
41 
42  public:
43 
52  inline const Aws::String& GetParameterGroupName() const{ return m_parameterGroupName; }
53 
62  inline bool ParameterGroupNameHasBeenSet() const { return m_parameterGroupNameHasBeenSet; }
63 
72  inline void SetParameterGroupName(const Aws::String& value) { m_parameterGroupNameHasBeenSet = true; m_parameterGroupName = value; }
73 
82  inline void SetParameterGroupName(Aws::String&& value) { m_parameterGroupNameHasBeenSet = true; m_parameterGroupName = std::move(value); }
83 
92  inline void SetParameterGroupName(const char* value) { m_parameterGroupNameHasBeenSet = true; m_parameterGroupName.assign(value); }
93 
102  inline CreateClusterParameterGroupRequest& WithParameterGroupName(const Aws::String& value) { SetParameterGroupName(value); return *this;}
103 
112  inline CreateClusterParameterGroupRequest& WithParameterGroupName(Aws::String&& value) { SetParameterGroupName(std::move(value)); return *this;}
113 
122  inline CreateClusterParameterGroupRequest& WithParameterGroupName(const char* value) { SetParameterGroupName(value); return *this;}
123 
124 
136  inline const Aws::String& GetParameterGroupFamily() const{ return m_parameterGroupFamily; }
137 
149  inline bool ParameterGroupFamilyHasBeenSet() const { return m_parameterGroupFamilyHasBeenSet; }
150 
162  inline void SetParameterGroupFamily(const Aws::String& value) { m_parameterGroupFamilyHasBeenSet = true; m_parameterGroupFamily = value; }
163 
175  inline void SetParameterGroupFamily(Aws::String&& value) { m_parameterGroupFamilyHasBeenSet = true; m_parameterGroupFamily = std::move(value); }
176 
188  inline void SetParameterGroupFamily(const char* value) { m_parameterGroupFamilyHasBeenSet = true; m_parameterGroupFamily.assign(value); }
189 
201  inline CreateClusterParameterGroupRequest& WithParameterGroupFamily(const Aws::String& value) { SetParameterGroupFamily(value); return *this;}
202 
214  inline CreateClusterParameterGroupRequest& WithParameterGroupFamily(Aws::String&& value) { SetParameterGroupFamily(std::move(value)); return *this;}
215 
227  inline CreateClusterParameterGroupRequest& WithParameterGroupFamily(const char* value) { SetParameterGroupFamily(value); return *this;}
228 
229 
233  inline const Aws::String& GetDescription() const{ return m_description; }
234 
238  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
239 
243  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
244 
248  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
249 
253  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
254 
258  inline CreateClusterParameterGroupRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
259 
263  inline CreateClusterParameterGroupRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
264 
268  inline CreateClusterParameterGroupRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
269 
270 
274  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
275 
279  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
280 
284  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
285 
289  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
290 
294  inline CreateClusterParameterGroupRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
295 
299  inline CreateClusterParameterGroupRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
300 
304  inline CreateClusterParameterGroupRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
305 
309  inline CreateClusterParameterGroupRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
310 
311  private:
312 
313  Aws::String m_parameterGroupName;
314  bool m_parameterGroupNameHasBeenSet;
315 
316  Aws::String m_parameterGroupFamily;
317  bool m_parameterGroupFamilyHasBeenSet;
318 
319  Aws::String m_description;
320  bool m_descriptionHasBeenSet;
321 
322  Aws::Vector<Tag> m_tags;
323  bool m_tagsHasBeenSet;
324  };
325 
326 } // namespace Model
327 } // namespace Redshift
328 } // namespace Aws
Aws::Redshift::Model::CreateClusterParameterGroupRequest::WithParameterGroupFamily
CreateClusterParameterGroupRequest & WithParameterGroupFamily(const Aws::String &value)
Definition: CreateClusterParameterGroupRequest.h:201
Aws::Redshift::Model::Tag
Definition: Tag.h:33
Aws::Http::URI
Definition: URI.h:32
Aws::Redshift::Model::CreateClusterParameterGroupRequest::WithDescription
CreateClusterParameterGroupRequest & WithDescription(Aws::String &&value)
Definition: CreateClusterParameterGroupRequest.h:263
Aws::Redshift::Model::CreateClusterParameterGroupRequest::GetParameterGroupFamily
const Aws::String & GetParameterGroupFamily() const
Definition: CreateClusterParameterGroupRequest.h:136
Aws::Redshift::Model::CreateClusterParameterGroupRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreateClusterParameterGroupRequest.h:289
Aws::Redshift::Model::CreateClusterParameterGroupRequest::SetParameterGroupFamily
void SetParameterGroupFamily(Aws::String &&value)
Definition: CreateClusterParameterGroupRequest.h:175
Aws::Redshift::Model::CreateClusterParameterGroupRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: CreateClusterParameterGroupRequest.h:243
Tag.h
Aws::Redshift::Model::CreateClusterParameterGroupRequest::GetParameterGroupName
const Aws::String & GetParameterGroupName() const
Definition: CreateClusterParameterGroupRequest.h:52
Aws::Redshift::Model::CreateClusterParameterGroupRequest
Definition: CreateClusterParameterGroupRequest.h:27
Aws::Redshift::Model::CreateClusterParameterGroupRequest::ParameterGroupFamilyHasBeenSet
bool ParameterGroupFamilyHasBeenSet() const
Definition: CreateClusterParameterGroupRequest.h:149
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Redshift::Model::CreateClusterParameterGroupRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: CreateClusterParameterGroupRequest.h:238
RedshiftRequest.h
Aws::Redshift::Model::CreateClusterParameterGroupRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreateClusterParameterGroupRequest.h:284
Aws::Redshift::Model::CreateClusterParameterGroupRequest::SetParameterGroupFamily
void SetParameterGroupFamily(const char *value)
Definition: CreateClusterParameterGroupRequest.h:188
AWSVector.h
Aws::Redshift::Model::CreateClusterParameterGroupRequest::AddTags
CreateClusterParameterGroupRequest & AddTags(Tag &&value)
Definition: CreateClusterParameterGroupRequest.h:309
Aws::Redshift::Model::CreateClusterParameterGroupRequest::SetParameterGroupName
void SetParameterGroupName(const Aws::String &value)
Definition: CreateClusterParameterGroupRequest.h:72
Aws::Redshift::Model::CreateClusterParameterGroupRequest::WithTags
CreateClusterParameterGroupRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreateClusterParameterGroupRequest.h:294
Aws::Redshift::Model::CreateClusterParameterGroupRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateClusterParameterGroupRequest.h:274
Aws::Redshift::Model::CreateClusterParameterGroupRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: CreateClusterParameterGroupRequest.h:248
Aws::Redshift::Model::CreateClusterParameterGroupRequest::SetParameterGroupFamily
void SetParameterGroupFamily(const Aws::String &value)
Definition: CreateClusterParameterGroupRequest.h:162
AWS_REDSHIFT_API
#define AWS_REDSHIFT_API
Definition: Redshift_EXPORTS.h:28
Aws::Redshift::RedshiftRequest
Definition: RedshiftRequest.h:17
Aws::Redshift::Model::CreateClusterParameterGroupRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateClusterParameterGroupRequest.h:279
AWSString.h
Aws::Redshift::Model::CreateClusterParameterGroupRequest::CreateClusterParameterGroupRequest
CreateClusterParameterGroupRequest()
Aws::Redshift::Model::CreateClusterParameterGroupRequest::WithParameterGroupFamily
CreateClusterParameterGroupRequest & WithParameterGroupFamily(Aws::String &&value)
Definition: CreateClusterParameterGroupRequest.h:214
Aws::Redshift::Model::CreateClusterParameterGroupRequest::SetParameterGroupName
void SetParameterGroupName(Aws::String &&value)
Definition: CreateClusterParameterGroupRequest.h:82
Aws::Redshift::Model::CreateClusterParameterGroupRequest::WithTags
CreateClusterParameterGroupRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreateClusterParameterGroupRequest.h:299
Aws::Redshift::Model::CreateClusterParameterGroupRequest::WithParameterGroupName
CreateClusterParameterGroupRequest & WithParameterGroupName(Aws::String &&value)
Definition: CreateClusterParameterGroupRequest.h:112
Aws
Definition: AccessManagementClient.h:15
Aws::Redshift::Model::CreateClusterParameterGroupRequest::SetDescription
void SetDescription(const char *value)
Definition: CreateClusterParameterGroupRequest.h:253
Aws::Redshift::Model::CreateClusterParameterGroupRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateClusterParameterGroupRequest.h:35
Aws::Redshift::Model::CreateClusterParameterGroupRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Redshift_EXPORTS.h
Aws::Redshift::Model::CreateClusterParameterGroupRequest::WithDescription
CreateClusterParameterGroupRequest & WithDescription(const Aws::String &value)
Definition: CreateClusterParameterGroupRequest.h:258
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Redshift::Model::CreateClusterParameterGroupRequest::ParameterGroupNameHasBeenSet
bool ParameterGroupNameHasBeenSet() const
Definition: CreateClusterParameterGroupRequest.h:62
Aws::Redshift::Model::CreateClusterParameterGroupRequest::WithParameterGroupFamily
CreateClusterParameterGroupRequest & WithParameterGroupFamily(const char *value)
Definition: CreateClusterParameterGroupRequest.h:227
Aws::Redshift::Model::CreateClusterParameterGroupRequest::SetParameterGroupName
void SetParameterGroupName(const char *value)
Definition: CreateClusterParameterGroupRequest.h:92
Aws::Redshift::Model::CreateClusterParameterGroupRequest::WithParameterGroupName
CreateClusterParameterGroupRequest & WithParameterGroupName(const Aws::String &value)
Definition: CreateClusterParameterGroupRequest.h:102
Aws::Redshift::Model::CreateClusterParameterGroupRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Redshift::Model::CreateClusterParameterGroupRequest::AddTags
CreateClusterParameterGroupRequest & AddTags(const Tag &value)
Definition: CreateClusterParameterGroupRequest.h:304
Aws::Redshift::Model::CreateClusterParameterGroupRequest::GetDescription
const Aws::String & GetDescription() const
Definition: CreateClusterParameterGroupRequest.h:233
Aws::Redshift::Model::CreateClusterParameterGroupRequest::WithParameterGroupName
CreateClusterParameterGroupRequest & WithParameterGroupName(const char *value)
Definition: CreateClusterParameterGroupRequest.h:122
Aws::Redshift::Model::CreateClusterParameterGroupRequest::WithDescription
CreateClusterParameterGroupRequest & WithDescription(const char *value)
Definition: CreateClusterParameterGroupRequest.h:268