AWS SDK for C++  0.12.9
AWS SDK for C++
CopyDBParameterGroupRequest.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 
51  inline const Aws::String& GetSourceDBParameterGroupIdentifier() const{ return m_sourceDBParameterGroupIdentifier; }
52 
66  inline void SetSourceDBParameterGroupIdentifier(const Aws::String& value) { m_sourceDBParameterGroupIdentifierHasBeenSet = true; m_sourceDBParameterGroupIdentifier = value; }
67 
81  inline void SetSourceDBParameterGroupIdentifier(Aws::String&& value) { m_sourceDBParameterGroupIdentifierHasBeenSet = true; m_sourceDBParameterGroupIdentifier = value; }
82 
96  inline void SetSourceDBParameterGroupIdentifier(const char* value) { m_sourceDBParameterGroupIdentifierHasBeenSet = true; m_sourceDBParameterGroupIdentifier.assign(value); }
97 
111  inline CopyDBParameterGroupRequest& WithSourceDBParameterGroupIdentifier(const Aws::String& value) { SetSourceDBParameterGroupIdentifier(value); return *this;}
112 
126  inline CopyDBParameterGroupRequest& WithSourceDBParameterGroupIdentifier(Aws::String&& value) { SetSourceDBParameterGroupIdentifier(value); return *this;}
127 
141  inline CopyDBParameterGroupRequest& WithSourceDBParameterGroupIdentifier(const char* value) { SetSourceDBParameterGroupIdentifier(value); return *this;}
142 
151  inline const Aws::String& GetTargetDBParameterGroupIdentifier() const{ return m_targetDBParameterGroupIdentifier; }
152 
161  inline void SetTargetDBParameterGroupIdentifier(const Aws::String& value) { m_targetDBParameterGroupIdentifierHasBeenSet = true; m_targetDBParameterGroupIdentifier = value; }
162 
171  inline void SetTargetDBParameterGroupIdentifier(Aws::String&& value) { m_targetDBParameterGroupIdentifierHasBeenSet = true; m_targetDBParameterGroupIdentifier = value; }
172 
181  inline void SetTargetDBParameterGroupIdentifier(const char* value) { m_targetDBParameterGroupIdentifierHasBeenSet = true; m_targetDBParameterGroupIdentifier.assign(value); }
182 
191  inline CopyDBParameterGroupRequest& WithTargetDBParameterGroupIdentifier(const Aws::String& value) { SetTargetDBParameterGroupIdentifier(value); return *this;}
192 
201  inline CopyDBParameterGroupRequest& WithTargetDBParameterGroupIdentifier(Aws::String&& value) { SetTargetDBParameterGroupIdentifier(value); return *this;}
202 
211  inline CopyDBParameterGroupRequest& WithTargetDBParameterGroupIdentifier(const char* value) { SetTargetDBParameterGroupIdentifier(value); return *this;}
212 
216  inline const Aws::String& GetTargetDBParameterGroupDescription() const{ return m_targetDBParameterGroupDescription; }
217 
221  inline void SetTargetDBParameterGroupDescription(const Aws::String& value) { m_targetDBParameterGroupDescriptionHasBeenSet = true; m_targetDBParameterGroupDescription = value; }
222 
226  inline void SetTargetDBParameterGroupDescription(Aws::String&& value) { m_targetDBParameterGroupDescriptionHasBeenSet = true; m_targetDBParameterGroupDescription = value; }
227 
231  inline void SetTargetDBParameterGroupDescription(const char* value) { m_targetDBParameterGroupDescriptionHasBeenSet = true; m_targetDBParameterGroupDescription.assign(value); }
232 
236  inline CopyDBParameterGroupRequest& WithTargetDBParameterGroupDescription(const Aws::String& value) { SetTargetDBParameterGroupDescription(value); return *this;}
237 
241  inline CopyDBParameterGroupRequest& WithTargetDBParameterGroupDescription(Aws::String&& value) { SetTargetDBParameterGroupDescription(value); return *this;}
242 
246  inline CopyDBParameterGroupRequest& WithTargetDBParameterGroupDescription(const char* value) { SetTargetDBParameterGroupDescription(value); return *this;}
247 
248 
249  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
250 
251 
252  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
253 
254 
255  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = value; }
256 
257 
258  inline CopyDBParameterGroupRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
259 
260 
261  inline CopyDBParameterGroupRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(value); return *this;}
262 
263 
264  inline CopyDBParameterGroupRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
265 
266 
267  inline CopyDBParameterGroupRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
268 
269  private:
270  Aws::String m_sourceDBParameterGroupIdentifier;
271  bool m_sourceDBParameterGroupIdentifierHasBeenSet;
272  Aws::String m_targetDBParameterGroupIdentifier;
273  bool m_targetDBParameterGroupIdentifierHasBeenSet;
274  Aws::String m_targetDBParameterGroupDescription;
275  bool m_targetDBParameterGroupDescriptionHasBeenSet;
276  Aws::Vector<Tag> m_tags;
277  bool m_tagsHasBeenSet;
278  };
279 
280 } // namespace Model
281 } // namespace RDS
282 } // namespace Aws
CopyDBParameterGroupRequest & WithSourceDBParameterGroupIdentifier(Aws::String &&value)
CopyDBParameterGroupRequest & WithTargetDBParameterGroupDescription(const Aws::String &value)
CopyDBParameterGroupRequest & WithTargetDBParameterGroupIdentifier(Aws::String &&value)
#define AWS_RDS_API
Definition: RDS_EXPORTS.h:34
CopyDBParameterGroupRequest & WithTargetDBParameterGroupIdentifier(const char *value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
CopyDBParameterGroupRequest & WithTags(Aws::Vector< Tag > &&value)
void SetTargetDBParameterGroupIdentifier(const Aws::String &value)
CopyDBParameterGroupRequest & WithTags(const Aws::Vector< Tag > &value)
const Aws::String & GetTargetDBParameterGroupDescription() const
CopyDBParameterGroupRequest & AddTags(const Tag &value)
CopyDBParameterGroupRequest & WithSourceDBParameterGroupIdentifier(const Aws::String &value)
CopyDBParameterGroupRequest & WithTargetDBParameterGroupDescription(Aws::String &&value)
void SetTargetDBParameterGroupDescription(const Aws::String &value)
const Aws::String & GetTargetDBParameterGroupIdentifier() const
const Aws::String & GetSourceDBParameterGroupIdentifier() const
CopyDBParameterGroupRequest & WithTargetDBParameterGroupIdentifier(const Aws::String &value)
void SetSourceDBParameterGroupIdentifier(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CopyDBParameterGroupRequest & WithTargetDBParameterGroupDescription(const char *value)
CopyDBParameterGroupRequest & WithSourceDBParameterGroupIdentifier(const char *value)
CopyDBParameterGroupRequest & AddTags(Tag &&value)
JSON (JavaScript Object Notation).