AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ImportInstanceRequest.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ec2/model/ImportInstanceLaunchSpecification.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/ec2/model/PlatformValues.h>
13#include <aws/ec2/model/DiskImage.h>
14#include <utility>
15
16namespace Aws
17{
18namespace EC2
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_EC2_API ImportInstanceRequest();
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "ImportInstance"; }
35
36 AWS_EC2_API Aws::String SerializePayload() const override;
37
38 protected:
39 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
40
41 public:
42
44
50 inline bool GetDryRun() const{ return m_dryRun; }
51 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
52 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
53 inline ImportInstanceRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
55
57
60 inline const Aws::String& GetDescription() const{ return m_description; }
61 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
62 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
63 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
64 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
65 inline ImportInstanceRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
66 inline ImportInstanceRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
67 inline ImportInstanceRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
69
71
74 inline const ImportInstanceLaunchSpecification& GetLaunchSpecification() const{ return m_launchSpecification; }
75 inline bool LaunchSpecificationHasBeenSet() const { return m_launchSpecificationHasBeenSet; }
76 inline void SetLaunchSpecification(const ImportInstanceLaunchSpecification& value) { m_launchSpecificationHasBeenSet = true; m_launchSpecification = value; }
77 inline void SetLaunchSpecification(ImportInstanceLaunchSpecification&& value) { m_launchSpecificationHasBeenSet = true; m_launchSpecification = std::move(value); }
81
83
86 inline const Aws::Vector<DiskImage>& GetDiskImages() const{ return m_diskImages; }
87 inline bool DiskImagesHasBeenSet() const { return m_diskImagesHasBeenSet; }
88 inline void SetDiskImages(const Aws::Vector<DiskImage>& value) { m_diskImagesHasBeenSet = true; m_diskImages = value; }
89 inline void SetDiskImages(Aws::Vector<DiskImage>&& value) { m_diskImagesHasBeenSet = true; m_diskImages = std::move(value); }
90 inline ImportInstanceRequest& WithDiskImages(const Aws::Vector<DiskImage>& value) { SetDiskImages(value); return *this;}
91 inline ImportInstanceRequest& WithDiskImages(Aws::Vector<DiskImage>&& value) { SetDiskImages(std::move(value)); return *this;}
92 inline ImportInstanceRequest& AddDiskImages(const DiskImage& value) { m_diskImagesHasBeenSet = true; m_diskImages.push_back(value); return *this; }
93 inline ImportInstanceRequest& AddDiskImages(DiskImage&& value) { m_diskImagesHasBeenSet = true; m_diskImages.push_back(std::move(value)); return *this; }
95
97
100 inline const PlatformValues& GetPlatform() const{ return m_platform; }
101 inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
102 inline void SetPlatform(const PlatformValues& value) { m_platformHasBeenSet = true; m_platform = value; }
103 inline void SetPlatform(PlatformValues&& value) { m_platformHasBeenSet = true; m_platform = std::move(value); }
104 inline ImportInstanceRequest& WithPlatform(const PlatformValues& value) { SetPlatform(value); return *this;}
105 inline ImportInstanceRequest& WithPlatform(PlatformValues&& value) { SetPlatform(std::move(value)); return *this;}
107 private:
108
109 bool m_dryRun;
110 bool m_dryRunHasBeenSet = false;
111
112 Aws::String m_description;
113 bool m_descriptionHasBeenSet = false;
114
115 ImportInstanceLaunchSpecification m_launchSpecification;
116 bool m_launchSpecificationHasBeenSet = false;
117
118 Aws::Vector<DiskImage> m_diskImages;
119 bool m_diskImagesHasBeenSet = false;
120
121 PlatformValues m_platform;
122 bool m_platformHasBeenSet = false;
123 };
124
125} // namespace Model
126} // namespace EC2
127} // namespace Aws
ImportInstanceRequest & WithPlatform(const PlatformValues &value)
ImportInstanceRequest & AddDiskImages(DiskImage &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
ImportInstanceRequest & WithDiskImages(const Aws::Vector< DiskImage > &value)
ImportInstanceRequest & WithDryRun(bool value)
ImportInstanceRequest & WithDiskImages(Aws::Vector< DiskImage > &&value)
const PlatformValues & GetPlatform() const
void SetDiskImages(Aws::Vector< DiskImage > &&value)
ImportInstanceRequest & WithLaunchSpecification(ImportInstanceLaunchSpecification &&value)
const Aws::Vector< DiskImage > & GetDiskImages() const
void SetLaunchSpecification(ImportInstanceLaunchSpecification &&value)
AWS_EC2_API Aws::String SerializePayload() const override
ImportInstanceRequest & AddDiskImages(const DiskImage &value)
virtual const char * GetServiceRequestName() const override
const ImportInstanceLaunchSpecification & GetLaunchSpecification() const
void SetPlatform(const PlatformValues &value)
void SetDiskImages(const Aws::Vector< DiskImage > &value)
void SetLaunchSpecification(const ImportInstanceLaunchSpecification &value)
ImportInstanceRequest & WithDescription(const char *value)
void SetDescription(const Aws::String &value)
ImportInstanceRequest & WithDescription(Aws::String &&value)
ImportInstanceRequest & WithLaunchSpecification(const ImportInstanceLaunchSpecification &value)
ImportInstanceRequest & WithDescription(const Aws::String &value)
ImportInstanceRequest & WithPlatform(PlatformValues &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector