AWS SDK for C++  1.9.125
AWS SDK for C++
ImportVolumeRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
8 #include <aws/ec2/EC2Request.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace EC2
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "ImportVolume"; }
33 
34  Aws::String SerializePayload() const override;
35 
36  protected:
37  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38 
39  public:
40 
44  inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; }
45 
49  inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
50 
54  inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; }
55 
59  inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); }
60 
64  inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); }
65 
69  inline ImportVolumeRequest& WithAvailabilityZone(const Aws::String& value) { SetAvailabilityZone(value); return *this;}
70 
74  inline ImportVolumeRequest& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;}
75 
79  inline ImportVolumeRequest& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;}
80 
81 
85  inline const Aws::String& GetDescription() const{ return m_description; }
86 
90  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
91 
95  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
96 
100  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
101 
105  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
106 
110  inline ImportVolumeRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
111 
115  inline ImportVolumeRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
116 
120  inline ImportVolumeRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
121 
122 
129  inline bool GetDryRun() const{ return m_dryRun; }
130 
137  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
138 
145  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
146 
153  inline ImportVolumeRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
154 
155 
159  inline const DiskImageDetail& GetImage() const{ return m_image; }
160 
164  inline bool ImageHasBeenSet() const { return m_imageHasBeenSet; }
165 
169  inline void SetImage(const DiskImageDetail& value) { m_imageHasBeenSet = true; m_image = value; }
170 
174  inline void SetImage(DiskImageDetail&& value) { m_imageHasBeenSet = true; m_image = std::move(value); }
175 
179  inline ImportVolumeRequest& WithImage(const DiskImageDetail& value) { SetImage(value); return *this;}
180 
184  inline ImportVolumeRequest& WithImage(DiskImageDetail&& value) { SetImage(std::move(value)); return *this;}
185 
186 
190  inline const VolumeDetail& GetVolume() const{ return m_volume; }
191 
195  inline bool VolumeHasBeenSet() const { return m_volumeHasBeenSet; }
196 
200  inline void SetVolume(const VolumeDetail& value) { m_volumeHasBeenSet = true; m_volume = value; }
201 
205  inline void SetVolume(VolumeDetail&& value) { m_volumeHasBeenSet = true; m_volume = std::move(value); }
206 
210  inline ImportVolumeRequest& WithVolume(const VolumeDetail& value) { SetVolume(value); return *this;}
211 
215  inline ImportVolumeRequest& WithVolume(VolumeDetail&& value) { SetVolume(std::move(value)); return *this;}
216 
217  private:
218 
219  Aws::String m_availabilityZone;
220  bool m_availabilityZoneHasBeenSet;
221 
222  Aws::String m_description;
223  bool m_descriptionHasBeenSet;
224 
225  bool m_dryRun;
226  bool m_dryRunHasBeenSet;
227 
228  DiskImageDetail m_image;
229  bool m_imageHasBeenSet;
230 
231  VolumeDetail m_volume;
232  bool m_volumeHasBeenSet;
233  };
234 
235 } // namespace Model
236 } // namespace EC2
237 } // namespace Aws
Aws::EC2::Model::ImportVolumeRequest::WithDryRun
ImportVolumeRequest & WithDryRun(bool value)
Definition: ImportVolumeRequest.h:153
Aws::EC2::Model::ImportVolumeRequest::WithDescription
ImportVolumeRequest & WithDescription(const char *value)
Definition: ImportVolumeRequest.h:120
Aws::EC2::Model::ImportVolumeRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ImportVolumeRequest.h:32
Aws::EC2::Model::ImportVolumeRequest::ImportVolumeRequest
ImportVolumeRequest()
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::ImportVolumeRequest::GetVolume
const VolumeDetail & GetVolume() const
Definition: ImportVolumeRequest.h:190
Aws::EC2::Model::ImportVolumeRequest::WithVolume
ImportVolumeRequest & WithVolume(VolumeDetail &&value)
Definition: ImportVolumeRequest.h:215
Aws::EC2::Model::ImportVolumeRequest::GetImage
const DiskImageDetail & GetImage() const
Definition: ImportVolumeRequest.h:159
Aws::EC2::Model::ImportVolumeRequest::GetDescription
const Aws::String & GetDescription() const
Definition: ImportVolumeRequest.h:85
Aws::EC2::Model::ImportVolumeRequest::GetAvailabilityZone
const Aws::String & GetAvailabilityZone() const
Definition: ImportVolumeRequest.h:44
Aws::EC2::Model::ImportVolumeRequest::SetAvailabilityZone
void SetAvailabilityZone(const char *value)
Definition: ImportVolumeRequest.h:64
Aws::EC2::Model::ImportVolumeRequest::WithImage
ImportVolumeRequest & WithImage(const DiskImageDetail &value)
Definition: ImportVolumeRequest.h:179
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::VolumeDetail
Definition: VolumeDetail.h:30
Aws::EC2::Model::ImportVolumeRequest::WithDescription
ImportVolumeRequest & WithDescription(const Aws::String &value)
Definition: ImportVolumeRequest.h:110
Aws::EC2::Model::ImportVolumeRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: ImportVolumeRequest.h:95
Aws::EC2::Model::ImportVolumeRequest::SetAvailabilityZone
void SetAvailabilityZone(const Aws::String &value)
Definition: ImportVolumeRequest.h:54
Aws::EC2::Model::ImportVolumeRequest
Definition: ImportVolumeRequest.h:24
Aws::EC2::Model::ImportVolumeRequest::SetVolume
void SetVolume(VolumeDetail &&value)
Definition: ImportVolumeRequest.h:205
Aws::EC2::Model::ImportVolumeRequest::WithVolume
ImportVolumeRequest & WithVolume(const VolumeDetail &value)
Definition: ImportVolumeRequest.h:210
Aws::EC2::Model::ImportVolumeRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: ImportVolumeRequest.h:137
Aws::EC2::Model::ImportVolumeRequest::AvailabilityZoneHasBeenSet
bool AvailabilityZoneHasBeenSet() const
Definition: ImportVolumeRequest.h:49
Aws::EC2::Model::ImportVolumeRequest::VolumeHasBeenSet
bool VolumeHasBeenSet() const
Definition: ImportVolumeRequest.h:195
Aws::EC2::Model::ImportVolumeRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: ImportVolumeRequest.h:90
Aws::EC2::Model::ImportVolumeRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: ImportVolumeRequest.h:100
Aws::EC2::Model::ImportVolumeRequest::SetDryRun
void SetDryRun(bool value)
Definition: ImportVolumeRequest.h:145
Aws::EC2::Model::ImportVolumeRequest::ImageHasBeenSet
bool ImageHasBeenSet() const
Definition: ImportVolumeRequest.h:164
Aws::EC2::Model::ImportVolumeRequest::WithAvailabilityZone
ImportVolumeRequest & WithAvailabilityZone(const char *value)
Definition: ImportVolumeRequest.h:79
Aws::EC2::Model::DiskImageDetail
Definition: DiskImageDetail.h:33
EC2Request.h
Aws::EC2::Model::ImportVolumeRequest::SetImage
void SetImage(DiskImageDetail &&value)
Definition: ImportVolumeRequest.h:174
Aws::EC2::Model::ImportVolumeRequest::SetVolume
void SetVolume(const VolumeDetail &value)
Definition: ImportVolumeRequest.h:200
Aws::EC2::Model::ImportVolumeRequest::SetImage
void SetImage(const DiskImageDetail &value)
Definition: ImportVolumeRequest.h:169
AWSString.h
VolumeDetail.h
Aws::EC2::Model::ImportVolumeRequest::WithAvailabilityZone
ImportVolumeRequest & WithAvailabilityZone(Aws::String &&value)
Definition: ImportVolumeRequest.h:74
DiskImageDetail.h
Aws::EC2::Model::ImportVolumeRequest::GetDryRun
bool GetDryRun() const
Definition: ImportVolumeRequest.h:129
Aws::EC2::Model::ImportVolumeRequest::WithAvailabilityZone
ImportVolumeRequest & WithAvailabilityZone(const Aws::String &value)
Definition: ImportVolumeRequest.h:69
Aws::EC2::Model::ImportVolumeRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::ImportVolumeRequest::SetAvailabilityZone
void SetAvailabilityZone(Aws::String &&value)
Definition: ImportVolumeRequest.h:59
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::ImportVolumeRequest::SetDescription
void SetDescription(const char *value)
Definition: ImportVolumeRequest.h:105
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::ImportVolumeRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::ImportVolumeRequest::WithImage
ImportVolumeRequest & WithImage(DiskImageDetail &&value)
Definition: ImportVolumeRequest.h:184
Aws::EC2::Model::ImportVolumeRequest::WithDescription
ImportVolumeRequest & WithDescription(Aws::String &&value)
Definition: ImportVolumeRequest.h:115
EC2_EXPORTS.h