AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DiskImageVolumeDescription.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 <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace EC2
22{
23namespace Model
24{
25
32 {
33 public:
37
38 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
39 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
40
41
43
46 inline const Aws::String& GetId() const{ return m_id; }
47 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
48 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
49 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
50 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
51 inline DiskImageVolumeDescription& WithId(const Aws::String& value) { SetId(value); return *this;}
52 inline DiskImageVolumeDescription& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
53 inline DiskImageVolumeDescription& WithId(const char* value) { SetId(value); return *this;}
55
57
60 inline long long GetSize() const{ return m_size; }
61 inline bool SizeHasBeenSet() const { return m_sizeHasBeenSet; }
62 inline void SetSize(long long value) { m_sizeHasBeenSet = true; m_size = value; }
63 inline DiskImageVolumeDescription& WithSize(long long value) { SetSize(value); return *this;}
65 private:
66
67 Aws::String m_id;
68 bool m_idHasBeenSet = false;
69
70 long long m_size;
71 bool m_sizeHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace EC2
76} // namespace Aws
DiskImageVolumeDescription & WithId(const Aws::String &value)
DiskImageVolumeDescription & WithSize(long long value)
AWS_EC2_API DiskImageVolumeDescription(const Aws::Utils::Xml::XmlNode &xmlNode)
DiskImageVolumeDescription & WithId(Aws::String &&value)
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
DiskImageVolumeDescription & WithId(const char *value)
AWS_EC2_API DiskImageVolumeDescription & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream