AWS SDK for C++  0.12.9
AWS SDK for C++
CreateClusterParameterGroupRequest.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
20 #include <aws/redshift/model/Tag.h>
21 
22 namespace Aws
23 {
24 namespace Redshift
25 {
26 namespace Model
27 {
28 
33  {
34  public:
36  Aws::String SerializePayload() const override;
37 
45  inline const Aws::String& GetParameterGroupName() const{ return m_parameterGroupName; }
46 
54  inline void SetParameterGroupName(const Aws::String& value) { m_parameterGroupNameHasBeenSet = true; m_parameterGroupName = value; }
55 
63  inline void SetParameterGroupName(Aws::String&& value) { m_parameterGroupNameHasBeenSet = true; m_parameterGroupName = value; }
64 
72  inline void SetParameterGroupName(const char* value) { m_parameterGroupNameHasBeenSet = true; m_parameterGroupName.assign(value); }
73 
81  inline CreateClusterParameterGroupRequest& WithParameterGroupName(const Aws::String& value) { SetParameterGroupName(value); return *this;}
82 
90  inline CreateClusterParameterGroupRequest& WithParameterGroupName(Aws::String&& value) { SetParameterGroupName(value); return *this;}
91 
99  inline CreateClusterParameterGroupRequest& WithParameterGroupName(const char* value) { SetParameterGroupName(value); return *this;}
100 
112  inline const Aws::String& GetParameterGroupFamily() const{ return m_parameterGroupFamily; }
113 
125  inline void SetParameterGroupFamily(const Aws::String& value) { m_parameterGroupFamilyHasBeenSet = true; m_parameterGroupFamily = value; }
126 
138  inline void SetParameterGroupFamily(Aws::String&& value) { m_parameterGroupFamilyHasBeenSet = true; m_parameterGroupFamily = value; }
139 
151  inline void SetParameterGroupFamily(const char* value) { m_parameterGroupFamilyHasBeenSet = true; m_parameterGroupFamily.assign(value); }
152 
164  inline CreateClusterParameterGroupRequest& WithParameterGroupFamily(const Aws::String& value) { SetParameterGroupFamily(value); return *this;}
165 
177  inline CreateClusterParameterGroupRequest& WithParameterGroupFamily(Aws::String&& value) { SetParameterGroupFamily(value); return *this;}
178 
190  inline CreateClusterParameterGroupRequest& WithParameterGroupFamily(const char* value) { SetParameterGroupFamily(value); return *this;}
191 
195  inline const Aws::String& GetDescription() const{ return m_description; }
196 
200  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
201 
205  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = value; }
206 
210  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
211 
215  inline CreateClusterParameterGroupRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
216 
220  inline CreateClusterParameterGroupRequest& WithDescription(Aws::String&& value) { SetDescription(value); return *this;}
221 
225  inline CreateClusterParameterGroupRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
226 
230  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
231 
235  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
236 
240  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = value; }
241 
245  inline CreateClusterParameterGroupRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
246 
250  inline CreateClusterParameterGroupRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(value); return *this;}
251 
255  inline CreateClusterParameterGroupRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
256 
260  inline CreateClusterParameterGroupRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
261 
262  private:
263  Aws::String m_parameterGroupName;
264  bool m_parameterGroupNameHasBeenSet;
265  Aws::String m_parameterGroupFamily;
266  bool m_parameterGroupFamilyHasBeenSet;
267  Aws::String m_description;
268  bool m_descriptionHasBeenSet;
269  Aws::Vector<Tag> m_tags;
270  bool m_tagsHasBeenSet;
271  };
272 
273 } // namespace Model
274 } // namespace Redshift
275 } // namespace Aws
CreateClusterParameterGroupRequest & WithParameterGroupName(Aws::String &&value)
CreateClusterParameterGroupRequest & WithParameterGroupFamily(const Aws::String &value)
CreateClusterParameterGroupRequest & WithParameterGroupName(const char *value)
CreateClusterParameterGroupRequest & WithDescription(Aws::String &&value)
CreateClusterParameterGroupRequest & WithParameterGroupName(const Aws::String &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
CreateClusterParameterGroupRequest & WithParameterGroupFamily(Aws::String &&value)
CreateClusterParameterGroupRequest & WithTags(const Aws::Vector< Tag > &value)
#define AWS_REDSHIFT_API
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CreateClusterParameterGroupRequest & WithDescription(const Aws::String &value)
CreateClusterParameterGroupRequest & WithDescription(const char *value)
CreateClusterParameterGroupRequest & WithParameterGroupFamily(const char *value)
CreateClusterParameterGroupRequest & WithTags(Aws::Vector< Tag > &&value)
JSON (JavaScript Object Notation).
CreateClusterParameterGroupRequest & AddTags(const Tag &value)