AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ImportVolumeRequest.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/DiskImageDetail.h>
11#include <aws/ec2/model/VolumeDetail.h>
12#include <utility>
13
14namespace Aws
15{
16namespace EC2
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_EC2_API ImportVolumeRequest() = default;
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_EC2_API Aws::String SerializePayload() const override;
35
36 protected:
37 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38
39 public:
40
42
48 inline bool GetDryRun() const { return m_dryRun; }
49 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
50 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
51 inline ImportVolumeRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
53
55
58 inline const Aws::String& GetAvailabilityZone() const { return m_availabilityZone; }
59 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
60 template<typename AvailabilityZoneT = Aws::String>
61 void SetAvailabilityZone(AvailabilityZoneT&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::forward<AvailabilityZoneT>(value); }
62 template<typename AvailabilityZoneT = Aws::String>
63 ImportVolumeRequest& WithAvailabilityZone(AvailabilityZoneT&& value) { SetAvailabilityZone(std::forward<AvailabilityZoneT>(value)); return *this;}
65
67
70 inline const DiskImageDetail& GetImage() const { return m_image; }
71 inline bool ImageHasBeenSet() const { return m_imageHasBeenSet; }
72 template<typename ImageT = DiskImageDetail>
73 void SetImage(ImageT&& value) { m_imageHasBeenSet = true; m_image = std::forward<ImageT>(value); }
74 template<typename ImageT = DiskImageDetail>
75 ImportVolumeRequest& WithImage(ImageT&& value) { SetImage(std::forward<ImageT>(value)); return *this;}
77
79
82 inline const Aws::String& GetDescription() const { return m_description; }
83 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
84 template<typename DescriptionT = Aws::String>
85 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
86 template<typename DescriptionT = Aws::String>
87 ImportVolumeRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
89
91
94 inline const VolumeDetail& GetVolume() const { return m_volume; }
95 inline bool VolumeHasBeenSet() const { return m_volumeHasBeenSet; }
96 template<typename VolumeT = VolumeDetail>
97 void SetVolume(VolumeT&& value) { m_volumeHasBeenSet = true; m_volume = std::forward<VolumeT>(value); }
98 template<typename VolumeT = VolumeDetail>
99 ImportVolumeRequest& WithVolume(VolumeT&& value) { SetVolume(std::forward<VolumeT>(value)); return *this;}
101 private:
102
103 bool m_dryRun{false};
104 bool m_dryRunHasBeenSet = false;
105
106 Aws::String m_availabilityZone;
107 bool m_availabilityZoneHasBeenSet = false;
108
109 DiskImageDetail m_image;
110 bool m_imageHasBeenSet = false;
111
112 Aws::String m_description;
113 bool m_descriptionHasBeenSet = false;
114
115 VolumeDetail m_volume;
116 bool m_volumeHasBeenSet = false;
117 };
118
119} // namespace Model
120} // namespace EC2
121} // namespace Aws
void SetAvailabilityZone(AvailabilityZoneT &&value)
ImportVolumeRequest & WithAvailabilityZone(AvailabilityZoneT &&value)
AWS_EC2_API ImportVolumeRequest()=default
ImportVolumeRequest & WithImage(ImageT &&value)
const Aws::String & GetAvailabilityZone() const
ImportVolumeRequest & WithDescription(DescriptionT &&value)
ImportVolumeRequest & WithDryRun(bool value)
ImportVolumeRequest & WithVolume(VolumeT &&value)
const VolumeDetail & GetVolume() 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