AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ImportVolumeRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10#include <aws/ec2/model/DiskImageDetail.h>
11#include <aws/ec2/model/VolumeDetail.h>
12
13#include <utility>
14
15namespace Aws {
16namespace EC2 {
17namespace Model {
18
22 public:
23 AWS_EC2_API ImportVolumeRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "ImportVolume"; }
30
31 AWS_EC2_API Aws::String SerializePayload() const override;
32
33 protected:
34 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
35
36 public:
38
43 inline const Aws::String& GetAvailabilityZoneId() const { return m_availabilityZoneId; }
44 inline bool AvailabilityZoneIdHasBeenSet() const { return m_availabilityZoneIdHasBeenSet; }
45 template <typename AvailabilityZoneIdT = Aws::String>
46 void SetAvailabilityZoneId(AvailabilityZoneIdT&& value) {
47 m_availabilityZoneIdHasBeenSet = true;
48 m_availabilityZoneId = std::forward<AvailabilityZoneIdT>(value);
49 }
50 template <typename AvailabilityZoneIdT = Aws::String>
51 ImportVolumeRequest& WithAvailabilityZoneId(AvailabilityZoneIdT&& value) {
52 SetAvailabilityZoneId(std::forward<AvailabilityZoneIdT>(value));
53 return *this;
54 }
56
58
64 inline bool GetDryRun() const { return m_dryRun; }
65 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
66 inline void SetDryRun(bool value) {
67 m_dryRunHasBeenSet = true;
68 m_dryRun = value;
69 }
70 inline ImportVolumeRequest& WithDryRun(bool value) {
71 SetDryRun(value);
72 return *this;
73 }
75
77
82 inline const Aws::String& GetAvailabilityZone() const { return m_availabilityZone; }
83 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
84 template <typename AvailabilityZoneT = Aws::String>
85 void SetAvailabilityZone(AvailabilityZoneT&& value) {
86 m_availabilityZoneHasBeenSet = true;
87 m_availabilityZone = std::forward<AvailabilityZoneT>(value);
88 }
89 template <typename AvailabilityZoneT = Aws::String>
90 ImportVolumeRequest& WithAvailabilityZone(AvailabilityZoneT&& value) {
91 SetAvailabilityZone(std::forward<AvailabilityZoneT>(value));
92 return *this;
93 }
95
97
100 inline const DiskImageDetail& GetImage() const { return m_image; }
101 inline bool ImageHasBeenSet() const { return m_imageHasBeenSet; }
102 template <typename ImageT = DiskImageDetail>
103 void SetImage(ImageT&& value) {
104 m_imageHasBeenSet = true;
105 m_image = std::forward<ImageT>(value);
106 }
107 template <typename ImageT = DiskImageDetail>
109 SetImage(std::forward<ImageT>(value));
110 return *this;
111 }
113
115
118 inline const Aws::String& GetDescription() const { return m_description; }
119 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
120 template <typename DescriptionT = Aws::String>
121 void SetDescription(DescriptionT&& value) {
122 m_descriptionHasBeenSet = true;
123 m_description = std::forward<DescriptionT>(value);
124 }
125 template <typename DescriptionT = Aws::String>
126 ImportVolumeRequest& WithDescription(DescriptionT&& value) {
127 SetDescription(std::forward<DescriptionT>(value));
128 return *this;
129 }
131
133
136 inline const VolumeDetail& GetVolume() const { return m_volume; }
137 inline bool VolumeHasBeenSet() const { return m_volumeHasBeenSet; }
138 template <typename VolumeT = VolumeDetail>
139 void SetVolume(VolumeT&& value) {
140 m_volumeHasBeenSet = true;
141 m_volume = std::forward<VolumeT>(value);
142 }
143 template <typename VolumeT = VolumeDetail>
144 ImportVolumeRequest& WithVolume(VolumeT&& value) {
145 SetVolume(std::forward<VolumeT>(value));
146 return *this;
147 }
149 private:
150 Aws::String m_availabilityZoneId;
151
152 bool m_dryRun{false};
153
154 Aws::String m_availabilityZone;
155
156 DiskImageDetail m_image;
157
158 Aws::String m_description;
159
160 VolumeDetail m_volume;
161 bool m_availabilityZoneIdHasBeenSet = false;
162 bool m_dryRunHasBeenSet = false;
163 bool m_availabilityZoneHasBeenSet = false;
164 bool m_imageHasBeenSet = false;
165 bool m_descriptionHasBeenSet = false;
166 bool m_volumeHasBeenSet = false;
167};
168
169} // namespace Model
170} // namespace EC2
171} // namespace Aws
void SetAvailabilityZoneId(AvailabilityZoneIdT &&value)
void SetAvailabilityZone(AvailabilityZoneT &&value)
ImportVolumeRequest & WithAvailabilityZone(AvailabilityZoneT &&value)
AWS_EC2_API ImportVolumeRequest()=default
ImportVolumeRequest & WithImage(ImageT &&value)
const Aws::String & GetAvailabilityZone() const
ImportVolumeRequest & WithAvailabilityZoneId(AvailabilityZoneIdT &&value)
ImportVolumeRequest & WithDescription(DescriptionT &&value)
ImportVolumeRequest & WithDryRun(bool value)
ImportVolumeRequest & WithVolume(VolumeT &&value)
const VolumeDetail & GetVolume() const
const Aws::String & GetAvailabilityZoneId() const
AWS_EC2_API Aws::String SerializePayload() const override
void SetDescription(DescriptionT &&value)
virtual const char * GetServiceRequestName() const override
const DiskImageDetail & GetImage() const
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
const Aws::String & GetDescription() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String