AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
InstanceStorageInfo.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10#include <aws/ec2/model/DiskInfo.h>
11#include <aws/ec2/model/EphemeralNvmeSupport.h>
12#include <aws/ec2/model/InstanceStorageEncryptionSupport.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Xml {
19class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace EC2 {
23namespace Model {
24
32 public:
33 AWS_EC2_API InstanceStorageInfo() = default;
34 AWS_EC2_API InstanceStorageInfo(const Aws::Utils::Xml::XmlNode& xmlNode);
36
37 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
38 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
39
41
44 inline long long GetTotalSizeInGB() const { return m_totalSizeInGB; }
45 inline bool TotalSizeInGBHasBeenSet() const { return m_totalSizeInGBHasBeenSet; }
46 inline void SetTotalSizeInGB(long long value) {
47 m_totalSizeInGBHasBeenSet = true;
48 m_totalSizeInGB = value;
49 }
50 inline InstanceStorageInfo& WithTotalSizeInGB(long long value) {
51 SetTotalSizeInGB(value);
52 return *this;
53 }
55
57
60 inline const Aws::Vector<DiskInfo>& GetDisks() const { return m_disks; }
61 inline bool DisksHasBeenSet() const { return m_disksHasBeenSet; }
62 template <typename DisksT = Aws::Vector<DiskInfo>>
63 void SetDisks(DisksT&& value) {
64 m_disksHasBeenSet = true;
65 m_disks = std::forward<DisksT>(value);
66 }
67 template <typename DisksT = Aws::Vector<DiskInfo>>
68 InstanceStorageInfo& WithDisks(DisksT&& value) {
69 SetDisks(std::forward<DisksT>(value));
70 return *this;
71 }
72 template <typename DisksT = DiskInfo>
73 InstanceStorageInfo& AddDisks(DisksT&& value) {
74 m_disksHasBeenSet = true;
75 m_disks.emplace_back(std::forward<DisksT>(value));
76 return *this;
77 }
79
81
84 inline EphemeralNvmeSupport GetNvmeSupport() const { return m_nvmeSupport; }
85 inline bool NvmeSupportHasBeenSet() const { return m_nvmeSupportHasBeenSet; }
87 m_nvmeSupportHasBeenSet = true;
88 m_nvmeSupport = value;
89 }
91 SetNvmeSupport(value);
92 return *this;
93 }
95
97
100 inline InstanceStorageEncryptionSupport GetEncryptionSupport() const { return m_encryptionSupport; }
101 inline bool EncryptionSupportHasBeenSet() const { return m_encryptionSupportHasBeenSet; }
103 m_encryptionSupportHasBeenSet = true;
104 m_encryptionSupport = value;
105 }
108 return *this;
109 }
111 private:
112 long long m_totalSizeInGB{0};
113
114 Aws::Vector<DiskInfo> m_disks;
115
117
119 bool m_totalSizeInGBHasBeenSet = false;
120 bool m_disksHasBeenSet = false;
121 bool m_nvmeSupportHasBeenSet = false;
122 bool m_encryptionSupportHasBeenSet = false;
123};
124
125} // namespace Model
126} // namespace EC2
127} // namespace Aws
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API InstanceStorageInfo()=default
InstanceStorageInfo & WithTotalSizeInGB(long long value)
EphemeralNvmeSupport GetNvmeSupport() const
InstanceStorageEncryptionSupport GetEncryptionSupport() const
AWS_EC2_API InstanceStorageInfo & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
InstanceStorageInfo & WithDisks(DisksT &&value)
InstanceStorageInfo & WithEncryptionSupport(InstanceStorageEncryptionSupport value)
void SetEncryptionSupport(InstanceStorageEncryptionSupport value)
InstanceStorageInfo & WithNvmeSupport(EphemeralNvmeSupport value)
void SetNvmeSupport(EphemeralNvmeSupport value)
AWS_EC2_API InstanceStorageInfo(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
InstanceStorageInfo & AddDisks(DisksT &&value)
const Aws::Vector< DiskInfo > & GetDisks() const
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream