AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ValidStorageOptions.h
1
6#pragma once
7#include <aws/neptune/Neptune_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/neptune/model/Range.h>
12#include <aws/neptune/model/DoubleRange.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Xml
20{
21 class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace Neptune
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_NEPTUNE_API ValidStorageOptions() = default;
39 AWS_NEPTUNE_API ValidStorageOptions(const Aws::Utils::Xml::XmlNode& xmlNode);
40 AWS_NEPTUNE_API ValidStorageOptions& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
41
42 AWS_NEPTUNE_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43 AWS_NEPTUNE_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
44
45
47
51 inline const Aws::String& GetStorageType() const { return m_storageType; }
52 inline bool StorageTypeHasBeenSet() const { return m_storageTypeHasBeenSet; }
53 template<typename StorageTypeT = Aws::String>
54 void SetStorageType(StorageTypeT&& value) { m_storageTypeHasBeenSet = true; m_storageType = std::forward<StorageTypeT>(value); }
55 template<typename StorageTypeT = Aws::String>
56 ValidStorageOptions& WithStorageType(StorageTypeT&& value) { SetStorageType(std::forward<StorageTypeT>(value)); return *this;}
58
60
64 inline const Aws::Vector<Range>& GetStorageSize() const { return m_storageSize; }
65 inline bool StorageSizeHasBeenSet() const { return m_storageSizeHasBeenSet; }
66 template<typename StorageSizeT = Aws::Vector<Range>>
67 void SetStorageSize(StorageSizeT&& value) { m_storageSizeHasBeenSet = true; m_storageSize = std::forward<StorageSizeT>(value); }
68 template<typename StorageSizeT = Aws::Vector<Range>>
69 ValidStorageOptions& WithStorageSize(StorageSizeT&& value) { SetStorageSize(std::forward<StorageSizeT>(value)); return *this;}
70 template<typename StorageSizeT = Range>
71 ValidStorageOptions& AddStorageSize(StorageSizeT&& value) { m_storageSizeHasBeenSet = true; m_storageSize.emplace_back(std::forward<StorageSizeT>(value)); return *this; }
73
75
79 inline const Aws::Vector<Range>& GetProvisionedIops() const { return m_provisionedIops; }
80 inline bool ProvisionedIopsHasBeenSet() const { return m_provisionedIopsHasBeenSet; }
81 template<typename ProvisionedIopsT = Aws::Vector<Range>>
82 void SetProvisionedIops(ProvisionedIopsT&& value) { m_provisionedIopsHasBeenSet = true; m_provisionedIops = std::forward<ProvisionedIopsT>(value); }
83 template<typename ProvisionedIopsT = Aws::Vector<Range>>
84 ValidStorageOptions& WithProvisionedIops(ProvisionedIopsT&& value) { SetProvisionedIops(std::forward<ProvisionedIopsT>(value)); return *this;}
85 template<typename ProvisionedIopsT = Range>
86 ValidStorageOptions& AddProvisionedIops(ProvisionedIopsT&& value) { m_provisionedIopsHasBeenSet = true; m_provisionedIops.emplace_back(std::forward<ProvisionedIopsT>(value)); return *this; }
88
90
94 inline const Aws::Vector<DoubleRange>& GetIopsToStorageRatio() const { return m_iopsToStorageRatio; }
95 inline bool IopsToStorageRatioHasBeenSet() const { return m_iopsToStorageRatioHasBeenSet; }
96 template<typename IopsToStorageRatioT = Aws::Vector<DoubleRange>>
97 void SetIopsToStorageRatio(IopsToStorageRatioT&& value) { m_iopsToStorageRatioHasBeenSet = true; m_iopsToStorageRatio = std::forward<IopsToStorageRatioT>(value); }
98 template<typename IopsToStorageRatioT = Aws::Vector<DoubleRange>>
99 ValidStorageOptions& WithIopsToStorageRatio(IopsToStorageRatioT&& value) { SetIopsToStorageRatio(std::forward<IopsToStorageRatioT>(value)); return *this;}
100 template<typename IopsToStorageRatioT = DoubleRange>
101 ValidStorageOptions& AddIopsToStorageRatio(IopsToStorageRatioT&& value) { m_iopsToStorageRatioHasBeenSet = true; m_iopsToStorageRatio.emplace_back(std::forward<IopsToStorageRatioT>(value)); return *this; }
103 private:
104
105 Aws::String m_storageType;
106 bool m_storageTypeHasBeenSet = false;
107
108 Aws::Vector<Range> m_storageSize;
109 bool m_storageSizeHasBeenSet = false;
110
111 Aws::Vector<Range> m_provisionedIops;
112 bool m_provisionedIopsHasBeenSet = false;
113
114 Aws::Vector<DoubleRange> m_iopsToStorageRatio;
115 bool m_iopsToStorageRatioHasBeenSet = false;
116 };
117
118} // namespace Model
119} // namespace Neptune
120} // namespace Aws
ValidStorageOptions & WithProvisionedIops(ProvisionedIopsT &&value)
ValidStorageOptions & AddStorageSize(StorageSizeT &&value)
AWS_NEPTUNE_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_NEPTUNE_API ValidStorageOptions(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetIopsToStorageRatio(IopsToStorageRatioT &&value)
void SetProvisionedIops(ProvisionedIopsT &&value)
const Aws::Vector< Range > & GetProvisionedIops() const
AWS_NEPTUNE_API ValidStorageOptions()=default
ValidStorageOptions & WithStorageType(StorageTypeT &&value)
ValidStorageOptions & WithStorageSize(StorageSizeT &&value)
AWS_NEPTUNE_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::Vector< DoubleRange > & GetIopsToStorageRatio() const
const Aws::Vector< Range > & GetStorageSize() const
ValidStorageOptions & AddProvisionedIops(ProvisionedIopsT &&value)
AWS_NEPTUNE_API ValidStorageOptions & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
ValidStorageOptions & AddIopsToStorageRatio(IopsToStorageRatioT &&value)
ValidStorageOptions & WithIopsToStorageRatio(IopsToStorageRatioT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream