AWS SDK for C++  0.14.3
AWS SDK for C++
CopyImageRequest.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 CopyImageRequest& 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 CopyImageRequest& WithSourceRegion(const Aws::String& value) { SetSourceRegion(value); return *this;}
84 
88  inline CopyImageRequest& WithSourceRegion(Aws::String&& value) { SetSourceRegion(value); return *this;}
89 
93  inline CopyImageRequest& WithSourceRegion(const char* value) { SetSourceRegion(value); return *this;}
94 
98  inline const Aws::String& GetSourceImageId() const{ return m_sourceImageId; }
99 
103  inline void SetSourceImageId(const Aws::String& value) { m_sourceImageIdHasBeenSet = true; m_sourceImageId = value; }
104 
108  inline void SetSourceImageId(Aws::String&& value) { m_sourceImageIdHasBeenSet = true; m_sourceImageId = value; }
109 
113  inline void SetSourceImageId(const char* value) { m_sourceImageIdHasBeenSet = true; m_sourceImageId.assign(value); }
114 
118  inline CopyImageRequest& WithSourceImageId(const Aws::String& value) { SetSourceImageId(value); return *this;}
119 
123  inline CopyImageRequest& WithSourceImageId(Aws::String&& value) { SetSourceImageId(value); return *this;}
124 
128  inline CopyImageRequest& WithSourceImageId(const char* value) { SetSourceImageId(value); return *this;}
129 
133  inline const Aws::String& GetName() const{ return m_name; }
134 
138  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
139 
143  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
144 
148  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
149 
153  inline CopyImageRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
154 
158  inline CopyImageRequest& WithName(Aws::String&& value) { SetName(value); return *this;}
159 
163  inline CopyImageRequest& WithName(const char* value) { SetName(value); return *this;}
164 
168  inline const Aws::String& GetDescription() const{ return m_description; }
169 
173  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
174 
178  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = value; }
179 
183  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
184 
188  inline CopyImageRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
189 
193  inline CopyImageRequest& WithDescription(Aws::String&& value) { SetDescription(value); return *this;}
194 
198  inline CopyImageRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
199 
207  inline const Aws::String& GetClientToken() const{ return m_clientToken; }
208 
216  inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
217 
225  inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
226 
234  inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
235 
243  inline CopyImageRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
244 
252  inline CopyImageRequest& WithClientToken(Aws::String&& value) { SetClientToken(value); return *this;}
253 
261  inline CopyImageRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
262 
271  inline bool GetEncrypted() const{ return m_encrypted; }
272 
281  inline void SetEncrypted(bool value) { m_encryptedHasBeenSet = true; m_encrypted = value; }
282 
291  inline CopyImageRequest& WithEncrypted(bool value) { SetEncrypted(value); return *this;}
292 
306  inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
307 
321  inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
322 
336  inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
337 
351  inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
352 
366  inline CopyImageRequest& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
367 
381  inline CopyImageRequest& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(value); return *this;}
382 
396  inline CopyImageRequest& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
397 
398  private:
399  bool m_dryRun;
400  bool m_dryRunHasBeenSet;
401  Aws::String m_sourceRegion;
402  bool m_sourceRegionHasBeenSet;
403  Aws::String m_sourceImageId;
404  bool m_sourceImageIdHasBeenSet;
405  Aws::String m_name;
406  bool m_nameHasBeenSet;
407  Aws::String m_description;
408  bool m_descriptionHasBeenSet;
409  Aws::String m_clientToken;
410  bool m_clientTokenHasBeenSet;
411  bool m_encrypted;
412  bool m_encryptedHasBeenSet;
413  Aws::String m_kmsKeyId;
414  bool m_kmsKeyIdHasBeenSet;
415  };
416 
417 } // namespace Model
418 } // namespace EC2
419 } // namespace Aws
CopyImageRequest & WithKmsKeyId(const char *value)
void SetClientToken(Aws::String &&value)
CopyImageRequest & WithDescription(const char *value)
void SetClientToken(const char *value)
CopyImageRequest & WithDryRun(bool value)
CopyImageRequest & WithSourceRegion(const Aws::String &value)
const Aws::String & GetSourceImageId() const
CopyImageRequest & WithName(const char *value)
CopyImageRequest & WithDescription(Aws::String &&value)
void SetDescription(Aws::String &&value)
const Aws::String & GetKmsKeyId() const
void SetClientToken(const Aws::String &value)
const Aws::String & GetSourceRegion() const
CopyImageRequest & WithKmsKeyId(const Aws::String &value)
CopyImageRequest & WithSourceRegion(Aws::String &&value)
void SetSourceRegion(Aws::String &&value)
CopyImageRequest & WithSourceImageId(Aws::String &&value)
CopyImageRequest & WithKmsKeyId(Aws::String &&value)
void SetName(const Aws::String &value)
void SetSourceRegion(const char *value)
void SetSourceImageId(Aws::String &&value)
CopyImageRequest & WithSourceImageId(const char *value)
void SetSourceImageId(const Aws::String &value)
void SetDescription(const Aws::String &value)
CopyImageRequest & WithDescription(const Aws::String &value)
void SetDescription(const char *value)
const Aws::String & GetName() const
void SetKmsKeyId(const char *value)
CopyImageRequest & WithSourceImageId(const Aws::String &value)
CopyImageRequest & WithClientToken(Aws::String &&value)
void SetKmsKeyId(const Aws::String &value)
CopyImageRequest & WithSourceRegion(const char *value)
void SetSourceRegion(const Aws::String &value)
CopyImageRequest & WithName(const Aws::String &value)
void SetKmsKeyId(Aws::String &&value)
const Aws::String & GetClientToken() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetName(Aws::String &&value)
void SetName(const char *value)
CopyImageRequest & WithEncrypted(bool value)
void SetSourceImageId(const char *value)
CopyImageRequest & WithClientToken(const char *value)
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:37
CopyImageRequest & WithName(Aws::String &&value)
const Aws::String & GetDescription() const
CopyImageRequest & WithClientToken(const Aws::String &value)
JSON (JavaScript Object Notation).