AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; }
61 inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); }
62 inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); }
63 inline ImportVolumeRequest& WithAvailabilityZone(const Aws::String& value) { SetAvailabilityZone(value); return *this;}
64 inline ImportVolumeRequest& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;}
65 inline ImportVolumeRequest& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;}
67
69
72 inline const DiskImageDetail& GetImage() const{ return m_image; }
73 inline bool ImageHasBeenSet() const { return m_imageHasBeenSet; }
74 inline void SetImage(const DiskImageDetail& value) { m_imageHasBeenSet = true; m_image = value; }
75 inline void SetImage(DiskImageDetail&& value) { m_imageHasBeenSet = true; m_image = std::move(value); }
76 inline ImportVolumeRequest& WithImage(const DiskImageDetail& value) { SetImage(value); return *this;}
77 inline ImportVolumeRequest& WithImage(DiskImageDetail&& value) { SetImage(std::move(value)); return *this;}
79
81
84 inline const Aws::String& GetDescription() const{ return m_description; }
85 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
86 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
87 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
88 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
89 inline ImportVolumeRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
90 inline ImportVolumeRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
91 inline ImportVolumeRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
93
95
98 inline const VolumeDetail& GetVolume() const{ return m_volume; }
99 inline bool VolumeHasBeenSet() const { return m_volumeHasBeenSet; }
100 inline void SetVolume(const VolumeDetail& value) { m_volumeHasBeenSet = true; m_volume = value; }
101 inline void SetVolume(VolumeDetail&& value) { m_volumeHasBeenSet = true; m_volume = std::move(value); }
102 inline ImportVolumeRequest& WithVolume(const VolumeDetail& value) { SetVolume(value); return *this;}
103 inline ImportVolumeRequest& WithVolume(VolumeDetail&& value) { SetVolume(std::move(value)); return *this;}
105 private:
106
107 bool m_dryRun;
108 bool m_dryRunHasBeenSet = false;
109
110 Aws::String m_availabilityZone;
111 bool m_availabilityZoneHasBeenSet = false;
112
113 DiskImageDetail m_image;
114 bool m_imageHasBeenSet = false;
115
116 Aws::String m_description;
117 bool m_descriptionHasBeenSet = false;
118
119 VolumeDetail m_volume;
120 bool m_volumeHasBeenSet = false;
121 };
122
123} // namespace Model
124} // namespace EC2
125} // namespace Aws
ImportVolumeRequest & WithVolume(const VolumeDetail &value)
ImportVolumeRequest & WithImage(const DiskImageDetail &value)
const Aws::String & GetAvailabilityZone() const
ImportVolumeRequest & WithAvailabilityZone(const Aws::String &value)
void SetVolume(const VolumeDetail &value)
ImportVolumeRequest & WithDryRun(bool value)
ImportVolumeRequest & WithAvailabilityZone(Aws::String &&value)
const VolumeDetail & GetVolume() const
void SetAvailabilityZone(const char *value)
void SetAvailabilityZone(Aws::String &&value)
void SetDescription(Aws::String &&value)
AWS_EC2_API Aws::String SerializePayload() const override
void SetAvailabilityZone(const Aws::String &value)
ImportVolumeRequest & WithDescription(const char *value)
ImportVolumeRequest & WithVolume(VolumeDetail &&value)
virtual const char * GetServiceRequestName() const override
void SetImage(const DiskImageDetail &value)
void SetImage(DiskImageDetail &&value)
const DiskImageDetail & GetImage() const
void SetDescription(const Aws::String &value)
ImportVolumeRequest & WithDescription(const Aws::String &value)
ImportVolumeRequest & WithAvailabilityZone(const char *value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
const Aws::String & GetDescription() const
ImportVolumeRequest & WithImage(DiskImageDetail &&value)
ImportVolumeRequest & WithDescription(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String