AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ImportInstanceRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ec2/EC2Request.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11#include <aws/ec2/model/DiskImage.h>
12#include <aws/ec2/model/ImportInstanceLaunchSpecification.h>
13#include <aws/ec2/model/PlatformValues.h>
14
15#include <utility>
16
17namespace Aws {
18namespace EC2 {
19namespace Model {
20
24 public:
25 AWS_EC2_API ImportInstanceRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "ImportInstance"; }
32
33 AWS_EC2_API Aws::String SerializePayload() const override;
34
35 protected:
36 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
37
38 public:
40
46 inline bool GetDryRun() const { return m_dryRun; }
47 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
48 inline void SetDryRun(bool value) {
49 m_dryRunHasBeenSet = true;
50 m_dryRun = value;
51 }
52 inline ImportInstanceRequest& WithDryRun(bool value) {
53 SetDryRun(value);
54 return *this;
55 }
57
59
62 inline const Aws::String& GetDescription() const { return m_description; }
63 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
64 template <typename DescriptionT = Aws::String>
65 void SetDescription(DescriptionT&& value) {
66 m_descriptionHasBeenSet = true;
67 m_description = std::forward<DescriptionT>(value);
68 }
69 template <typename DescriptionT = Aws::String>
70 ImportInstanceRequest& WithDescription(DescriptionT&& value) {
71 SetDescription(std::forward<DescriptionT>(value));
72 return *this;
73 }
75
77
80 inline const ImportInstanceLaunchSpecification& GetLaunchSpecification() const { return m_launchSpecification; }
81 inline bool LaunchSpecificationHasBeenSet() const { return m_launchSpecificationHasBeenSet; }
82 template <typename LaunchSpecificationT = ImportInstanceLaunchSpecification>
83 void SetLaunchSpecification(LaunchSpecificationT&& value) {
84 m_launchSpecificationHasBeenSet = true;
85 m_launchSpecification = std::forward<LaunchSpecificationT>(value);
86 }
87 template <typename LaunchSpecificationT = ImportInstanceLaunchSpecification>
88 ImportInstanceRequest& WithLaunchSpecification(LaunchSpecificationT&& value) {
89 SetLaunchSpecification(std::forward<LaunchSpecificationT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::Vector<DiskImage>& GetDiskImages() const { return m_diskImages; }
99 inline bool DiskImagesHasBeenSet() const { return m_diskImagesHasBeenSet; }
100 template <typename DiskImagesT = Aws::Vector<DiskImage>>
101 void SetDiskImages(DiskImagesT&& value) {
102 m_diskImagesHasBeenSet = true;
103 m_diskImages = std::forward<DiskImagesT>(value);
104 }
105 template <typename DiskImagesT = Aws::Vector<DiskImage>>
106 ImportInstanceRequest& WithDiskImages(DiskImagesT&& value) {
107 SetDiskImages(std::forward<DiskImagesT>(value));
108 return *this;
109 }
110 template <typename DiskImagesT = DiskImage>
111 ImportInstanceRequest& AddDiskImages(DiskImagesT&& value) {
112 m_diskImagesHasBeenSet = true;
113 m_diskImages.emplace_back(std::forward<DiskImagesT>(value));
114 return *this;
115 }
117
119
122 inline PlatformValues GetPlatform() const { return m_platform; }
123 inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
124 inline void SetPlatform(PlatformValues value) {
125 m_platformHasBeenSet = true;
126 m_platform = value;
127 }
129 SetPlatform(value);
130 return *this;
131 }
133 private:
134 bool m_dryRun{false};
135
136 Aws::String m_description;
137
138 ImportInstanceLaunchSpecification m_launchSpecification;
139
140 Aws::Vector<DiskImage> m_diskImages;
141
143 bool m_dryRunHasBeenSet = false;
144 bool m_descriptionHasBeenSet = false;
145 bool m_launchSpecificationHasBeenSet = false;
146 bool m_diskImagesHasBeenSet = false;
147 bool m_platformHasBeenSet = false;
148};
149
150} // namespace Model
151} // namespace EC2
152} // namespace Aws
AWS_EC2_API ImportInstanceRequest()=default
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
ImportInstanceRequest & WithDryRun(bool value)
ImportInstanceRequest & WithDiskImages(DiskImagesT &&value)
const Aws::Vector< DiskImage > & GetDiskImages() const
void SetLaunchSpecification(LaunchSpecificationT &&value)
ImportInstanceRequest & WithDescription(DescriptionT &&value)
AWS_EC2_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
ImportInstanceRequest & WithPlatform(PlatformValues value)
const ImportInstanceLaunchSpecification & GetLaunchSpecification() const
ImportInstanceRequest & AddDiskImages(DiskImagesT &&value)
ImportInstanceRequest & WithLaunchSpecification(LaunchSpecificationT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector