AWS SDK for C++  1.9.66
AWS SDK for C++
ImportVolumeTaskDetails.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Xml
19 {
20  class XmlNode;
21 } // namespace Xml
22 } // namespace Utils
23 namespace EC2
24 {
25 namespace Model
26 {
27 
34  {
35  public:
39 
40  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41  void OutputToStream(Aws::OStream& oStream, const char* location) const;
42 
43 
47  inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; }
48 
52  inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
53 
57  inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; }
58 
62  inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); }
63 
67  inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); }
68 
72  inline ImportVolumeTaskDetails& WithAvailabilityZone(const Aws::String& value) { SetAvailabilityZone(value); return *this;}
73 
77  inline ImportVolumeTaskDetails& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;}
78 
82  inline ImportVolumeTaskDetails& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;}
83 
84 
88  inline long long GetBytesConverted() const{ return m_bytesConverted; }
89 
93  inline bool BytesConvertedHasBeenSet() const { return m_bytesConvertedHasBeenSet; }
94 
98  inline void SetBytesConverted(long long value) { m_bytesConvertedHasBeenSet = true; m_bytesConverted = value; }
99 
103  inline ImportVolumeTaskDetails& WithBytesConverted(long long value) { SetBytesConverted(value); return *this;}
104 
105 
109  inline const Aws::String& GetDescription() const{ return m_description; }
110 
114  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
115 
119  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
120 
124  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
125 
129  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
130 
134  inline ImportVolumeTaskDetails& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
135 
139  inline ImportVolumeTaskDetails& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
140 
144  inline ImportVolumeTaskDetails& WithDescription(const char* value) { SetDescription(value); return *this;}
145 
146 
150  inline const DiskImageDescription& GetImage() const{ return m_image; }
151 
155  inline bool ImageHasBeenSet() const { return m_imageHasBeenSet; }
156 
160  inline void SetImage(const DiskImageDescription& value) { m_imageHasBeenSet = true; m_image = value; }
161 
165  inline void SetImage(DiskImageDescription&& value) { m_imageHasBeenSet = true; m_image = std::move(value); }
166 
170  inline ImportVolumeTaskDetails& WithImage(const DiskImageDescription& value) { SetImage(value); return *this;}
171 
175  inline ImportVolumeTaskDetails& WithImage(DiskImageDescription&& value) { SetImage(std::move(value)); return *this;}
176 
177 
181  inline const DiskImageVolumeDescription& GetVolume() const{ return m_volume; }
182 
186  inline bool VolumeHasBeenSet() const { return m_volumeHasBeenSet; }
187 
191  inline void SetVolume(const DiskImageVolumeDescription& value) { m_volumeHasBeenSet = true; m_volume = value; }
192 
196  inline void SetVolume(DiskImageVolumeDescription&& value) { m_volumeHasBeenSet = true; m_volume = std::move(value); }
197 
201  inline ImportVolumeTaskDetails& WithVolume(const DiskImageVolumeDescription& value) { SetVolume(value); return *this;}
202 
206  inline ImportVolumeTaskDetails& WithVolume(DiskImageVolumeDescription&& value) { SetVolume(std::move(value)); return *this;}
207 
208  private:
209 
210  Aws::String m_availabilityZone;
211  bool m_availabilityZoneHasBeenSet;
212 
213  long long m_bytesConverted;
214  bool m_bytesConvertedHasBeenSet;
215 
216  Aws::String m_description;
217  bool m_descriptionHasBeenSet;
218 
219  DiskImageDescription m_image;
220  bool m_imageHasBeenSet;
221 
223  bool m_volumeHasBeenSet;
224  };
225 
226 } // namespace Model
227 } // namespace EC2
228 } // namespace Aws
Aws::EC2::Model::ImportVolumeTaskDetails::AvailabilityZoneHasBeenSet
bool AvailabilityZoneHasBeenSet() const
Definition: ImportVolumeTaskDetails.h:52
Aws::EC2::Model::ImportVolumeTaskDetails::WithVolume
ImportVolumeTaskDetails & WithVolume(const DiskImageVolumeDescription &value)
Definition: ImportVolumeTaskDetails.h:201
Aws::EC2::Model::ImportVolumeTaskDetails::WithDescription
ImportVolumeTaskDetails & WithDescription(Aws::String &&value)
Definition: ImportVolumeTaskDetails.h:139
Aws::EC2::Model::ImportVolumeTaskDetails::WithBytesConverted
ImportVolumeTaskDetails & WithBytesConverted(long long value)
Definition: ImportVolumeTaskDetails.h:103
Aws::EC2::Model::ImportVolumeTaskDetails::SetImage
void SetImage(const DiskImageDescription &value)
Definition: ImportVolumeTaskDetails.h:160
Aws::EC2::Model::ImportVolumeTaskDetails::operator=
ImportVolumeTaskDetails & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::ImportVolumeTaskDetails::WithVolume
ImportVolumeTaskDetails & WithVolume(DiskImageVolumeDescription &&value)
Definition: ImportVolumeTaskDetails.h:206
Aws::EC2::Model::ImportVolumeTaskDetails::SetDescription
void SetDescription(const Aws::String &value)
Definition: ImportVolumeTaskDetails.h:119
Aws::EC2::Model::ImportVolumeTaskDetails::SetImage
void SetImage(DiskImageDescription &&value)
Definition: ImportVolumeTaskDetails.h:165
Aws::EC2::Model::ImportVolumeTaskDetails::WithImage
ImportVolumeTaskDetails & WithImage(const DiskImageDescription &value)
Definition: ImportVolumeTaskDetails.h:170
Aws::EC2::Model::ImportVolumeTaskDetails::ImageHasBeenSet
bool ImageHasBeenSet() const
Definition: ImportVolumeTaskDetails.h:155
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
DiskImageDescription.h
Aws::EC2::Model::ImportVolumeTaskDetails::WithDescription
ImportVolumeTaskDetails & WithDescription(const char *value)
Definition: ImportVolumeTaskDetails.h:144
AWSStreamFwd.h
Aws::EC2::Model::ImportVolumeTaskDetails::ImportVolumeTaskDetails
ImportVolumeTaskDetails()
Aws::EC2::Model::ImportVolumeTaskDetails::ImportVolumeTaskDetails
ImportVolumeTaskDetails(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::ImportVolumeTaskDetails::BytesConvertedHasBeenSet
bool BytesConvertedHasBeenSet() const
Definition: ImportVolumeTaskDetails.h:93
Aws::EC2::Model::ImportVolumeTaskDetails::SetAvailabilityZone
void SetAvailabilityZone(const char *value)
Definition: ImportVolumeTaskDetails.h:67
Aws::EC2::Model::ImportVolumeTaskDetails::SetVolume
void SetVolume(const DiskImageVolumeDescription &value)
Definition: ImportVolumeTaskDetails.h:191
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::ImportVolumeTaskDetails::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: ImportVolumeTaskDetails.h:114
Aws::EC2::Model::ImportVolumeTaskDetails::WithAvailabilityZone
ImportVolumeTaskDetails & WithAvailabilityZone(const Aws::String &value)
Definition: ImportVolumeTaskDetails.h:72
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::ImportVolumeTaskDetails::WithImage
ImportVolumeTaskDetails & WithImage(DiskImageDescription &&value)
Definition: ImportVolumeTaskDetails.h:175
Aws::EC2::Model::ImportVolumeTaskDetails
Definition: ImportVolumeTaskDetails.h:34
Aws::EC2::Model::ImportVolumeTaskDetails::GetAvailabilityZone
const Aws::String & GetAvailabilityZone() const
Definition: ImportVolumeTaskDetails.h:47
AWSString.h
Aws::EC2::Model::ImportVolumeTaskDetails::SetDescription
void SetDescription(Aws::String &&value)
Definition: ImportVolumeTaskDetails.h:124
Aws::EC2::Model::ImportVolumeTaskDetails::GetDescription
const Aws::String & GetDescription() const
Definition: ImportVolumeTaskDetails.h:109
Aws::EC2::Model::ImportVolumeTaskDetails::GetBytesConverted
long long GetBytesConverted() const
Definition: ImportVolumeTaskDetails.h:88
Aws::EC2::Model::ImportVolumeTaskDetails::GetVolume
const DiskImageVolumeDescription & GetVolume() const
Definition: ImportVolumeTaskDetails.h:181
Aws::EC2::Model::ImportVolumeTaskDetails::VolumeHasBeenSet
bool VolumeHasBeenSet() const
Definition: ImportVolumeTaskDetails.h:186
DiskImageVolumeDescription.h
Aws::EC2::Model::ImportVolumeTaskDetails::GetImage
const DiskImageDescription & GetImage() const
Definition: ImportVolumeTaskDetails.h:150
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::ImportVolumeTaskDetails::WithDescription
ImportVolumeTaskDetails & WithDescription(const Aws::String &value)
Definition: ImportVolumeTaskDetails.h:134
Aws::EC2::Model::ImportVolumeTaskDetails::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::ImportVolumeTaskDetails::SetAvailabilityZone
void SetAvailabilityZone(const Aws::String &value)
Definition: ImportVolumeTaskDetails.h:57
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::ImportVolumeTaskDetails::SetVolume
void SetVolume(DiskImageVolumeDescription &&value)
Definition: ImportVolumeTaskDetails.h:196
Aws::EC2::Model::ImportVolumeTaskDetails::SetDescription
void SetDescription(const char *value)
Definition: ImportVolumeTaskDetails.h:129
Aws::EC2::Model::ImportVolumeTaskDetails::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::ImportVolumeTaskDetails::SetAvailabilityZone
void SetAvailabilityZone(Aws::String &&value)
Definition: ImportVolumeTaskDetails.h:62
Aws::EC2::Model::ImportVolumeTaskDetails::WithAvailabilityZone
ImportVolumeTaskDetails & WithAvailabilityZone(const char *value)
Definition: ImportVolumeTaskDetails.h:82
EC2_EXPORTS.h
Aws::EC2::Model::DiskImageDescription
Definition: DiskImageDescription.h:33
Aws::EC2::Model::DiskImageVolumeDescription
Definition: DiskImageVolumeDescription.h:32
Aws::EC2::Model::ImportVolumeTaskDetails::WithAvailabilityZone
ImportVolumeTaskDetails & WithAvailabilityZone(Aws::String &&value)
Definition: ImportVolumeTaskDetails.h:77
Aws::EC2::Model::ImportVolumeTaskDetails::SetBytesConverted
void SetBytesConverted(long long value)
Definition: ImportVolumeTaskDetails.h:98