AWS SDK for C++  1.9.71
AWS SDK for C++
DiskImageDetail.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Xml
18 {
19  class XmlNode;
20 } // namespace Xml
21 } // namespace Utils
22 namespace EC2
23 {
24 namespace Model
25 {
26 
33  {
34  public:
38 
39  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40  void OutputToStream(Aws::OStream& oStream, const char* location) const;
41 
42 
46  inline long long GetBytes() const{ return m_bytes; }
47 
51  inline bool BytesHasBeenSet() const { return m_bytesHasBeenSet; }
52 
56  inline void SetBytes(long long value) { m_bytesHasBeenSet = true; m_bytes = value; }
57 
61  inline DiskImageDetail& WithBytes(long long value) { SetBytes(value); return *this;}
62 
63 
67  inline const DiskImageFormat& GetFormat() const{ return m_format; }
68 
72  inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
73 
77  inline void SetFormat(const DiskImageFormat& value) { m_formatHasBeenSet = true; m_format = value; }
78 
82  inline void SetFormat(DiskImageFormat&& value) { m_formatHasBeenSet = true; m_format = std::move(value); }
83 
87  inline DiskImageDetail& WithFormat(const DiskImageFormat& value) { SetFormat(value); return *this;}
88 
92  inline DiskImageDetail& WithFormat(DiskImageFormat&& value) { SetFormat(std::move(value)); return *this;}
93 
94 
107  inline const Aws::String& GetImportManifestUrl() const{ return m_importManifestUrl; }
108 
121  inline bool ImportManifestUrlHasBeenSet() const { return m_importManifestUrlHasBeenSet; }
122 
135  inline void SetImportManifestUrl(const Aws::String& value) { m_importManifestUrlHasBeenSet = true; m_importManifestUrl = value; }
136 
149  inline void SetImportManifestUrl(Aws::String&& value) { m_importManifestUrlHasBeenSet = true; m_importManifestUrl = std::move(value); }
150 
163  inline void SetImportManifestUrl(const char* value) { m_importManifestUrlHasBeenSet = true; m_importManifestUrl.assign(value); }
164 
177  inline DiskImageDetail& WithImportManifestUrl(const Aws::String& value) { SetImportManifestUrl(value); return *this;}
178 
191  inline DiskImageDetail& WithImportManifestUrl(Aws::String&& value) { SetImportManifestUrl(std::move(value)); return *this;}
192 
205  inline DiskImageDetail& WithImportManifestUrl(const char* value) { SetImportManifestUrl(value); return *this;}
206 
207  private:
208 
209  long long m_bytes;
210  bool m_bytesHasBeenSet;
211 
212  DiskImageFormat m_format;
213  bool m_formatHasBeenSet;
214 
215  Aws::String m_importManifestUrl;
216  bool m_importManifestUrlHasBeenSet;
217  };
218 
219 } // namespace Model
220 } // namespace EC2
221 } // namespace Aws
Aws::EC2::Model::DiskImageDetail::SetImportManifestUrl
void SetImportManifestUrl(const Aws::String &value)
Definition: DiskImageDetail.h:135
Aws::EC2::Model::DiskImageDetail::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::DiskImageDetail::GetFormat
const DiskImageFormat & GetFormat() const
Definition: DiskImageDetail.h:67
Aws::EC2::Model::DiskImageDetail::SetFormat
void SetFormat(DiskImageFormat &&value)
Definition: DiskImageDetail.h:82
Aws::EC2::Model::DiskImageDetail::WithFormat
DiskImageDetail & WithFormat(const DiskImageFormat &value)
Definition: DiskImageDetail.h:87
Aws::EC2::Model::DiskImageDetail::WithBytes
DiskImageDetail & WithBytes(long long value)
Definition: DiskImageDetail.h:61
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::DiskImageDetail::SetFormat
void SetFormat(const DiskImageFormat &value)
Definition: DiskImageDetail.h:77
AWSStreamFwd.h
Aws::EC2::Model::DiskImageDetail::WithFormat
DiskImageDetail & WithFormat(DiskImageFormat &&value)
Definition: DiskImageDetail.h:92
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::DiskImageDetail::DiskImageDetail
DiskImageDetail()
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::DiskImageDetail::WithImportManifestUrl
DiskImageDetail & WithImportManifestUrl(const char *value)
Definition: DiskImageDetail.h:205
Aws::EC2::Model::DiskImageDetail::operator=
DiskImageDetail & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::DiskImageDetail::WithImportManifestUrl
DiskImageDetail & WithImportManifestUrl(const Aws::String &value)
Definition: DiskImageDetail.h:177
Aws::EC2::Model::DiskImageFormat
DiskImageFormat
Definition: DiskImageFormat.h:17
Aws::EC2::Model::DiskImageDetail::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::DiskImageDetail
Definition: DiskImageDetail.h:33
Aws::EC2::Model::DiskImageDetail::GetBytes
long long GetBytes() const
Definition: DiskImageDetail.h:46
Aws::EC2::Model::DiskImageDetail::SetBytes
void SetBytes(long long value)
Definition: DiskImageDetail.h:56
Aws::EC2::Model::DiskImageDetail::SetImportManifestUrl
void SetImportManifestUrl(const char *value)
Definition: DiskImageDetail.h:163
AWSString.h
Aws::EC2::Model::DiskImageDetail::BytesHasBeenSet
bool BytesHasBeenSet() const
Definition: DiskImageDetail.h:51
Aws::EC2::Model::DiskImageDetail::SetImportManifestUrl
void SetImportManifestUrl(Aws::String &&value)
Definition: DiskImageDetail.h:149
Aws::EC2::Model::DiskImageDetail::FormatHasBeenSet
bool FormatHasBeenSet() const
Definition: DiskImageDetail.h:72
Aws
Definition: AccessManagementClient.h:15
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
DiskImageFormat.h
EC2_EXPORTS.h
Aws::EC2::Model::DiskImageDetail::WithImportManifestUrl
DiskImageDetail & WithImportManifestUrl(Aws::String &&value)
Definition: DiskImageDetail.h:191
Aws::EC2::Model::DiskImageDetail::DiskImageDetail
DiskImageDetail(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::DiskImageDetail::ImportManifestUrlHasBeenSet
bool ImportManifestUrlHasBeenSet() const
Definition: DiskImageDetail.h:121
Aws::EC2::Model::DiskImageDetail::GetImportManifestUrl
const Aws::String & GetImportManifestUrl() const
Definition: DiskImageDetail.h:107