AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ImportVolumeTaskDetails.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10#include <aws/ec2/model/DiskImageDescription.h>
11#include <aws/ec2/model/DiskImageVolumeDescription.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Xml {
18class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace EC2 {
22namespace Model {
23
30 public:
31 AWS_EC2_API ImportVolumeTaskDetails() = default;
34
35 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
36 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
37
39
42 inline const Aws::String& GetAvailabilityZone() const { return m_availabilityZone; }
43 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
44 template <typename AvailabilityZoneT = Aws::String>
45 void SetAvailabilityZone(AvailabilityZoneT&& value) {
46 m_availabilityZoneHasBeenSet = true;
47 m_availabilityZone = std::forward<AvailabilityZoneT>(value);
48 }
49 template <typename AvailabilityZoneT = Aws::String>
50 ImportVolumeTaskDetails& WithAvailabilityZone(AvailabilityZoneT&& value) {
51 SetAvailabilityZone(std::forward<AvailabilityZoneT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetAvailabilityZoneId() const { return m_availabilityZoneId; }
61 inline bool AvailabilityZoneIdHasBeenSet() const { return m_availabilityZoneIdHasBeenSet; }
62 template <typename AvailabilityZoneIdT = Aws::String>
63 void SetAvailabilityZoneId(AvailabilityZoneIdT&& value) {
64 m_availabilityZoneIdHasBeenSet = true;
65 m_availabilityZoneId = std::forward<AvailabilityZoneIdT>(value);
66 }
67 template <typename AvailabilityZoneIdT = Aws::String>
68 ImportVolumeTaskDetails& WithAvailabilityZoneId(AvailabilityZoneIdT&& value) {
69 SetAvailabilityZoneId(std::forward<AvailabilityZoneIdT>(value));
70 return *this;
71 }
73
75
78 inline long long GetBytesConverted() const { return m_bytesConverted; }
79 inline bool BytesConvertedHasBeenSet() const { return m_bytesConvertedHasBeenSet; }
80 inline void SetBytesConverted(long long value) {
81 m_bytesConvertedHasBeenSet = true;
82 m_bytesConverted = value;
83 }
85 SetBytesConverted(value);
86 return *this;
87 }
89
91
94 inline const Aws::String& GetDescription() const { return m_description; }
95 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
96 template <typename DescriptionT = Aws::String>
97 void SetDescription(DescriptionT&& value) {
98 m_descriptionHasBeenSet = true;
99 m_description = std::forward<DescriptionT>(value);
100 }
101 template <typename DescriptionT = Aws::String>
103 SetDescription(std::forward<DescriptionT>(value));
104 return *this;
105 }
107
109
112 inline const DiskImageDescription& GetImage() const { return m_image; }
113 inline bool ImageHasBeenSet() const { return m_imageHasBeenSet; }
114 template <typename ImageT = DiskImageDescription>
115 void SetImage(ImageT&& value) {
116 m_imageHasBeenSet = true;
117 m_image = std::forward<ImageT>(value);
118 }
119 template <typename ImageT = DiskImageDescription>
121 SetImage(std::forward<ImageT>(value));
122 return *this;
123 }
125
127
130 inline const DiskImageVolumeDescription& GetVolume() const { return m_volume; }
131 inline bool VolumeHasBeenSet() const { return m_volumeHasBeenSet; }
132 template <typename VolumeT = DiskImageVolumeDescription>
133 void SetVolume(VolumeT&& value) {
134 m_volumeHasBeenSet = true;
135 m_volume = std::forward<VolumeT>(value);
136 }
137 template <typename VolumeT = DiskImageVolumeDescription>
139 SetVolume(std::forward<VolumeT>(value));
140 return *this;
141 }
143 private:
144 Aws::String m_availabilityZone;
145
146 Aws::String m_availabilityZoneId;
147
148 long long m_bytesConverted{0};
149
150 Aws::String m_description;
151
152 DiskImageDescription m_image;
153
154 DiskImageVolumeDescription m_volume;
155 bool m_availabilityZoneHasBeenSet = false;
156 bool m_availabilityZoneIdHasBeenSet = false;
157 bool m_bytesConvertedHasBeenSet = false;
158 bool m_descriptionHasBeenSet = false;
159 bool m_imageHasBeenSet = false;
160 bool m_volumeHasBeenSet = false;
161};
162
163} // namespace Model
164} // namespace EC2
165} // namespace Aws
ImportVolumeTaskDetails & WithAvailabilityZoneId(AvailabilityZoneIdT &&value)
ImportVolumeTaskDetails & WithImage(ImageT &&value)
AWS_EC2_API ImportVolumeTaskDetails & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const DiskImageDescription & GetImage() const
const DiskImageVolumeDescription & GetVolume() const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
ImportVolumeTaskDetails & WithVolume(VolumeT &&value)
AWS_EC2_API ImportVolumeTaskDetails()=default
ImportVolumeTaskDetails & WithDescription(DescriptionT &&value)
void SetAvailabilityZone(AvailabilityZoneT &&value)
AWS_EC2_API ImportVolumeTaskDetails(const Aws::Utils::Xml::XmlNode &xmlNode)
ImportVolumeTaskDetails & WithAvailabilityZone(AvailabilityZoneT &&value)
void SetAvailabilityZoneId(AvailabilityZoneIdT &&value)
ImportVolumeTaskDetails & WithBytesConverted(long long value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream