AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetDisks(const Aws::Vector<DiskInfo>& value) { m_disksHasBeenSet = true; m_disks = value; }
63 inline void SetDisks(Aws::Vector<DiskInfo>&& value) { m_disksHasBeenSet = true; m_disks = std::move(value); }
64 inline InstanceStorageInfo& WithDisks(const Aws::Vector<DiskInfo>& value) { SetDisks(value); return *this;}
65 inline InstanceStorageInfo& WithDisks(Aws::Vector<DiskInfo>&& value) { SetDisks(std::move(value)); return *this;}
66 inline InstanceStorageInfo& AddDisks(const DiskInfo& value) { m_disksHasBeenSet = true; m_disks.push_back(value); return *this; }
67 inline InstanceStorageInfo& AddDisks(DiskInfo&& value) { m_disksHasBeenSet = true; m_disks.push_back(std::move(value)); return *this; }
69
71
74 inline const EphemeralNvmeSupport& GetNvmeSupport() const{ return m_nvmeSupport; }
75 inline bool NvmeSupportHasBeenSet() const { return m_nvmeSupportHasBeenSet; }
76 inline void SetNvmeSupport(const EphemeralNvmeSupport& value) { m_nvmeSupportHasBeenSet = true; m_nvmeSupport = value; }
77 inline void SetNvmeSupport(EphemeralNvmeSupport&& value) { m_nvmeSupportHasBeenSet = true; m_nvmeSupport = std::move(value); }
78 inline InstanceStorageInfo& WithNvmeSupport(const EphemeralNvmeSupport& value) { SetNvmeSupport(value); return *this;}
79 inline InstanceStorageInfo& WithNvmeSupport(EphemeralNvmeSupport&& value) { SetNvmeSupport(std::move(value)); return *this;}
81
83
86 inline const InstanceStorageEncryptionSupport& GetEncryptionSupport() const{ return m_encryptionSupport; }
87 inline bool EncryptionSupportHasBeenSet() const { return m_encryptionSupportHasBeenSet; }
88 inline void SetEncryptionSupport(const InstanceStorageEncryptionSupport& value) { m_encryptionSupportHasBeenSet = true; m_encryptionSupport = value; }
89 inline void SetEncryptionSupport(InstanceStorageEncryptionSupport&& value) { m_encryptionSupportHasBeenSet = true; m_encryptionSupport = std::move(value); }
93 private:
94
95 long long m_totalSizeInGB;
96 bool m_totalSizeInGBHasBeenSet = false;
97
99 bool m_disksHasBeenSet = false;
100
101 EphemeralNvmeSupport m_nvmeSupport;
102 bool m_nvmeSupportHasBeenSet = false;
103
104 InstanceStorageEncryptionSupport m_encryptionSupport;
105 bool m_encryptionSupportHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace EC2
110} // namespace Aws
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const EphemeralNvmeSupport & GetNvmeSupport() const
InstanceStorageInfo & WithTotalSizeInGB(long long value)
InstanceStorageInfo & WithEncryptionSupport(InstanceStorageEncryptionSupport &&value)
AWS_EC2_API InstanceStorageInfo & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
InstanceStorageInfo & WithNvmeSupport(const EphemeralNvmeSupport &value)
const InstanceStorageEncryptionSupport & GetEncryptionSupport() const
InstanceStorageInfo & WithNvmeSupport(EphemeralNvmeSupport &&value)
InstanceStorageInfo & AddDisks(DiskInfo &&value)
void SetEncryptionSupport(const InstanceStorageEncryptionSupport &value)
void SetNvmeSupport(EphemeralNvmeSupport &&value)
InstanceStorageInfo & WithEncryptionSupport(const InstanceStorageEncryptionSupport &value)
void SetDisks(const Aws::Vector< DiskInfo > &value)
void SetEncryptionSupport(InstanceStorageEncryptionSupport &&value)
InstanceStorageInfo & WithDisks(const Aws::Vector< DiskInfo > &value)
InstanceStorageInfo & WithDisks(Aws::Vector< DiskInfo > &&value)
AWS_EC2_API InstanceStorageInfo(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetDisks(Aws::Vector< DiskInfo > &&value)
void SetNvmeSupport(const EphemeralNvmeSupport &value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
InstanceStorageInfo & AddDisks(const DiskInfo &value)
const Aws::Vector< DiskInfo > & GetDisks() const
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream