AWS SDK for C++  0.14.3
AWS SDK for C++
CopyDBClusterSnapshotRequest.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& GetSourceDBClusterSnapshotIdentifier() const{ return m_sourceDBClusterSnapshotIdentifier; }
46 
54  inline void SetSourceDBClusterSnapshotIdentifier(const Aws::String& value) { m_sourceDBClusterSnapshotIdentifierHasBeenSet = true; m_sourceDBClusterSnapshotIdentifier = value; }
55 
63  inline void SetSourceDBClusterSnapshotIdentifier(Aws::String&& value) { m_sourceDBClusterSnapshotIdentifierHasBeenSet = true; m_sourceDBClusterSnapshotIdentifier = value; }
64 
72  inline void SetSourceDBClusterSnapshotIdentifier(const char* value) { m_sourceDBClusterSnapshotIdentifierHasBeenSet = true; m_sourceDBClusterSnapshotIdentifier.assign(value); }
73 
81  inline CopyDBClusterSnapshotRequest& WithSourceDBClusterSnapshotIdentifier(const Aws::String& value) { SetSourceDBClusterSnapshotIdentifier(value); return *this;}
82 
90  inline CopyDBClusterSnapshotRequest& WithSourceDBClusterSnapshotIdentifier(Aws::String&& value) { SetSourceDBClusterSnapshotIdentifier(value); return *this;}
91 
99  inline CopyDBClusterSnapshotRequest& WithSourceDBClusterSnapshotIdentifier(const char* value) { SetSourceDBClusterSnapshotIdentifier(value); return *this;}
100 
109  inline const Aws::String& GetTargetDBClusterSnapshotIdentifier() const{ return m_targetDBClusterSnapshotIdentifier; }
110 
119  inline void SetTargetDBClusterSnapshotIdentifier(const Aws::String& value) { m_targetDBClusterSnapshotIdentifierHasBeenSet = true; m_targetDBClusterSnapshotIdentifier = value; }
120 
129  inline void SetTargetDBClusterSnapshotIdentifier(Aws::String&& value) { m_targetDBClusterSnapshotIdentifierHasBeenSet = true; m_targetDBClusterSnapshotIdentifier = value; }
130 
139  inline void SetTargetDBClusterSnapshotIdentifier(const char* value) { m_targetDBClusterSnapshotIdentifierHasBeenSet = true; m_targetDBClusterSnapshotIdentifier.assign(value); }
140 
149  inline CopyDBClusterSnapshotRequest& WithTargetDBClusterSnapshotIdentifier(const Aws::String& value) { SetTargetDBClusterSnapshotIdentifier(value); return *this;}
150 
159  inline CopyDBClusterSnapshotRequest& WithTargetDBClusterSnapshotIdentifier(Aws::String&& value) { SetTargetDBClusterSnapshotIdentifier(value); return *this;}
160 
169  inline CopyDBClusterSnapshotRequest& WithTargetDBClusterSnapshotIdentifier(const char* value) { SetTargetDBClusterSnapshotIdentifier(value); return *this;}
170 
171 
172  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
173 
174 
175  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
176 
177 
178  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = value; }
179 
180 
181  inline CopyDBClusterSnapshotRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
182 
183 
184  inline CopyDBClusterSnapshotRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(value); return *this;}
185 
186 
187  inline CopyDBClusterSnapshotRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
188 
189 
190  inline CopyDBClusterSnapshotRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
191 
192  private:
193  Aws::String m_sourceDBClusterSnapshotIdentifier;
194  bool m_sourceDBClusterSnapshotIdentifierHasBeenSet;
195  Aws::String m_targetDBClusterSnapshotIdentifier;
196  bool m_targetDBClusterSnapshotIdentifierHasBeenSet;
197  Aws::Vector<Tag> m_tags;
198  bool m_tagsHasBeenSet;
199  };
200 
201 } // namespace Model
202 } // namespace RDS
203 } // namespace Aws
CopyDBClusterSnapshotRequest & WithSourceDBClusterSnapshotIdentifier(Aws::String &&value)
#define AWS_RDS_API
Definition: RDS_EXPORTS.h:37
CopyDBClusterSnapshotRequest & WithTags(const Aws::Vector< Tag > &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
CopyDBClusterSnapshotRequest & WithSourceDBClusterSnapshotIdentifier(const char *value)
CopyDBClusterSnapshotRequest & AddTags(Tag &&value)
CopyDBClusterSnapshotRequest & WithTargetDBClusterSnapshotIdentifier(const Aws::String &value)
CopyDBClusterSnapshotRequest & WithTargetDBClusterSnapshotIdentifier(Aws::String &&value)
void SetSourceDBClusterSnapshotIdentifier(const Aws::String &value)
CopyDBClusterSnapshotRequest & AddTags(const Tag &value)
void SetTargetDBClusterSnapshotIdentifier(const Aws::String &value)
CopyDBClusterSnapshotRequest & WithTags(Aws::Vector< Tag > &&value)
CopyDBClusterSnapshotRequest & WithTargetDBClusterSnapshotIdentifier(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CopyDBClusterSnapshotRequest & WithSourceDBClusterSnapshotIdentifier(const Aws::String &value)
JSON (JavaScript Object Notation).