This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-redshift/include/aws/redshift/model/OrderableClusterOption.h

225 lines
7.7 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/redshift/Redshift_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/redshift/model/AvailabilityZone.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Xml
{
class XmlNode;
} // namespace Xml
} // namespace Utils
namespace Redshift
{
namespace Model
{
/**
* <p>Describes an orderable cluster option.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/OrderableClusterOption">AWS
* API Reference</a></p>
*/
class AWS_REDSHIFT_API OrderableClusterOption
{
public:
OrderableClusterOption();
OrderableClusterOption(const Aws::Utils::Xml::XmlNode& xmlNode);
OrderableClusterOption& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
void OutputToStream(Aws::OStream& oStream, const char* location) const;
/**
* <p>The version of the orderable cluster.</p>
*/
inline const Aws::String& GetClusterVersion() const{ return m_clusterVersion; }
/**
* <p>The version of the orderable cluster.</p>
*/
inline bool ClusterVersionHasBeenSet() const { return m_clusterVersionHasBeenSet; }
/**
* <p>The version of the orderable cluster.</p>
*/
inline void SetClusterVersion(const Aws::String& value) { m_clusterVersionHasBeenSet = true; m_clusterVersion = value; }
/**
* <p>The version of the orderable cluster.</p>
*/
inline void SetClusterVersion(Aws::String&& value) { m_clusterVersionHasBeenSet = true; m_clusterVersion = std::move(value); }
/**
* <p>The version of the orderable cluster.</p>
*/
inline void SetClusterVersion(const char* value) { m_clusterVersionHasBeenSet = true; m_clusterVersion.assign(value); }
/**
* <p>The version of the orderable cluster.</p>
*/
inline OrderableClusterOption& WithClusterVersion(const Aws::String& value) { SetClusterVersion(value); return *this;}
/**
* <p>The version of the orderable cluster.</p>
*/
inline OrderableClusterOption& WithClusterVersion(Aws::String&& value) { SetClusterVersion(std::move(value)); return *this;}
/**
* <p>The version of the orderable cluster.</p>
*/
inline OrderableClusterOption& WithClusterVersion(const char* value) { SetClusterVersion(value); return *this;}
/**
* <p>The cluster type, for example <code>multi-node</code>. </p>
*/
inline const Aws::String& GetClusterType() const{ return m_clusterType; }
/**
* <p>The cluster type, for example <code>multi-node</code>. </p>
*/
inline bool ClusterTypeHasBeenSet() const { return m_clusterTypeHasBeenSet; }
/**
* <p>The cluster type, for example <code>multi-node</code>. </p>
*/
inline void SetClusterType(const Aws::String& value) { m_clusterTypeHasBeenSet = true; m_clusterType = value; }
/**
* <p>The cluster type, for example <code>multi-node</code>. </p>
*/
inline void SetClusterType(Aws::String&& value) { m_clusterTypeHasBeenSet = true; m_clusterType = std::move(value); }
/**
* <p>The cluster type, for example <code>multi-node</code>. </p>
*/
inline void SetClusterType(const char* value) { m_clusterTypeHasBeenSet = true; m_clusterType.assign(value); }
/**
* <p>The cluster type, for example <code>multi-node</code>. </p>
*/
inline OrderableClusterOption& WithClusterType(const Aws::String& value) { SetClusterType(value); return *this;}
/**
* <p>The cluster type, for example <code>multi-node</code>. </p>
*/
inline OrderableClusterOption& WithClusterType(Aws::String&& value) { SetClusterType(std::move(value)); return *this;}
/**
* <p>The cluster type, for example <code>multi-node</code>. </p>
*/
inline OrderableClusterOption& WithClusterType(const char* value) { SetClusterType(value); return *this;}
/**
* <p>The node type for the orderable cluster.</p>
*/
inline const Aws::String& GetNodeType() const{ return m_nodeType; }
/**
* <p>The node type for the orderable cluster.</p>
*/
inline bool NodeTypeHasBeenSet() const { return m_nodeTypeHasBeenSet; }
/**
* <p>The node type for the orderable cluster.</p>
*/
inline void SetNodeType(const Aws::String& value) { m_nodeTypeHasBeenSet = true; m_nodeType = value; }
/**
* <p>The node type for the orderable cluster.</p>
*/
inline void SetNodeType(Aws::String&& value) { m_nodeTypeHasBeenSet = true; m_nodeType = std::move(value); }
/**
* <p>The node type for the orderable cluster.</p>
*/
inline void SetNodeType(const char* value) { m_nodeTypeHasBeenSet = true; m_nodeType.assign(value); }
/**
* <p>The node type for the orderable cluster.</p>
*/
inline OrderableClusterOption& WithNodeType(const Aws::String& value) { SetNodeType(value); return *this;}
/**
* <p>The node type for the orderable cluster.</p>
*/
inline OrderableClusterOption& WithNodeType(Aws::String&& value) { SetNodeType(std::move(value)); return *this;}
/**
* <p>The node type for the orderable cluster.</p>
*/
inline OrderableClusterOption& WithNodeType(const char* value) { SetNodeType(value); return *this;}
/**
* <p>A list of availability zones for the orderable cluster.</p>
*/
inline const Aws::Vector<AvailabilityZone>& GetAvailabilityZones() const{ return m_availabilityZones; }
/**
* <p>A list of availability zones for the orderable cluster.</p>
*/
inline bool AvailabilityZonesHasBeenSet() const { return m_availabilityZonesHasBeenSet; }
/**
* <p>A list of availability zones for the orderable cluster.</p>
*/
inline void SetAvailabilityZones(const Aws::Vector<AvailabilityZone>& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones = value; }
/**
* <p>A list of availability zones for the orderable cluster.</p>
*/
inline void SetAvailabilityZones(Aws::Vector<AvailabilityZone>&& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones = std::move(value); }
/**
* <p>A list of availability zones for the orderable cluster.</p>
*/
inline OrderableClusterOption& WithAvailabilityZones(const Aws::Vector<AvailabilityZone>& value) { SetAvailabilityZones(value); return *this;}
/**
* <p>A list of availability zones for the orderable cluster.</p>
*/
inline OrderableClusterOption& WithAvailabilityZones(Aws::Vector<AvailabilityZone>&& value) { SetAvailabilityZones(std::move(value)); return *this;}
/**
* <p>A list of availability zones for the orderable cluster.</p>
*/
inline OrderableClusterOption& AddAvailabilityZones(const AvailabilityZone& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.push_back(value); return *this; }
/**
* <p>A list of availability zones for the orderable cluster.</p>
*/
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;
Aws::String m_clusterType;
bool m_clusterTypeHasBeenSet;
Aws::String m_nodeType;
bool m_nodeTypeHasBeenSet;
Aws::Vector<AvailabilityZone> m_availabilityZones;
bool m_availabilityZonesHasBeenSet;
};
} // namespace Model
} // namespace Redshift
} // namespace Aws