AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DiskImage.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/DiskImageDetail.h>
11#include <aws/ec2/model/VolumeDetail.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 DiskImage();
37 AWS_EC2_API DiskImage(const Aws::Utils::Xml::XmlNode& xmlNode);
38 AWS_EC2_API DiskImage& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
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& GetDescription() const{ return m_description; }
49 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
50 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
51 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
52 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
53 inline DiskImage& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
54 inline DiskImage& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
55 inline DiskImage& WithDescription(const char* value) { SetDescription(value); return *this;}
57
59
62 inline const DiskImageDetail& GetImage() const{ return m_image; }
63 inline bool ImageHasBeenSet() const { return m_imageHasBeenSet; }
64 inline void SetImage(const DiskImageDetail& value) { m_imageHasBeenSet = true; m_image = value; }
65 inline void SetImage(DiskImageDetail&& value) { m_imageHasBeenSet = true; m_image = std::move(value); }
66 inline DiskImage& WithImage(const DiskImageDetail& value) { SetImage(value); return *this;}
67 inline DiskImage& WithImage(DiskImageDetail&& value) { SetImage(std::move(value)); return *this;}
69
71
74 inline const VolumeDetail& GetVolume() const{ return m_volume; }
75 inline bool VolumeHasBeenSet() const { return m_volumeHasBeenSet; }
76 inline void SetVolume(const VolumeDetail& value) { m_volumeHasBeenSet = true; m_volume = value; }
77 inline void SetVolume(VolumeDetail&& value) { m_volumeHasBeenSet = true; m_volume = std::move(value); }
78 inline DiskImage& WithVolume(const VolumeDetail& value) { SetVolume(value); return *this;}
79 inline DiskImage& WithVolume(VolumeDetail&& value) { SetVolume(std::move(value)); return *this;}
81 private:
82
83 Aws::String m_description;
84 bool m_descriptionHasBeenSet = false;
85
86 DiskImageDetail m_image;
87 bool m_imageHasBeenSet = false;
88
89 VolumeDetail m_volume;
90 bool m_volumeHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace EC2
95} // namespace Aws
DiskImage & WithVolume(VolumeDetail &&value)
Definition DiskImage.h:79
const Aws::String & GetDescription() const
Definition DiskImage.h:48
AWS_EC2_API DiskImage & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
DiskImage & WithDescription(const Aws::String &value)
Definition DiskImage.h:53
DiskImage & WithImage(DiskImageDetail &&value)
Definition DiskImage.h:67
void SetImage(DiskImageDetail &&value)
Definition DiskImage.h:65
bool VolumeHasBeenSet() const
Definition DiskImage.h:75
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetVolume(VolumeDetail &&value)
Definition DiskImage.h:77
AWS_EC2_API DiskImage(const Aws::Utils::Xml::XmlNode &xmlNode)
bool DescriptionHasBeenSet() const
Definition DiskImage.h:49
void SetDescription(const Aws::String &value)
Definition DiskImage.h:50
void SetImage(const DiskImageDetail &value)
Definition DiskImage.h:64
DiskImage & WithVolume(const VolumeDetail &value)
Definition DiskImage.h:78
DiskImage & WithImage(const DiskImageDetail &value)
Definition DiskImage.h:66
const DiskImageDetail & GetImage() const
Definition DiskImage.h:62
DiskImage & WithDescription(const char *value)
Definition DiskImage.h:55
const VolumeDetail & GetVolume() const
Definition DiskImage.h:74
DiskImage & WithDescription(Aws::String &&value)
Definition DiskImage.h:54
bool ImageHasBeenSet() const
Definition DiskImage.h:63
void SetDescription(Aws::String &&value)
Definition DiskImage.h:51
void SetVolume(const VolumeDetail &value)
Definition DiskImage.h:76
void SetDescription(const char *value)
Definition DiskImage.h:52
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream