AWS SDK for C++  0.14.3
AWS SDK for C++
CopySnapshotRequest.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
19 
20 namespace Aws
21 {
22 namespace ElastiCache
23 {
24 namespace Model
25 {
26 
31  {
32  public:
34  Aws::String SerializePayload() const override;
35 
39  inline const Aws::String& GetSourceSnapshotName() const{ return m_sourceSnapshotName; }
40 
44  inline void SetSourceSnapshotName(const Aws::String& value) { m_sourceSnapshotNameHasBeenSet = true; m_sourceSnapshotName = value; }
45 
49  inline void SetSourceSnapshotName(Aws::String&& value) { m_sourceSnapshotNameHasBeenSet = true; m_sourceSnapshotName = value; }
50 
54  inline void SetSourceSnapshotName(const char* value) { m_sourceSnapshotNameHasBeenSet = true; m_sourceSnapshotName.assign(value); }
55 
59  inline CopySnapshotRequest& WithSourceSnapshotName(const Aws::String& value) { SetSourceSnapshotName(value); return *this;}
60 
64  inline CopySnapshotRequest& WithSourceSnapshotName(Aws::String&& value) { SetSourceSnapshotName(value); return *this;}
65 
69  inline CopySnapshotRequest& WithSourceSnapshotName(const char* value) { SetSourceSnapshotName(value); return *this;}
70 
81  inline const Aws::String& GetTargetSnapshotName() const{ return m_targetSnapshotName; }
82 
93  inline void SetTargetSnapshotName(const Aws::String& value) { m_targetSnapshotNameHasBeenSet = true; m_targetSnapshotName = value; }
94 
105  inline void SetTargetSnapshotName(Aws::String&& value) { m_targetSnapshotNameHasBeenSet = true; m_targetSnapshotName = value; }
106 
117  inline void SetTargetSnapshotName(const char* value) { m_targetSnapshotNameHasBeenSet = true; m_targetSnapshotName.assign(value); }
118 
129  inline CopySnapshotRequest& WithTargetSnapshotName(const Aws::String& value) { SetTargetSnapshotName(value); return *this;}
130 
141  inline CopySnapshotRequest& WithTargetSnapshotName(Aws::String&& value) { SetTargetSnapshotName(value); return *this;}
142 
153  inline CopySnapshotRequest& WithTargetSnapshotName(const char* value) { SetTargetSnapshotName(value); return *this;}
154 
192  inline const Aws::String& GetTargetBucket() const{ return m_targetBucket; }
193 
231  inline void SetTargetBucket(const Aws::String& value) { m_targetBucketHasBeenSet = true; m_targetBucket = value; }
232 
270  inline void SetTargetBucket(Aws::String&& value) { m_targetBucketHasBeenSet = true; m_targetBucket = value; }
271 
309  inline void SetTargetBucket(const char* value) { m_targetBucketHasBeenSet = true; m_targetBucket.assign(value); }
310 
348  inline CopySnapshotRequest& WithTargetBucket(const Aws::String& value) { SetTargetBucket(value); return *this;}
349 
387  inline CopySnapshotRequest& WithTargetBucket(Aws::String&& value) { SetTargetBucket(value); return *this;}
388 
426  inline CopySnapshotRequest& WithTargetBucket(const char* value) { SetTargetBucket(value); return *this;}
427 
428  private:
429  Aws::String m_sourceSnapshotName;
430  bool m_sourceSnapshotNameHasBeenSet;
431  Aws::String m_targetSnapshotName;
432  bool m_targetSnapshotNameHasBeenSet;
433  Aws::String m_targetBucket;
434  bool m_targetBucketHasBeenSet;
435  };
436 
437 } // namespace Model
438 } // namespace ElastiCache
439 } // namespace Aws
const Aws::String & GetSourceSnapshotName() const
const Aws::String & GetTargetSnapshotName() const
void SetSourceSnapshotName(const Aws::String &value)
void SetTargetBucket(const Aws::String &value)
CopySnapshotRequest & WithTargetBucket(const char *value)
CopySnapshotRequest & WithSourceSnapshotName(const char *value)
CopySnapshotRequest & WithTargetSnapshotName(const Aws::String &value)
CopySnapshotRequest & WithTargetBucket(Aws::String &&value)
CopySnapshotRequest & WithSourceSnapshotName(const Aws::String &value)
void SetTargetSnapshotName(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CopySnapshotRequest & WithTargetSnapshotName(Aws::String &&value)
CopySnapshotRequest & WithTargetBucket(const Aws::String &value)
#define AWS_ELASTICACHE_API
CopySnapshotRequest & WithTargetSnapshotName(const char *value)
CopySnapshotRequest & WithSourceSnapshotName(Aws::String &&value)
JSON (JavaScript Object Notation).