AWS SDK for C++  0.12.9
AWS SDK for C++
CopyDBSnapshotRequest.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 
52  inline const Aws::String& GetSourceDBSnapshotIdentifier() const{ return m_sourceDBSnapshotIdentifier; }
53 
68  inline void SetSourceDBSnapshotIdentifier(const Aws::String& value) { m_sourceDBSnapshotIdentifierHasBeenSet = true; m_sourceDBSnapshotIdentifier = value; }
69 
84  inline void SetSourceDBSnapshotIdentifier(Aws::String&& value) { m_sourceDBSnapshotIdentifierHasBeenSet = true; m_sourceDBSnapshotIdentifier = value; }
85 
100  inline void SetSourceDBSnapshotIdentifier(const char* value) { m_sourceDBSnapshotIdentifierHasBeenSet = true; m_sourceDBSnapshotIdentifier.assign(value); }
101 
116  inline CopyDBSnapshotRequest& WithSourceDBSnapshotIdentifier(const Aws::String& value) { SetSourceDBSnapshotIdentifier(value); return *this;}
117 
132  inline CopyDBSnapshotRequest& WithSourceDBSnapshotIdentifier(Aws::String&& value) { SetSourceDBSnapshotIdentifier(value); return *this;}
133 
148  inline CopyDBSnapshotRequest& WithSourceDBSnapshotIdentifier(const char* value) { SetSourceDBSnapshotIdentifier(value); return *this;}
149 
157  inline const Aws::String& GetTargetDBSnapshotIdentifier() const{ return m_targetDBSnapshotIdentifier; }
158 
166  inline void SetTargetDBSnapshotIdentifier(const Aws::String& value) { m_targetDBSnapshotIdentifierHasBeenSet = true; m_targetDBSnapshotIdentifier = value; }
167 
175  inline void SetTargetDBSnapshotIdentifier(Aws::String&& value) { m_targetDBSnapshotIdentifierHasBeenSet = true; m_targetDBSnapshotIdentifier = value; }
176 
184  inline void SetTargetDBSnapshotIdentifier(const char* value) { m_targetDBSnapshotIdentifierHasBeenSet = true; m_targetDBSnapshotIdentifier.assign(value); }
185 
193  inline CopyDBSnapshotRequest& WithTargetDBSnapshotIdentifier(const Aws::String& value) { SetTargetDBSnapshotIdentifier(value); return *this;}
194 
202  inline CopyDBSnapshotRequest& WithTargetDBSnapshotIdentifier(Aws::String&& value) { SetTargetDBSnapshotIdentifier(value); return *this;}
203 
211  inline CopyDBSnapshotRequest& WithTargetDBSnapshotIdentifier(const char* value) { SetTargetDBSnapshotIdentifier(value); return *this;}
212 
226  inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
227 
241  inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
242 
256  inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
257 
271  inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
272 
286  inline CopyDBSnapshotRequest& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
287 
301  inline CopyDBSnapshotRequest& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(value); return *this;}
302 
316  inline CopyDBSnapshotRequest& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
317 
318 
319  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
320 
321 
322  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
323 
324 
325  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = value; }
326 
327 
328  inline CopyDBSnapshotRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
329 
330 
331  inline CopyDBSnapshotRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(value); return *this;}
332 
333 
334  inline CopyDBSnapshotRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
335 
336 
337  inline CopyDBSnapshotRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
338 
343  inline bool GetCopyTags() const{ return m_copyTags; }
344 
349  inline void SetCopyTags(bool value) { m_copyTagsHasBeenSet = true; m_copyTags = value; }
350 
355  inline CopyDBSnapshotRequest& WithCopyTags(bool value) { SetCopyTags(value); return *this;}
356 
357  private:
358  Aws::String m_sourceDBSnapshotIdentifier;
359  bool m_sourceDBSnapshotIdentifierHasBeenSet;
360  Aws::String m_targetDBSnapshotIdentifier;
361  bool m_targetDBSnapshotIdentifierHasBeenSet;
362  Aws::String m_kmsKeyId;
363  bool m_kmsKeyIdHasBeenSet;
364  Aws::Vector<Tag> m_tags;
365  bool m_tagsHasBeenSet;
366  bool m_copyTags;
367  bool m_copyTagsHasBeenSet;
368  };
369 
370 } // namespace Model
371 } // namespace RDS
372 } // namespace Aws
CopyDBSnapshotRequest & WithKmsKeyId(Aws::String &&value)
CopyDBSnapshotRequest & WithKmsKeyId(const char *value)
void SetTags(Aws::Vector< Tag > &&value)
CopyDBSnapshotRequest & WithKmsKeyId(const Aws::String &value)
CopyDBSnapshotRequest & WithSourceDBSnapshotIdentifier(const char *value)
CopyDBSnapshotRequest & WithTargetDBSnapshotIdentifier(const Aws::String &value)
#define AWS_RDS_API
Definition: RDS_EXPORTS.h:34
void SetSourceDBSnapshotIdentifier(Aws::String &&value)
CopyDBSnapshotRequest & WithSourceDBSnapshotIdentifier(Aws::String &&value)
void SetSourceDBSnapshotIdentifier(const char *value)
CopyDBSnapshotRequest & WithTags(Aws::Vector< Tag > &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
void SetTargetDBSnapshotIdentifier(const Aws::String &value)
const Aws::Vector< Tag > & GetTags() const
const Aws::String & GetKmsKeyId() const
CopyDBSnapshotRequest & AddTags(Tag &&value)
CopyDBSnapshotRequest & WithCopyTags(bool value)
CopyDBSnapshotRequest & WithTargetDBSnapshotIdentifier(const char *value)
void SetKmsKeyId(const Aws::String &value)
CopyDBSnapshotRequest & WithTargetDBSnapshotIdentifier(Aws::String &&value)
const Aws::String & GetSourceDBSnapshotIdentifier() const
void SetTags(const Aws::Vector< Tag > &value)
void SetTargetDBSnapshotIdentifier(const char *value)
CopyDBSnapshotRequest & AddTags(const Tag &value)
void SetTargetDBSnapshotIdentifier(Aws::String &&value)
void SetSourceDBSnapshotIdentifier(const Aws::String &value)
CopyDBSnapshotRequest & WithSourceDBSnapshotIdentifier(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CopyDBSnapshotRequest & WithTags(const Aws::Vector< Tag > &value)
JSON (JavaScript Object Notation).
const Aws::String & GetTargetDBSnapshotIdentifier() const