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

Describes an orderable cluster option.

See Also:

AWS * API Reference

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

The version of the orderable cluster.

*/ inline const Aws::String& GetClusterVersion() const{ return m_clusterVersion; } /** *

The version of the orderable cluster.

*/ inline bool ClusterVersionHasBeenSet() const { return m_clusterVersionHasBeenSet; } /** *

The version of the orderable cluster.

*/ inline void SetClusterVersion(const Aws::String& value) { m_clusterVersionHasBeenSet = true; m_clusterVersion = value; } /** *

The version of the orderable cluster.

*/ inline void SetClusterVersion(Aws::String&& value) { m_clusterVersionHasBeenSet = true; m_clusterVersion = std::move(value); } /** *

The version of the orderable cluster.

*/ inline void SetClusterVersion(const char* value) { m_clusterVersionHasBeenSet = true; m_clusterVersion.assign(value); } /** *

The version of the orderable cluster.

*/ inline OrderableClusterOption& WithClusterVersion(const Aws::String& value) { SetClusterVersion(value); return *this;} /** *

The version of the orderable cluster.

*/ inline OrderableClusterOption& WithClusterVersion(Aws::String&& value) { SetClusterVersion(std::move(value)); return *this;} /** *

The version of the orderable cluster.

*/ inline OrderableClusterOption& WithClusterVersion(const char* value) { SetClusterVersion(value); return *this;} /** *

The cluster type, for example multi-node.

*/ inline const Aws::String& GetClusterType() const{ return m_clusterType; } /** *

The cluster type, for example multi-node.

*/ inline bool ClusterTypeHasBeenSet() const { return m_clusterTypeHasBeenSet; } /** *

The cluster type, for example multi-node.

*/ inline void SetClusterType(const Aws::String& value) { m_clusterTypeHasBeenSet = true; m_clusterType = value; } /** *

The cluster type, for example multi-node.

*/ inline void SetClusterType(Aws::String&& value) { m_clusterTypeHasBeenSet = true; m_clusterType = std::move(value); } /** *

The cluster type, for example multi-node.

*/ inline void SetClusterType(const char* value) { m_clusterTypeHasBeenSet = true; m_clusterType.assign(value); } /** *

The cluster type, for example multi-node.

*/ inline OrderableClusterOption& WithClusterType(const Aws::String& value) { SetClusterType(value); return *this;} /** *

The cluster type, for example multi-node.

*/ inline OrderableClusterOption& WithClusterType(Aws::String&& value) { SetClusterType(std::move(value)); return *this;} /** *

The cluster type, for example multi-node.

*/ inline OrderableClusterOption& WithClusterType(const char* value) { SetClusterType(value); return *this;} /** *

The node type for the orderable cluster.

*/ inline const Aws::String& GetNodeType() const{ return m_nodeType; } /** *

The node type for the orderable cluster.

*/ inline bool NodeTypeHasBeenSet() const { return m_nodeTypeHasBeenSet; } /** *

The node type for the orderable cluster.

*/ inline void SetNodeType(const Aws::String& value) { m_nodeTypeHasBeenSet = true; m_nodeType = value; } /** *

The node type for the orderable cluster.

*/ inline void SetNodeType(Aws::String&& value) { m_nodeTypeHasBeenSet = true; m_nodeType = std::move(value); } /** *

The node type for the orderable cluster.

*/ inline void SetNodeType(const char* value) { m_nodeTypeHasBeenSet = true; m_nodeType.assign(value); } /** *

The node type for the orderable cluster.

*/ inline OrderableClusterOption& WithNodeType(const Aws::String& value) { SetNodeType(value); return *this;} /** *

The node type for the orderable cluster.

*/ inline OrderableClusterOption& WithNodeType(Aws::String&& value) { SetNodeType(std::move(value)); return *this;} /** *

The node type for the orderable cluster.

*/ inline OrderableClusterOption& WithNodeType(const char* value) { SetNodeType(value); return *this;} /** *

A list of availability zones for the orderable cluster.

*/ inline const Aws::Vector& GetAvailabilityZones() const{ return m_availabilityZones; } /** *

A list of availability zones for the orderable cluster.

*/ inline bool AvailabilityZonesHasBeenSet() const { return m_availabilityZonesHasBeenSet; } /** *

A list of availability zones for the orderable cluster.

*/ inline void SetAvailabilityZones(const Aws::Vector& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones = value; } /** *

A list of availability zones for the orderable cluster.

*/ inline void SetAvailabilityZones(Aws::Vector&& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones = std::move(value); } /** *

A list of availability zones for the orderable cluster.

*/ inline OrderableClusterOption& WithAvailabilityZones(const Aws::Vector& value) { SetAvailabilityZones(value); return *this;} /** *

A list of availability zones for the orderable cluster.

*/ inline OrderableClusterOption& WithAvailabilityZones(Aws::Vector&& value) { SetAvailabilityZones(std::move(value)); return *this;} /** *

A list of availability zones for the orderable cluster.

*/ inline OrderableClusterOption& AddAvailabilityZones(const AvailabilityZone& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.push_back(value); return *this; } /** *

A list of availability zones for the orderable cluster.

*/ inline OrderableClusterOption& AddAvailabilityZones(AvailabilityZone&& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.push_back(std::move(value)); return *this; } private: Aws::String m_clusterVersion; bool m_clusterVersionHasBeenSet = false; Aws::String m_clusterType; bool m_clusterTypeHasBeenSet = false; Aws::String m_nodeType; bool m_nodeTypeHasBeenSet = false; Aws::Vector m_availabilityZones; bool m_availabilityZonesHasBeenSet = false; }; } // namespace Model } // namespace Redshift } // namespace Aws