AWS SDK for C++  1.9.75
AWS SDK for C++
DiskImage.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& GetDescription() const{ return m_description; }
48 
52  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
53 
57  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
58 
62  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
63 
67  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
68 
72  inline DiskImage& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
73 
77  inline DiskImage& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
78 
82  inline DiskImage& WithDescription(const char* value) { SetDescription(value); return *this;}
83 
84 
88  inline const DiskImageDetail& GetImage() const{ return m_image; }
89 
93  inline bool ImageHasBeenSet() const { return m_imageHasBeenSet; }
94 
98  inline void SetImage(const DiskImageDetail& value) { m_imageHasBeenSet = true; m_image = value; }
99 
103  inline void SetImage(DiskImageDetail&& value) { m_imageHasBeenSet = true; m_image = std::move(value); }
104 
108  inline DiskImage& WithImage(const DiskImageDetail& value) { SetImage(value); return *this;}
109 
113  inline DiskImage& WithImage(DiskImageDetail&& value) { SetImage(std::move(value)); return *this;}
114 
115 
119  inline const VolumeDetail& GetVolume() const{ return m_volume; }
120 
124  inline bool VolumeHasBeenSet() const { return m_volumeHasBeenSet; }
125 
129  inline void SetVolume(const VolumeDetail& value) { m_volumeHasBeenSet = true; m_volume = value; }
130 
134  inline void SetVolume(VolumeDetail&& value) { m_volumeHasBeenSet = true; m_volume = std::move(value); }
135 
139  inline DiskImage& WithVolume(const VolumeDetail& value) { SetVolume(value); return *this;}
140 
144  inline DiskImage& WithVolume(VolumeDetail&& value) { SetVolume(std::move(value)); return *this;}
145 
146  private:
147 
148  Aws::String m_description;
149  bool m_descriptionHasBeenSet;
150 
151  DiskImageDetail m_image;
152  bool m_imageHasBeenSet;
153 
154  VolumeDetail m_volume;
155  bool m_volumeHasBeenSet;
156  };
157 
158 } // namespace Model
159 } // namespace EC2
160 } // namespace Aws
Aws::EC2::Model::DiskImage::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::DiskImage::SetVolume
void SetVolume(const VolumeDetail &value)
Definition: DiskImage.h:129
Aws::EC2::Model::DiskImage::SetDescription
void SetDescription(const Aws::String &value)
Definition: DiskImage.h:57
Aws::EC2::Model::DiskImage::GetDescription
const Aws::String & GetDescription() const
Definition: DiskImage.h:47
Aws::EC2::Model::DiskImage::SetImage
void SetImage(DiskImageDetail &&value)
Definition: DiskImage.h:103
Aws::EC2::Model::DiskImage::WithDescription
DiskImage & WithDescription(Aws::String &&value)
Definition: DiskImage.h:77
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::DiskImage::GetImage
const DiskImageDetail & GetImage() const
Definition: DiskImage.h:88
Aws::EC2::Model::VolumeDetail
Definition: VolumeDetail.h:30
AWSStreamFwd.h
Aws::EC2::Model::DiskImage::ImageHasBeenSet
bool ImageHasBeenSet() const
Definition: DiskImage.h:93
Aws::EC2::Model::DiskImage::operator=
DiskImage & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::DiskImage::WithDescription
DiskImage & WithDescription(const Aws::String &value)
Definition: DiskImage.h:72
Aws::EC2::Model::DiskImageDetail
Definition: DiskImageDetail.h:33
AWSString.h
Aws::EC2::Model::DiskImage::SetVolume
void SetVolume(VolumeDetail &&value)
Definition: DiskImage.h:134
Aws::EC2::Model::DiskImage::WithImage
DiskImage & WithImage(const DiskImageDetail &value)
Definition: DiskImage.h:108
VolumeDetail.h
DiskImageDetail.h
Aws::EC2::Model::DiskImage::WithImage
DiskImage & WithImage(DiskImageDetail &&value)
Definition: DiskImage.h:113
Aws::EC2::Model::DiskImage::WithDescription
DiskImage & WithDescription(const char *value)
Definition: DiskImage.h:82
Aws::EC2::Model::DiskImage::GetVolume
const VolumeDetail & GetVolume() const
Definition: DiskImage.h:119
Aws::EC2::Model::DiskImage::SetDescription
void SetDescription(Aws::String &&value)
Definition: DiskImage.h:62
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::DiskImage::WithVolume
DiskImage & WithVolume(const VolumeDetail &value)
Definition: DiskImage.h:139
Aws::EC2::Model::DiskImage::VolumeHasBeenSet
bool VolumeHasBeenSet() const
Definition: DiskImage.h:124
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::DiskImage::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: DiskImage.h:52
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::DiskImage
Definition: DiskImage.h:34
Aws::EC2::Model::DiskImage::SetDescription
void SetDescription(const char *value)
Definition: DiskImage.h:67
Aws::EC2::Model::DiskImage::SetImage
void SetImage(const DiskImageDetail &value)
Definition: DiskImage.h:98
Aws::EC2::Model::DiskImage::DiskImage
DiskImage(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::DiskImage::DiskImage
DiskImage()
Aws::EC2::Model::DiskImage::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
EC2_EXPORTS.h
Aws::EC2::Model::DiskImage::WithVolume
DiskImage & WithVolume(VolumeDetail &&value)
Definition: DiskImage.h:144