/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace Neptune { namespace Model { /** *

Information about valid modifications that you can make to your DB * instance.

Contains the result of a successful call to the * DescribeValidDBInstanceModifications action.

See Also:

* AWS * API Reference

*/ class ValidStorageOptions { public: AWS_NEPTUNE_API ValidStorageOptions(); AWS_NEPTUNE_API ValidStorageOptions(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_NEPTUNE_API ValidStorageOptions& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_NEPTUNE_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_NEPTUNE_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

The valid storage types for your DB instance. For example, gp2, io1.

*/ inline const Aws::String& GetStorageType() const{ return m_storageType; } /** *

The valid storage types for your DB instance. For example, gp2, io1.

*/ inline bool StorageTypeHasBeenSet() const { return m_storageTypeHasBeenSet; } /** *

The valid storage types for your DB instance. For example, gp2, io1.

*/ inline void SetStorageType(const Aws::String& value) { m_storageTypeHasBeenSet = true; m_storageType = value; } /** *

The valid storage types for your DB instance. For example, gp2, io1.

*/ inline void SetStorageType(Aws::String&& value) { m_storageTypeHasBeenSet = true; m_storageType = std::move(value); } /** *

The valid storage types for your DB instance. For example, gp2, io1.

*/ inline void SetStorageType(const char* value) { m_storageTypeHasBeenSet = true; m_storageType.assign(value); } /** *

The valid storage types for your DB instance. For example, gp2, io1.

*/ inline ValidStorageOptions& WithStorageType(const Aws::String& value) { SetStorageType(value); return *this;} /** *

The valid storage types for your DB instance. For example, gp2, io1.

*/ inline ValidStorageOptions& WithStorageType(Aws::String&& value) { SetStorageType(std::move(value)); return *this;} /** *

The valid storage types for your DB instance. For example, gp2, io1.

*/ inline ValidStorageOptions& WithStorageType(const char* value) { SetStorageType(value); return *this;} /** *

The valid range of storage in gibibytes. For example, 100 to 16384.

*/ inline const Aws::Vector& GetStorageSize() const{ return m_storageSize; } /** *

The valid range of storage in gibibytes. For example, 100 to 16384.

*/ inline bool StorageSizeHasBeenSet() const { return m_storageSizeHasBeenSet; } /** *

The valid range of storage in gibibytes. For example, 100 to 16384.

*/ inline void SetStorageSize(const Aws::Vector& value) { m_storageSizeHasBeenSet = true; m_storageSize = value; } /** *

The valid range of storage in gibibytes. For example, 100 to 16384.

*/ inline void SetStorageSize(Aws::Vector&& value) { m_storageSizeHasBeenSet = true; m_storageSize = std::move(value); } /** *

The valid range of storage in gibibytes. For example, 100 to 16384.

*/ inline ValidStorageOptions& WithStorageSize(const Aws::Vector& value) { SetStorageSize(value); return *this;} /** *

The valid range of storage in gibibytes. For example, 100 to 16384.

*/ inline ValidStorageOptions& WithStorageSize(Aws::Vector&& value) { SetStorageSize(std::move(value)); return *this;} /** *

The valid range of storage in gibibytes. For example, 100 to 16384.

*/ inline ValidStorageOptions& AddStorageSize(const Range& value) { m_storageSizeHasBeenSet = true; m_storageSize.push_back(value); return *this; } /** *

The valid range of storage in gibibytes. For example, 100 to 16384.

*/ inline ValidStorageOptions& AddStorageSize(Range&& value) { m_storageSizeHasBeenSet = true; m_storageSize.push_back(std::move(value)); return *this; } /** *

The valid range of provisioned IOPS. For example, 1000-20000.

*/ inline const Aws::Vector& GetProvisionedIops() const{ return m_provisionedIops; } /** *

The valid range of provisioned IOPS. For example, 1000-20000.

*/ inline bool ProvisionedIopsHasBeenSet() const { return m_provisionedIopsHasBeenSet; } /** *

The valid range of provisioned IOPS. For example, 1000-20000.

*/ inline void SetProvisionedIops(const Aws::Vector& value) { m_provisionedIopsHasBeenSet = true; m_provisionedIops = value; } /** *

The valid range of provisioned IOPS. For example, 1000-20000.

*/ inline void SetProvisionedIops(Aws::Vector&& value) { m_provisionedIopsHasBeenSet = true; m_provisionedIops = std::move(value); } /** *

The valid range of provisioned IOPS. For example, 1000-20000.

*/ inline ValidStorageOptions& WithProvisionedIops(const Aws::Vector& value) { SetProvisionedIops(value); return *this;} /** *

The valid range of provisioned IOPS. For example, 1000-20000.

*/ inline ValidStorageOptions& WithProvisionedIops(Aws::Vector&& value) { SetProvisionedIops(std::move(value)); return *this;} /** *

The valid range of provisioned IOPS. For example, 1000-20000.

*/ inline ValidStorageOptions& AddProvisionedIops(const Range& value) { m_provisionedIopsHasBeenSet = true; m_provisionedIops.push_back(value); return *this; } /** *

The valid range of provisioned IOPS. For example, 1000-20000.

*/ inline ValidStorageOptions& AddProvisionedIops(Range&& value) { m_provisionedIopsHasBeenSet = true; m_provisionedIops.push_back(std::move(value)); return *this; } /** *

The valid range of Provisioned IOPS to gibibytes of storage multiplier. For * example, 3-10, which means that provisioned IOPS can be between 3 and 10 times * storage.

*/ inline const Aws::Vector& GetIopsToStorageRatio() const{ return m_iopsToStorageRatio; } /** *

The valid range of Provisioned IOPS to gibibytes of storage multiplier. For * example, 3-10, which means that provisioned IOPS can be between 3 and 10 times * storage.

*/ inline bool IopsToStorageRatioHasBeenSet() const { return m_iopsToStorageRatioHasBeenSet; } /** *

The valid range of Provisioned IOPS to gibibytes of storage multiplier. For * example, 3-10, which means that provisioned IOPS can be between 3 and 10 times * storage.

*/ inline void SetIopsToStorageRatio(const Aws::Vector& value) { m_iopsToStorageRatioHasBeenSet = true; m_iopsToStorageRatio = value; } /** *

The valid range of Provisioned IOPS to gibibytes of storage multiplier. For * example, 3-10, which means that provisioned IOPS can be between 3 and 10 times * storage.

*/ inline void SetIopsToStorageRatio(Aws::Vector&& value) { m_iopsToStorageRatioHasBeenSet = true; m_iopsToStorageRatio = std::move(value); } /** *

The valid range of Provisioned IOPS to gibibytes of storage multiplier. For * example, 3-10, which means that provisioned IOPS can be between 3 and 10 times * storage.

*/ inline ValidStorageOptions& WithIopsToStorageRatio(const Aws::Vector& value) { SetIopsToStorageRatio(value); return *this;} /** *

The valid range of Provisioned IOPS to gibibytes of storage multiplier. For * example, 3-10, which means that provisioned IOPS can be between 3 and 10 times * storage.

*/ inline ValidStorageOptions& WithIopsToStorageRatio(Aws::Vector&& value) { SetIopsToStorageRatio(std::move(value)); return *this;} /** *

The valid range of Provisioned IOPS to gibibytes of storage multiplier. For * example, 3-10, which means that provisioned IOPS can be between 3 and 10 times * storage.

*/ inline ValidStorageOptions& AddIopsToStorageRatio(const DoubleRange& value) { m_iopsToStorageRatioHasBeenSet = true; m_iopsToStorageRatio.push_back(value); return *this; } /** *

The valid range of Provisioned IOPS to gibibytes of storage multiplier. For * example, 3-10, which means that provisioned IOPS can be between 3 and 10 times * storage.

*/ inline ValidStorageOptions& AddIopsToStorageRatio(DoubleRange&& value) { m_iopsToStorageRatioHasBeenSet = true; m_iopsToStorageRatio.push_back(std::move(value)); return *this; } private: Aws::String m_storageType; bool m_storageTypeHasBeenSet = false; Aws::Vector m_storageSize; bool m_storageSizeHasBeenSet = false; Aws::Vector m_provisionedIops; bool m_provisionedIopsHasBeenSet = false; Aws::Vector m_iopsToStorageRatio; bool m_iopsToStorageRatioHasBeenSet = false; }; } // namespace Model } // namespace Neptune } // namespace Aws