AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
InstanceStorageInfo.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/AWSVector.h>
10#include <aws/ec2/model/EphemeralNvmeSupport.h>
11#include <aws/ec2/model/InstanceStorageEncryptionSupport.h>
12#include <aws/ec2/model/DiskInfo.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Xml
20{
21 class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace EC2
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_EC2_API InstanceStorageInfo() = default;
39 AWS_EC2_API InstanceStorageInfo(const Aws::Utils::Xml::XmlNode& xmlNode);
41
42 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
44
45
47
50 inline long long GetTotalSizeInGB() const { return m_totalSizeInGB; }
51 inline bool TotalSizeInGBHasBeenSet() const { return m_totalSizeInGBHasBeenSet; }
52 inline void SetTotalSizeInGB(long long value) { m_totalSizeInGBHasBeenSet = true; m_totalSizeInGB = value; }
53 inline InstanceStorageInfo& WithTotalSizeInGB(long long value) { SetTotalSizeInGB(value); return *this;}
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) { m_disksHasBeenSet = true; m_disks = std::forward<DisksT>(value); }
64 template<typename DisksT = Aws::Vector<DiskInfo>>
65 InstanceStorageInfo& WithDisks(DisksT&& value) { SetDisks(std::forward<DisksT>(value)); return *this;}
66 template<typename DisksT = DiskInfo>
67 InstanceStorageInfo& AddDisks(DisksT&& value) { m_disksHasBeenSet = true; m_disks.emplace_back(std::forward<DisksT>(value)); return *this; }
69
71
74 inline EphemeralNvmeSupport GetNvmeSupport() const { return m_nvmeSupport; }
75 inline bool NvmeSupportHasBeenSet() const { return m_nvmeSupportHasBeenSet; }
76 inline void SetNvmeSupport(EphemeralNvmeSupport value) { m_nvmeSupportHasBeenSet = true; m_nvmeSupport = value; }
79
81
84 inline InstanceStorageEncryptionSupport GetEncryptionSupport() const { return m_encryptionSupport; }
85 inline bool EncryptionSupportHasBeenSet() const { return m_encryptionSupportHasBeenSet; }
86 inline void SetEncryptionSupport(InstanceStorageEncryptionSupport value) { m_encryptionSupportHasBeenSet = true; m_encryptionSupport = value; }
89 private:
90
91 long long m_totalSizeInGB{0};
92 bool m_totalSizeInGBHasBeenSet = false;
93
95 bool m_disksHasBeenSet = false;
96
98 bool m_nvmeSupportHasBeenSet = false;
99
101 bool m_encryptionSupportHasBeenSet = false;
102 };
103
104} // namespace Model
105} // namespace EC2
106} // 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