AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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
38 {
39 public:
40 AWS_NEPTUNE_API ValidStorageOptions();
41 AWS_NEPTUNE_API ValidStorageOptions(const Aws::Utils::Xml::XmlNode& xmlNode);
42 AWS_NEPTUNE_API ValidStorageOptions& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
43
44 AWS_NEPTUNE_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
45 AWS_NEPTUNE_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
46
47
49
52 inline const Aws::String& GetStorageType() const{ return m_storageType; }
53 inline bool StorageTypeHasBeenSet() const { return m_storageTypeHasBeenSet; }
54 inline void SetStorageType(const Aws::String& value) { m_storageTypeHasBeenSet = true; m_storageType = value; }
55 inline void SetStorageType(Aws::String&& value) { m_storageTypeHasBeenSet = true; m_storageType = std::move(value); }
56 inline void SetStorageType(const char* value) { m_storageTypeHasBeenSet = true; m_storageType.assign(value); }
57 inline ValidStorageOptions& WithStorageType(const Aws::String& value) { SetStorageType(value); return *this;}
58 inline ValidStorageOptions& WithStorageType(Aws::String&& value) { SetStorageType(std::move(value)); return *this;}
59 inline ValidStorageOptions& WithStorageType(const char* value) { SetStorageType(value); return *this;}
61
63
66 inline const Aws::Vector<Range>& GetStorageSize() const{ return m_storageSize; }
67 inline bool StorageSizeHasBeenSet() const { return m_storageSizeHasBeenSet; }
68 inline void SetStorageSize(const Aws::Vector<Range>& value) { m_storageSizeHasBeenSet = true; m_storageSize = value; }
69 inline void SetStorageSize(Aws::Vector<Range>&& value) { m_storageSizeHasBeenSet = true; m_storageSize = std::move(value); }
70 inline ValidStorageOptions& WithStorageSize(const Aws::Vector<Range>& value) { SetStorageSize(value); return *this;}
71 inline ValidStorageOptions& WithStorageSize(Aws::Vector<Range>&& value) { SetStorageSize(std::move(value)); return *this;}
72 inline ValidStorageOptions& AddStorageSize(const Range& value) { m_storageSizeHasBeenSet = true; m_storageSize.push_back(value); return *this; }
73 inline ValidStorageOptions& AddStorageSize(Range&& value) { m_storageSizeHasBeenSet = true; m_storageSize.push_back(std::move(value)); return *this; }
75
77
80 inline const Aws::Vector<Range>& GetProvisionedIops() const{ return m_provisionedIops; }
81 inline bool ProvisionedIopsHasBeenSet() const { return m_provisionedIopsHasBeenSet; }
82 inline void SetProvisionedIops(const Aws::Vector<Range>& value) { m_provisionedIopsHasBeenSet = true; m_provisionedIops = value; }
83 inline void SetProvisionedIops(Aws::Vector<Range>&& value) { m_provisionedIopsHasBeenSet = true; m_provisionedIops = std::move(value); }
85 inline ValidStorageOptions& WithProvisionedIops(Aws::Vector<Range>&& value) { SetProvisionedIops(std::move(value)); return *this;}
86 inline ValidStorageOptions& AddProvisionedIops(const Range& value) { m_provisionedIopsHasBeenSet = true; m_provisionedIops.push_back(value); return *this; }
87 inline ValidStorageOptions& AddProvisionedIops(Range&& value) { m_provisionedIopsHasBeenSet = true; m_provisionedIops.push_back(std::move(value)); return *this; }
89
91
96 inline const Aws::Vector<DoubleRange>& GetIopsToStorageRatio() const{ return m_iopsToStorageRatio; }
97 inline bool IopsToStorageRatioHasBeenSet() const { return m_iopsToStorageRatioHasBeenSet; }
98 inline void SetIopsToStorageRatio(const Aws::Vector<DoubleRange>& value) { m_iopsToStorageRatioHasBeenSet = true; m_iopsToStorageRatio = value; }
99 inline void SetIopsToStorageRatio(Aws::Vector<DoubleRange>&& value) { m_iopsToStorageRatioHasBeenSet = true; m_iopsToStorageRatio = std::move(value); }
102 inline ValidStorageOptions& AddIopsToStorageRatio(const DoubleRange& value) { m_iopsToStorageRatioHasBeenSet = true; m_iopsToStorageRatio.push_back(value); return *this; }
103 inline ValidStorageOptions& AddIopsToStorageRatio(DoubleRange&& value) { m_iopsToStorageRatioHasBeenSet = true; m_iopsToStorageRatio.push_back(std::move(value)); return *this; }
105 private:
106
107 Aws::String m_storageType;
108 bool m_storageTypeHasBeenSet = false;
109
110 Aws::Vector<Range> m_storageSize;
111 bool m_storageSizeHasBeenSet = false;
112
113 Aws::Vector<Range> m_provisionedIops;
114 bool m_provisionedIopsHasBeenSet = false;
115
116 Aws::Vector<DoubleRange> m_iopsToStorageRatio;
117 bool m_iopsToStorageRatioHasBeenSet = false;
118 };
119
120} // namespace Model
121} // namespace Neptune
122} // namespace Aws
ValidStorageOptions & WithStorageSize(Aws::Vector< Range > &&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)
ValidStorageOptions & WithStorageType(const char *value)
void SetIopsToStorageRatio(Aws::Vector< DoubleRange > &&value)
ValidStorageOptions & AddProvisionedIops(const Range &value)
void SetStorageType(const Aws::String &value)
ValidStorageOptions & WithProvisionedIops(const Aws::Vector< Range > &value)
ValidStorageOptions & WithStorageSize(const Aws::Vector< Range > &value)
ValidStorageOptions & AddIopsToStorageRatio(const DoubleRange &value)
ValidStorageOptions & AddProvisionedIops(Range &&value)
const Aws::Vector< Range > & GetProvisionedIops() const
void SetProvisionedIops(Aws::Vector< Range > &&value)
ValidStorageOptions & WithProvisionedIops(Aws::Vector< Range > &&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
void SetProvisionedIops(const Aws::Vector< Range > &value)
ValidStorageOptions & AddStorageSize(Range &&value)
void SetIopsToStorageRatio(const Aws::Vector< DoubleRange > &value)
void SetStorageSize(Aws::Vector< Range > &&value)
ValidStorageOptions & AddIopsToStorageRatio(DoubleRange &&value)
ValidStorageOptions & WithIopsToStorageRatio(Aws::Vector< DoubleRange > &&value)
ValidStorageOptions & WithStorageType(const Aws::String &value)
ValidStorageOptions & WithIopsToStorageRatio(const Aws::Vector< DoubleRange > &value)
AWS_NEPTUNE_API ValidStorageOptions & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
ValidStorageOptions & AddStorageSize(const Range &value)
ValidStorageOptions & WithStorageType(Aws::String &&value)
void SetStorageSize(const Aws::Vector< Range > &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