AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename DescriptionT = Aws::String>
63 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
64 template<typename DescriptionT = Aws::String>
65 ImportInstanceRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
67
69
72 inline const ImportInstanceLaunchSpecification& GetLaunchSpecification() const { return m_launchSpecification; }
73 inline bool LaunchSpecificationHasBeenSet() const { return m_launchSpecificationHasBeenSet; }
74 template<typename LaunchSpecificationT = ImportInstanceLaunchSpecification>
75 void SetLaunchSpecification(LaunchSpecificationT&& value) { m_launchSpecificationHasBeenSet = true; m_launchSpecification = std::forward<LaunchSpecificationT>(value); }
76 template<typename LaunchSpecificationT = ImportInstanceLaunchSpecification>
77 ImportInstanceRequest& WithLaunchSpecification(LaunchSpecificationT&& value) { SetLaunchSpecification(std::forward<LaunchSpecificationT>(value)); return *this;}
79
81
84 inline const Aws::Vector<DiskImage>& GetDiskImages() const { return m_diskImages; }
85 inline bool DiskImagesHasBeenSet() const { return m_diskImagesHasBeenSet; }
86 template<typename DiskImagesT = Aws::Vector<DiskImage>>
87 void SetDiskImages(DiskImagesT&& value) { m_diskImagesHasBeenSet = true; m_diskImages = std::forward<DiskImagesT>(value); }
88 template<typename DiskImagesT = Aws::Vector<DiskImage>>
89 ImportInstanceRequest& WithDiskImages(DiskImagesT&& value) { SetDiskImages(std::forward<DiskImagesT>(value)); return *this;}
90 template<typename DiskImagesT = DiskImage>
91 ImportInstanceRequest& AddDiskImages(DiskImagesT&& value) { m_diskImagesHasBeenSet = true; m_diskImages.emplace_back(std::forward<DiskImagesT>(value)); return *this; }
93
95
98 inline PlatformValues GetPlatform() const { return m_platform; }
99 inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
100 inline void SetPlatform(PlatformValues value) { m_platformHasBeenSet = true; m_platform = value; }
101 inline ImportInstanceRequest& WithPlatform(PlatformValues value) { SetPlatform(value); return *this;}
103 private:
104
105 bool m_dryRun{false};
106 bool m_dryRunHasBeenSet = false;
107
108 Aws::String m_description;
109 bool m_descriptionHasBeenSet = false;
110
111 ImportInstanceLaunchSpecification m_launchSpecification;
112 bool m_launchSpecificationHasBeenSet = false;
113
114 Aws::Vector<DiskImage> m_diskImages;
115 bool m_diskImagesHasBeenSet = false;
116
118 bool m_platformHasBeenSet = false;
119 };
120
121} // namespace Model
122} // namespace EC2
123} // 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