AWS SDK for C++  0.14.3
AWS SDK for C++
CreateDBParameterGroupRequest.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>
20 #include <aws/rds/model/Tag.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 CreateDBParameterGroupRequest& WithDBParameterGroupName(const Aws::String& value) { SetDBParameterGroupName(value); return *this;}
82 
90  inline CreateDBParameterGroupRequest& WithDBParameterGroupName(Aws::String&& value) { SetDBParameterGroupName(value); return *this;}
91 
99  inline CreateDBParameterGroupRequest& WithDBParameterGroupName(const char* value) { SetDBParameterGroupName(value); return *this;}
100 
107  inline const Aws::String& GetDBParameterGroupFamily() const{ return m_dBParameterGroupFamily; }
108 
115  inline void SetDBParameterGroupFamily(const Aws::String& value) { m_dBParameterGroupFamilyHasBeenSet = true; m_dBParameterGroupFamily = value; }
116 
123  inline void SetDBParameterGroupFamily(Aws::String&& value) { m_dBParameterGroupFamilyHasBeenSet = true; m_dBParameterGroupFamily = value; }
124 
131  inline void SetDBParameterGroupFamily(const char* value) { m_dBParameterGroupFamilyHasBeenSet = true; m_dBParameterGroupFamily.assign(value); }
132 
139  inline CreateDBParameterGroupRequest& WithDBParameterGroupFamily(const Aws::String& value) { SetDBParameterGroupFamily(value); return *this;}
140 
147  inline CreateDBParameterGroupRequest& WithDBParameterGroupFamily(Aws::String&& value) { SetDBParameterGroupFamily(value); return *this;}
148 
155  inline CreateDBParameterGroupRequest& WithDBParameterGroupFamily(const char* value) { SetDBParameterGroupFamily(value); return *this;}
156 
160  inline const Aws::String& GetDescription() const{ return m_description; }
161 
165  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
166 
170  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = value; }
171 
175  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
176 
180  inline CreateDBParameterGroupRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
181 
185  inline CreateDBParameterGroupRequest& WithDescription(Aws::String&& value) { SetDescription(value); return *this;}
186 
190  inline CreateDBParameterGroupRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
191 
192 
193  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
194 
195 
196  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
197 
198 
199  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = value; }
200 
201 
202  inline CreateDBParameterGroupRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
203 
204 
205  inline CreateDBParameterGroupRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(value); return *this;}
206 
207 
208  inline CreateDBParameterGroupRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
209 
210 
211  inline CreateDBParameterGroupRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
212 
213  private:
214  Aws::String m_dBParameterGroupName;
215  bool m_dBParameterGroupNameHasBeenSet;
216  Aws::String m_dBParameterGroupFamily;
217  bool m_dBParameterGroupFamilyHasBeenSet;
218  Aws::String m_description;
219  bool m_descriptionHasBeenSet;
220  Aws::Vector<Tag> m_tags;
221  bool m_tagsHasBeenSet;
222  };
223 
224 } // namespace Model
225 } // namespace RDS
226 } // namespace Aws
CreateDBParameterGroupRequest & WithDBParameterGroupFamily(const Aws::String &value)
CreateDBParameterGroupRequest & AddTags(const Tag &value)
#define AWS_RDS_API
Definition: RDS_EXPORTS.h:37
CreateDBParameterGroupRequest & AddTags(Tag &&value)
CreateDBParameterGroupRequest & WithDBParameterGroupName(const Aws::String &value)
CreateDBParameterGroupRequest & WithDescription(Aws::String &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
CreateDBParameterGroupRequest & WithDBParameterGroupFamily(Aws::String &&value)
CreateDBParameterGroupRequest & WithDescription(const Aws::String &value)
CreateDBParameterGroupRequest & WithDescription(const char *value)
CreateDBParameterGroupRequest & WithDBParameterGroupName(Aws::String &&value)
CreateDBParameterGroupRequest & WithTags(const Aws::Vector< Tag > &value)
CreateDBParameterGroupRequest & WithTags(Aws::Vector< Tag > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CreateDBParameterGroupRequest & WithDBParameterGroupFamily(const char *value)
CreateDBParameterGroupRequest & WithDBParameterGroupName(const char *value)
JSON (JavaScript Object Notation).