AWS SDK for C++  1.9.68
AWS SDK for C++
DiskImageVolumeDescription.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Xml
17 {
18  class XmlNode;
19 } // namespace Xml
20 } // namespace Utils
21 namespace EC2
22 {
23 namespace Model
24 {
25 
32  {
33  public:
37 
38  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
39  void OutputToStream(Aws::OStream& oStream, const char* location) const;
40 
41 
45  inline const Aws::String& GetId() const{ return m_id; }
46 
50  inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
51 
55  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
56 
60  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
61 
65  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
66 
70  inline DiskImageVolumeDescription& WithId(const Aws::String& value) { SetId(value); return *this;}
71 
75  inline DiskImageVolumeDescription& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
76 
80  inline DiskImageVolumeDescription& WithId(const char* value) { SetId(value); return *this;}
81 
82 
86  inline long long GetSize() const{ return m_size; }
87 
91  inline bool SizeHasBeenSet() const { return m_sizeHasBeenSet; }
92 
96  inline void SetSize(long long value) { m_sizeHasBeenSet = true; m_size = value; }
97 
101  inline DiskImageVolumeDescription& WithSize(long long value) { SetSize(value); return *this;}
102 
103  private:
104 
105  Aws::String m_id;
106  bool m_idHasBeenSet;
107 
108  long long m_size;
109  bool m_sizeHasBeenSet;
110  };
111 
112 } // namespace Model
113 } // namespace EC2
114 } // namespace Aws
Aws::EC2::Model::DiskImageVolumeDescription::WithId
DiskImageVolumeDescription & WithId(const Aws::String &value)
Definition: DiskImageVolumeDescription.h:70
Aws::EC2::Model::DiskImageVolumeDescription::WithId
DiskImageVolumeDescription & WithId(Aws::String &&value)
Definition: DiskImageVolumeDescription.h:75
Aws::EC2::Model::DiskImageVolumeDescription::operator=
DiskImageVolumeDescription & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::DiskImageVolumeDescription::SizeHasBeenSet
bool SizeHasBeenSet() const
Definition: DiskImageVolumeDescription.h:91
Aws::EC2::Model::DiskImageVolumeDescription::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::DiskImageVolumeDescription::DiskImageVolumeDescription
DiskImageVolumeDescription()
AWSStreamFwd.h
Aws::EC2::Model::DiskImageVolumeDescription::SetId
void SetId(const Aws::String &value)
Definition: DiskImageVolumeDescription.h:55
Aws::EC2::Model::DiskImageVolumeDescription::DiskImageVolumeDescription
DiskImageVolumeDescription(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::DiskImageVolumeDescription::SetSize
void SetSize(long long value)
Definition: DiskImageVolumeDescription.h:96
AWSString.h
Aws::EC2::Model::DiskImageVolumeDescription::GetSize
long long GetSize() const
Definition: DiskImageVolumeDescription.h:86
Aws::EC2::Model::DiskImageVolumeDescription::WithId
DiskImageVolumeDescription & WithId(const char *value)
Definition: DiskImageVolumeDescription.h:80
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::DiskImageVolumeDescription::IdHasBeenSet
bool IdHasBeenSet() const
Definition: DiskImageVolumeDescription.h:50
Aws::EC2::Model::DiskImageVolumeDescription::SetId
void SetId(const char *value)
Definition: DiskImageVolumeDescription.h:65
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::DiskImageVolumeDescription::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::DiskImageVolumeDescription::GetId
const Aws::String & GetId() const
Definition: DiskImageVolumeDescription.h:45
EC2_EXPORTS.h
Aws::EC2::Model::DiskImageVolumeDescription
Definition: DiskImageVolumeDescription.h:32
Aws::EC2::Model::DiskImageVolumeDescription::SetId
void SetId(Aws::String &&value)
Definition: DiskImageVolumeDescription.h:60
Aws::EC2::Model::DiskImageVolumeDescription::WithSize
DiskImageVolumeDescription & WithSize(long long value)
Definition: DiskImageVolumeDescription.h:101