AWS SDK for C++  0.12.9
AWS SDK for C++
RegisterImageRequest.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>
22 
23 namespace Aws
24 {
25 namespace EC2
26 {
27 namespace Model
28 {
29 
34  {
35  public:
37  Aws::String SerializePayload() const override;
38 
45  inline bool GetDryRun() const{ return m_dryRun; }
46 
53  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
54 
61  inline RegisterImageRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
62 
66  inline const Aws::String& GetImageLocation() const{ return m_imageLocation; }
67 
71  inline void SetImageLocation(const Aws::String& value) { m_imageLocationHasBeenSet = true; m_imageLocation = value; }
72 
76  inline void SetImageLocation(Aws::String&& value) { m_imageLocationHasBeenSet = true; m_imageLocation = value; }
77 
81  inline void SetImageLocation(const char* value) { m_imageLocationHasBeenSet = true; m_imageLocation.assign(value); }
82 
86  inline RegisterImageRequest& WithImageLocation(const Aws::String& value) { SetImageLocation(value); return *this;}
87 
91  inline RegisterImageRequest& WithImageLocation(Aws::String&& value) { SetImageLocation(value); return *this;}
92 
96  inline RegisterImageRequest& WithImageLocation(const char* value) { SetImageLocation(value); return *this;}
97 
103  inline const Aws::String& GetName() const{ return m_name; }
104 
110  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
111 
117  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
118 
124  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
125 
131  inline RegisterImageRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
132 
138  inline RegisterImageRequest& WithName(Aws::String&& value) { SetName(value); return *this;}
139 
145  inline RegisterImageRequest& WithName(const char* value) { SetName(value); return *this;}
146 
150  inline const Aws::String& GetDescription() const{ return m_description; }
151 
155  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
156 
160  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = value; }
161 
165  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
166 
170  inline RegisterImageRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
171 
175  inline RegisterImageRequest& WithDescription(Aws::String&& value) { SetDescription(value); return *this;}
176 
180  inline RegisterImageRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
181 
187  inline const ArchitectureValues& GetArchitecture() const{ return m_architecture; }
188 
194  inline void SetArchitecture(const ArchitectureValues& value) { m_architectureHasBeenSet = true; m_architecture = value; }
195 
201  inline void SetArchitecture(ArchitectureValues&& value) { m_architectureHasBeenSet = true; m_architecture = value; }
202 
208  inline RegisterImageRequest& WithArchitecture(const ArchitectureValues& value) { SetArchitecture(value); return *this;}
209 
215  inline RegisterImageRequest& WithArchitecture(ArchitectureValues&& value) { SetArchitecture(value); return *this;}
216 
220  inline const Aws::String& GetKernelId() const{ return m_kernelId; }
221 
225  inline void SetKernelId(const Aws::String& value) { m_kernelIdHasBeenSet = true; m_kernelId = value; }
226 
230  inline void SetKernelId(Aws::String&& value) { m_kernelIdHasBeenSet = true; m_kernelId = value; }
231 
235  inline void SetKernelId(const char* value) { m_kernelIdHasBeenSet = true; m_kernelId.assign(value); }
236 
240  inline RegisterImageRequest& WithKernelId(const Aws::String& value) { SetKernelId(value); return *this;}
241 
245  inline RegisterImageRequest& WithKernelId(Aws::String&& value) { SetKernelId(value); return *this;}
246 
250  inline RegisterImageRequest& WithKernelId(const char* value) { SetKernelId(value); return *this;}
251 
255  inline const Aws::String& GetRamdiskId() const{ return m_ramdiskId; }
256 
260  inline void SetRamdiskId(const Aws::String& value) { m_ramdiskIdHasBeenSet = true; m_ramdiskId = value; }
261 
265  inline void SetRamdiskId(Aws::String&& value) { m_ramdiskIdHasBeenSet = true; m_ramdiskId = value; }
266 
270  inline void SetRamdiskId(const char* value) { m_ramdiskIdHasBeenSet = true; m_ramdiskId.assign(value); }
271 
275  inline RegisterImageRequest& WithRamdiskId(const Aws::String& value) { SetRamdiskId(value); return *this;}
276 
280  inline RegisterImageRequest& WithRamdiskId(Aws::String&& value) { SetRamdiskId(value); return *this;}
281 
285  inline RegisterImageRequest& WithRamdiskId(const char* value) { SetRamdiskId(value); return *this;}
286 
291  inline const Aws::String& GetRootDeviceName() const{ return m_rootDeviceName; }
292 
297  inline void SetRootDeviceName(const Aws::String& value) { m_rootDeviceNameHasBeenSet = true; m_rootDeviceName = value; }
298 
303  inline void SetRootDeviceName(Aws::String&& value) { m_rootDeviceNameHasBeenSet = true; m_rootDeviceName = value; }
304 
309  inline void SetRootDeviceName(const char* value) { m_rootDeviceNameHasBeenSet = true; m_rootDeviceName.assign(value); }
310 
315  inline RegisterImageRequest& WithRootDeviceName(const Aws::String& value) { SetRootDeviceName(value); return *this;}
316 
321  inline RegisterImageRequest& WithRootDeviceName(Aws::String&& value) { SetRootDeviceName(value); return *this;}
322 
327  inline RegisterImageRequest& WithRootDeviceName(const char* value) { SetRootDeviceName(value); return *this;}
328 
332  inline const Aws::Vector<BlockDeviceMapping>& GetBlockDeviceMappings() const{ return m_blockDeviceMappings; }
333 
337  inline void SetBlockDeviceMappings(const Aws::Vector<BlockDeviceMapping>& value) { m_blockDeviceMappingsHasBeenSet = true; m_blockDeviceMappings = value; }
338 
342  inline void SetBlockDeviceMappings(Aws::Vector<BlockDeviceMapping>&& value) { m_blockDeviceMappingsHasBeenSet = true; m_blockDeviceMappings = value; }
343 
347  inline RegisterImageRequest& WithBlockDeviceMappings(const Aws::Vector<BlockDeviceMapping>& value) { SetBlockDeviceMappings(value); return *this;}
348 
352  inline RegisterImageRequest& WithBlockDeviceMappings(Aws::Vector<BlockDeviceMapping>&& value) { SetBlockDeviceMappings(value); return *this;}
353 
357  inline RegisterImageRequest& AddBlockDeviceMappings(const BlockDeviceMapping& value) { m_blockDeviceMappingsHasBeenSet = true; m_blockDeviceMappings.push_back(value); return *this; }
358 
362  inline RegisterImageRequest& AddBlockDeviceMappings(BlockDeviceMapping&& value) { m_blockDeviceMappingsHasBeenSet = true; m_blockDeviceMappings.push_back(value); return *this; }
363 
367  inline const Aws::String& GetVirtualizationType() const{ return m_virtualizationType; }
368 
372  inline void SetVirtualizationType(const Aws::String& value) { m_virtualizationTypeHasBeenSet = true; m_virtualizationType = value; }
373 
377  inline void SetVirtualizationType(Aws::String&& value) { m_virtualizationTypeHasBeenSet = true; m_virtualizationType = value; }
378 
382  inline void SetVirtualizationType(const char* value) { m_virtualizationTypeHasBeenSet = true; m_virtualizationType.assign(value); }
383 
387  inline RegisterImageRequest& WithVirtualizationType(const Aws::String& value) { SetVirtualizationType(value); return *this;}
388 
392  inline RegisterImageRequest& WithVirtualizationType(Aws::String&& value) { SetVirtualizationType(value); return *this;}
393 
397  inline RegisterImageRequest& WithVirtualizationType(const char* value) { SetVirtualizationType(value); return *this;}
398 
406  inline const Aws::String& GetSriovNetSupport() const{ return m_sriovNetSupport; }
407 
415  inline void SetSriovNetSupport(const Aws::String& value) { m_sriovNetSupportHasBeenSet = true; m_sriovNetSupport = value; }
416 
424  inline void SetSriovNetSupport(Aws::String&& value) { m_sriovNetSupportHasBeenSet = true; m_sriovNetSupport = value; }
425 
433  inline void SetSriovNetSupport(const char* value) { m_sriovNetSupportHasBeenSet = true; m_sriovNetSupport.assign(value); }
434 
442  inline RegisterImageRequest& WithSriovNetSupport(const Aws::String& value) { SetSriovNetSupport(value); return *this;}
443 
451  inline RegisterImageRequest& WithSriovNetSupport(Aws::String&& value) { SetSriovNetSupport(value); return *this;}
452 
460  inline RegisterImageRequest& WithSriovNetSupport(const char* value) { SetSriovNetSupport(value); return *this;}
461 
462  private:
463  bool m_dryRun;
464  bool m_dryRunHasBeenSet;
465  Aws::String m_imageLocation;
466  bool m_imageLocationHasBeenSet;
467  Aws::String m_name;
468  bool m_nameHasBeenSet;
469  Aws::String m_description;
470  bool m_descriptionHasBeenSet;
471  ArchitectureValues m_architecture;
472  bool m_architectureHasBeenSet;
473  Aws::String m_kernelId;
474  bool m_kernelIdHasBeenSet;
475  Aws::String m_ramdiskId;
476  bool m_ramdiskIdHasBeenSet;
477  Aws::String m_rootDeviceName;
478  bool m_rootDeviceNameHasBeenSet;
479  Aws::Vector<BlockDeviceMapping> m_blockDeviceMappings;
480  bool m_blockDeviceMappingsHasBeenSet;
481  Aws::String m_virtualizationType;
482  bool m_virtualizationTypeHasBeenSet;
483  Aws::String m_sriovNetSupport;
484  bool m_sriovNetSupportHasBeenSet;
485  };
486 
487 } // namespace Model
488 } // namespace EC2
489 } // namespace Aws
RegisterImageRequest & WithDescription(const char *value)
void SetVirtualizationType(Aws::String &&value)
void SetKernelId(const Aws::String &value)
const Aws::String & GetVirtualizationType() const
const Aws::String & GetImageLocation() const
RegisterImageRequest & WithRamdiskId(Aws::String &&value)
RegisterImageRequest & WithRootDeviceName(const char *value)
void SetSriovNetSupport(Aws::String &&value)
RegisterImageRequest & WithVirtualizationType(Aws::String &&value)
void SetDescription(const Aws::String &value)
RegisterImageRequest & WithDescription(const Aws::String &value)
const Aws::String & GetRamdiskId() const
const Aws::Vector< BlockDeviceMapping > & GetBlockDeviceMappings() const
RegisterImageRequest & WithArchitecture(ArchitectureValues &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
const Aws::String & GetSriovNetSupport() const
RegisterImageRequest & WithName(const char *value)
RegisterImageRequest & WithImageLocation(const Aws::String &value)
RegisterImageRequest & WithRamdiskId(const Aws::String &value)
RegisterImageRequest & WithRootDeviceName(Aws::String &&value)
RegisterImageRequest & WithKernelId(Aws::String &&value)
void SetArchitecture(const ArchitectureValues &value)
RegisterImageRequest & WithKernelId(const char *value)
void SetRootDeviceName(Aws::String &&value)
void SetBlockDeviceMappings(const Aws::Vector< BlockDeviceMapping > &value)
RegisterImageRequest & WithDryRun(bool value)
RegisterImageRequest & WithRootDeviceName(const Aws::String &value)
const Aws::String & GetRootDeviceName() const
RegisterImageRequest & WithRamdiskId(const char *value)
void SetVirtualizationType(const Aws::String &value)
const Aws::String & GetDescription() const
RegisterImageRequest & WithVirtualizationType(const Aws::String &value)
void SetBlockDeviceMappings(Aws::Vector< BlockDeviceMapping > &&value)
void SetRamdiskId(const Aws::String &value)
RegisterImageRequest & WithVirtualizationType(const char *value)
void SetImageLocation(const Aws::String &value)
void SetRootDeviceName(const Aws::String &value)
RegisterImageRequest & WithDescription(Aws::String &&value)
void SetSriovNetSupport(const Aws::String &value)
RegisterImageRequest & WithSriovNetSupport(const char *value)
RegisterImageRequest & WithBlockDeviceMappings(Aws::Vector< BlockDeviceMapping > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const ArchitectureValues & GetArchitecture() const
void SetImageLocation(Aws::String &&value)
RegisterImageRequest & WithKernelId(const Aws::String &value)
RegisterImageRequest & WithName(Aws::String &&value)
void SetArchitecture(ArchitectureValues &&value)
RegisterImageRequest & WithImageLocation(Aws::String &&value)
RegisterImageRequest & WithArchitecture(const ArchitectureValues &value)
RegisterImageRequest & AddBlockDeviceMappings(BlockDeviceMapping &&value)
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:34
void SetName(const Aws::String &value)
RegisterImageRequest & WithBlockDeviceMappings(const Aws::Vector< BlockDeviceMapping > &value)
RegisterImageRequest & AddBlockDeviceMappings(const BlockDeviceMapping &value)
const Aws::String & GetKernelId() const
RegisterImageRequest & WithSriovNetSupport(Aws::String &&value)
RegisterImageRequest & WithSriovNetSupport(const Aws::String &value)
const Aws::String & GetName() const
JSON (JavaScript Object Notation).
RegisterImageRequest & WithName(const Aws::String &value)
RegisterImageRequest & WithImageLocation(const char *value)