AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ImportVolumeTaskDetails.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ec2/model/DiskImageDescription.h>
11#include <aws/ec2/model/DiskImageVolumeDescription.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace EC2
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_EC2_API ImportVolumeTaskDetails() = default;
39
40 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
48 inline const Aws::String& GetAvailabilityZone() const { return m_availabilityZone; }
49 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
50 template<typename AvailabilityZoneT = Aws::String>
51 void SetAvailabilityZone(AvailabilityZoneT&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::forward<AvailabilityZoneT>(value); }
52 template<typename AvailabilityZoneT = Aws::String>
53 ImportVolumeTaskDetails& WithAvailabilityZone(AvailabilityZoneT&& value) { SetAvailabilityZone(std::forward<AvailabilityZoneT>(value)); return *this;}
55
57
60 inline long long GetBytesConverted() const { return m_bytesConverted; }
61 inline bool BytesConvertedHasBeenSet() const { return m_bytesConvertedHasBeenSet; }
62 inline void SetBytesConverted(long long value) { m_bytesConvertedHasBeenSet = true; m_bytesConverted = value; }
63 inline ImportVolumeTaskDetails& WithBytesConverted(long long value) { SetBytesConverted(value); return *this;}
65
67
70 inline const Aws::String& GetDescription() const { return m_description; }
71 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
72 template<typename DescriptionT = Aws::String>
73 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
74 template<typename DescriptionT = Aws::String>
75 ImportVolumeTaskDetails& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
77
79
82 inline const DiskImageDescription& GetImage() const { return m_image; }
83 inline bool ImageHasBeenSet() const { return m_imageHasBeenSet; }
84 template<typename ImageT = DiskImageDescription>
85 void SetImage(ImageT&& value) { m_imageHasBeenSet = true; m_image = std::forward<ImageT>(value); }
86 template<typename ImageT = DiskImageDescription>
87 ImportVolumeTaskDetails& WithImage(ImageT&& value) { SetImage(std::forward<ImageT>(value)); return *this;}
89
91
94 inline const DiskImageVolumeDescription& GetVolume() const { return m_volume; }
95 inline bool VolumeHasBeenSet() const { return m_volumeHasBeenSet; }
96 template<typename VolumeT = DiskImageVolumeDescription>
97 void SetVolume(VolumeT&& value) { m_volumeHasBeenSet = true; m_volume = std::forward<VolumeT>(value); }
98 template<typename VolumeT = DiskImageVolumeDescription>
99 ImportVolumeTaskDetails& WithVolume(VolumeT&& value) { SetVolume(std::forward<VolumeT>(value)); return *this;}
101 private:
102
103 Aws::String m_availabilityZone;
104 bool m_availabilityZoneHasBeenSet = false;
105
106 long long m_bytesConverted{0};
107 bool m_bytesConvertedHasBeenSet = false;
108
109 Aws::String m_description;
110 bool m_descriptionHasBeenSet = false;
111
112 DiskImageDescription m_image;
113 bool m_imageHasBeenSet = false;
114
115 DiskImageVolumeDescription m_volume;
116 bool m_volumeHasBeenSet = false;
117 };
118
119} // namespace Model
120} // namespace EC2
121} // namespace Aws
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)
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