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
16 #include <aws/ec2/EC2_EXPORTS.h>
17 #include <aws/ec2/EC2Request.h>
19 
20 namespace Aws
21 {
22 namespace EC2
23 {
24 namespace Model
25 {
26 
31  {
32  public:
34  Aws::String SerializePayload() const override;
35 
42  inline bool GetDryRun() const{ return m_dryRun; }
43 
50  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
51 
58  inline CopySnapshotRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
59 
63  inline const Aws::String& GetSourceRegion() const{ return m_sourceRegion; }
64 
68  inline void SetSourceRegion(const Aws::String& value) { m_sourceRegionHasBeenSet = true; m_sourceRegion = value; }
69 
73  inline void SetSourceRegion(Aws::String&& value) { m_sourceRegionHasBeenSet = true; m_sourceRegion = value; }
74 
78  inline void SetSourceRegion(const char* value) { m_sourceRegionHasBeenSet = true; m_sourceRegion.assign(value); }
79 
83  inline CopySnapshotRequest& WithSourceRegion(const Aws::String& value) { SetSourceRegion(value); return *this;}
84 
88  inline CopySnapshotRequest& WithSourceRegion(Aws::String&& value) { SetSourceRegion(value); return *this;}
89 
93  inline CopySnapshotRequest& WithSourceRegion(const char* value) { SetSourceRegion(value); return *this;}
94 
98  inline const Aws::String& GetSourceSnapshotId() const{ return m_sourceSnapshotId; }
99 
103  inline void SetSourceSnapshotId(const Aws::String& value) { m_sourceSnapshotIdHasBeenSet = true; m_sourceSnapshotId = value; }
104 
108  inline void SetSourceSnapshotId(Aws::String&& value) { m_sourceSnapshotIdHasBeenSet = true; m_sourceSnapshotId = value; }
109 
113  inline void SetSourceSnapshotId(const char* value) { m_sourceSnapshotIdHasBeenSet = true; m_sourceSnapshotId.assign(value); }
114 
118  inline CopySnapshotRequest& WithSourceSnapshotId(const Aws::String& value) { SetSourceSnapshotId(value); return *this;}
119 
123  inline CopySnapshotRequest& WithSourceSnapshotId(Aws::String&& value) { SetSourceSnapshotId(value); return *this;}
124 
128  inline CopySnapshotRequest& WithSourceSnapshotId(const char* value) { SetSourceSnapshotId(value); return *this;}
129 
133  inline const Aws::String& GetDescription() const{ return m_description; }
134 
138  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
139 
143  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = value; }
144 
148  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
149 
153  inline CopySnapshotRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
154 
158  inline CopySnapshotRequest& WithDescription(Aws::String&& value) { SetDescription(value); return *this;}
159 
163  inline CopySnapshotRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
164 
175  inline const Aws::String& GetDestinationRegion() const{ return m_destinationRegion; }
176 
187  inline void SetDestinationRegion(const Aws::String& value) { m_destinationRegionHasBeenSet = true; m_destinationRegion = value; }
188 
199  inline void SetDestinationRegion(Aws::String&& value) { m_destinationRegionHasBeenSet = true; m_destinationRegion = value; }
200 
211  inline void SetDestinationRegion(const char* value) { m_destinationRegionHasBeenSet = true; m_destinationRegion.assign(value); }
212 
223  inline CopySnapshotRequest& WithDestinationRegion(const Aws::String& value) { SetDestinationRegion(value); return *this;}
224 
235  inline CopySnapshotRequest& WithDestinationRegion(Aws::String&& value) { SetDestinationRegion(value); return *this;}
236 
247  inline CopySnapshotRequest& WithDestinationRegion(const char* value) { SetDestinationRegion(value); return *this;}
248 
265  inline const Aws::String& GetPresignedUrl() const{ return m_presignedUrl; }
266 
283  inline void SetPresignedUrl(const Aws::String& value) { m_presignedUrlHasBeenSet = true; m_presignedUrl = value; }
284 
301  inline void SetPresignedUrl(Aws::String&& value) { m_presignedUrlHasBeenSet = true; m_presignedUrl = value; }
302 
319  inline void SetPresignedUrl(const char* value) { m_presignedUrlHasBeenSet = true; m_presignedUrl.assign(value); }
320 
337  inline CopySnapshotRequest& WithPresignedUrl(const Aws::String& value) { SetPresignedUrl(value); return *this;}
338 
355  inline CopySnapshotRequest& WithPresignedUrl(Aws::String&& value) { SetPresignedUrl(value); return *this;}
356 
373  inline CopySnapshotRequest& WithPresignedUrl(const char* value) { SetPresignedUrl(value); return *this;}
374 
384  inline bool GetEncrypted() const{ return m_encrypted; }
385 
395  inline void SetEncrypted(bool value) { m_encryptedHasBeenSet = true; m_encrypted = value; }
396 
406  inline CopySnapshotRequest& WithEncrypted(bool value) { SetEncrypted(value); return *this;}
407 
420  inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
421 
434  inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
435 
448  inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
449 
462  inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
463 
476  inline CopySnapshotRequest& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
477 
490  inline CopySnapshotRequest& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(value); return *this;}
491 
504  inline CopySnapshotRequest& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
505 
506  private:
507  bool m_dryRun;
508  bool m_dryRunHasBeenSet;
509  Aws::String m_sourceRegion;
510  bool m_sourceRegionHasBeenSet;
511  Aws::String m_sourceSnapshotId;
512  bool m_sourceSnapshotIdHasBeenSet;
513  Aws::String m_description;
514  bool m_descriptionHasBeenSet;
515  Aws::String m_destinationRegion;
516  bool m_destinationRegionHasBeenSet;
517  Aws::String m_presignedUrl;
518  bool m_presignedUrlHasBeenSet;
519  bool m_encrypted;
520  bool m_encryptedHasBeenSet;
521  Aws::String m_kmsKeyId;
522  bool m_kmsKeyIdHasBeenSet;
523  };
524 
525 } // namespace Model
526 } // namespace EC2
527 } // namespace Aws
void SetDestinationRegion(Aws::String &&value)
CopySnapshotRequest & WithSourceRegion(const Aws::String &value)
void SetSourceRegion(const Aws::String &value)
void SetDescription(Aws::String &&value)
CopySnapshotRequest & WithSourceSnapshotId(const Aws::String &value)
CopySnapshotRequest & WithEncrypted(bool value)
CopySnapshotRequest & WithPresignedUrl(const Aws::String &value)
void SetKmsKeyId(const Aws::String &value)
CopySnapshotRequest & WithDescription(const Aws::String &value)
void SetSourceSnapshotId(const Aws::String &value)
void SetDestinationRegion(const Aws::String &value)
CopySnapshotRequest & WithDescription(Aws::String &&value)
CopySnapshotRequest & WithDryRun(bool value)
void SetDestinationRegion(const char *value)
CopySnapshotRequest & WithSourceRegion(Aws::String &&value)
CopySnapshotRequest & WithSourceRegion(const char *value)
CopySnapshotRequest & WithDestinationRegion(const char *value)
CopySnapshotRequest & WithKmsKeyId(const char *value)
const Aws::String & GetSourceSnapshotId() const
const Aws::String & GetPresignedUrl() const
CopySnapshotRequest & WithSourceSnapshotId(const char *value)
CopySnapshotRequest & WithKmsKeyId(const Aws::String &value)
CopySnapshotRequest & WithSourceSnapshotId(Aws::String &&value)
void SetPresignedUrl(Aws::String &&value)
const Aws::String & GetSourceRegion() const
void SetSourceRegion(Aws::String &&value)
CopySnapshotRequest & WithPresignedUrl(Aws::String &&value)
CopySnapshotRequest & WithKmsKeyId(Aws::String &&value)
void SetPresignedUrl(const Aws::String &value)
CopySnapshotRequest & WithPresignedUrl(const char *value)
const Aws::String & GetKmsKeyId() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const Aws::String & GetDestinationRegion() const
void SetSourceSnapshotId(const char *value)
CopySnapshotRequest & WithDescription(const char *value)
void SetSourceSnapshotId(Aws::String &&value)
const Aws::String & GetDescription() const
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:37
void SetDescription(const Aws::String &value)
CopySnapshotRequest & WithDestinationRegion(Aws::String &&value)
CopySnapshotRequest & WithDestinationRegion(const Aws::String &value)
JSON (JavaScript Object Notation).