/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Reserved-node status details, such as the source reserved-node identifier,
* the target reserved-node identifier, the node type, the node count, and other
* details.See Also:
AWS
* API Reference
The identifier of the reserved-node exchange request.
*/ inline const Aws::String& GetReservedNodeExchangeRequestId() const{ return m_reservedNodeExchangeRequestId; } /** *The identifier of the reserved-node exchange request.
*/ inline bool ReservedNodeExchangeRequestIdHasBeenSet() const { return m_reservedNodeExchangeRequestIdHasBeenSet; } /** *The identifier of the reserved-node exchange request.
*/ inline void SetReservedNodeExchangeRequestId(const Aws::String& value) { m_reservedNodeExchangeRequestIdHasBeenSet = true; m_reservedNodeExchangeRequestId = value; } /** *The identifier of the reserved-node exchange request.
*/ inline void SetReservedNodeExchangeRequestId(Aws::String&& value) { m_reservedNodeExchangeRequestIdHasBeenSet = true; m_reservedNodeExchangeRequestId = std::move(value); } /** *The identifier of the reserved-node exchange request.
*/ inline void SetReservedNodeExchangeRequestId(const char* value) { m_reservedNodeExchangeRequestIdHasBeenSet = true; m_reservedNodeExchangeRequestId.assign(value); } /** *The identifier of the reserved-node exchange request.
*/ inline ReservedNodeExchangeStatus& WithReservedNodeExchangeRequestId(const Aws::String& value) { SetReservedNodeExchangeRequestId(value); return *this;} /** *The identifier of the reserved-node exchange request.
*/ inline ReservedNodeExchangeStatus& WithReservedNodeExchangeRequestId(Aws::String&& value) { SetReservedNodeExchangeRequestId(std::move(value)); return *this;} /** *The identifier of the reserved-node exchange request.
*/ inline ReservedNodeExchangeStatus& WithReservedNodeExchangeRequestId(const char* value) { SetReservedNodeExchangeRequestId(value); return *this;} /** *The status of the reserved-node exchange request. Statuses include * in-progress and requested.
*/ inline const ReservedNodeExchangeStatusType& GetStatus() const{ return m_status; } /** *The status of the reserved-node exchange request. Statuses include * in-progress and requested.
*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *The status of the reserved-node exchange request. Statuses include * in-progress and requested.
*/ inline void SetStatus(const ReservedNodeExchangeStatusType& value) { m_statusHasBeenSet = true; m_status = value; } /** *The status of the reserved-node exchange request. Statuses include * in-progress and requested.
*/ inline void SetStatus(ReservedNodeExchangeStatusType&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *The status of the reserved-node exchange request. Statuses include * in-progress and requested.
*/ inline ReservedNodeExchangeStatus& WithStatus(const ReservedNodeExchangeStatusType& value) { SetStatus(value); return *this;} /** *The status of the reserved-node exchange request. Statuses include * in-progress and requested.
*/ inline ReservedNodeExchangeStatus& WithStatus(ReservedNodeExchangeStatusType&& value) { SetStatus(std::move(value)); return *this;} /** *A date and time that indicate when the reserved-node exchange was * requested.
*/ inline const Aws::Utils::DateTime& GetRequestTime() const{ return m_requestTime; } /** *A date and time that indicate when the reserved-node exchange was * requested.
*/ inline bool RequestTimeHasBeenSet() const { return m_requestTimeHasBeenSet; } /** *A date and time that indicate when the reserved-node exchange was * requested.
*/ inline void SetRequestTime(const Aws::Utils::DateTime& value) { m_requestTimeHasBeenSet = true; m_requestTime = value; } /** *A date and time that indicate when the reserved-node exchange was * requested.
*/ inline void SetRequestTime(Aws::Utils::DateTime&& value) { m_requestTimeHasBeenSet = true; m_requestTime = std::move(value); } /** *A date and time that indicate when the reserved-node exchange was * requested.
*/ inline ReservedNodeExchangeStatus& WithRequestTime(const Aws::Utils::DateTime& value) { SetRequestTime(value); return *this;} /** *A date and time that indicate when the reserved-node exchange was * requested.
*/ inline ReservedNodeExchangeStatus& WithRequestTime(Aws::Utils::DateTime&& value) { SetRequestTime(std::move(value)); return *this;} /** *The identifier of the source reserved node.
*/ inline const Aws::String& GetSourceReservedNodeId() const{ return m_sourceReservedNodeId; } /** *The identifier of the source reserved node.
*/ inline bool SourceReservedNodeIdHasBeenSet() const { return m_sourceReservedNodeIdHasBeenSet; } /** *The identifier of the source reserved node.
*/ inline void SetSourceReservedNodeId(const Aws::String& value) { m_sourceReservedNodeIdHasBeenSet = true; m_sourceReservedNodeId = value; } /** *The identifier of the source reserved node.
*/ inline void SetSourceReservedNodeId(Aws::String&& value) { m_sourceReservedNodeIdHasBeenSet = true; m_sourceReservedNodeId = std::move(value); } /** *The identifier of the source reserved node.
*/ inline void SetSourceReservedNodeId(const char* value) { m_sourceReservedNodeIdHasBeenSet = true; m_sourceReservedNodeId.assign(value); } /** *The identifier of the source reserved node.
*/ inline ReservedNodeExchangeStatus& WithSourceReservedNodeId(const Aws::String& value) { SetSourceReservedNodeId(value); return *this;} /** *The identifier of the source reserved node.
*/ inline ReservedNodeExchangeStatus& WithSourceReservedNodeId(Aws::String&& value) { SetSourceReservedNodeId(std::move(value)); return *this;} /** *The identifier of the source reserved node.
*/ inline ReservedNodeExchangeStatus& WithSourceReservedNodeId(const char* value) { SetSourceReservedNodeId(value); return *this;} /** *The source reserved-node type, for example ds2.xlarge.
*/ inline const Aws::String& GetSourceReservedNodeType() const{ return m_sourceReservedNodeType; } /** *The source reserved-node type, for example ds2.xlarge.
*/ inline bool SourceReservedNodeTypeHasBeenSet() const { return m_sourceReservedNodeTypeHasBeenSet; } /** *The source reserved-node type, for example ds2.xlarge.
*/ inline void SetSourceReservedNodeType(const Aws::String& value) { m_sourceReservedNodeTypeHasBeenSet = true; m_sourceReservedNodeType = value; } /** *The source reserved-node type, for example ds2.xlarge.
*/ inline void SetSourceReservedNodeType(Aws::String&& value) { m_sourceReservedNodeTypeHasBeenSet = true; m_sourceReservedNodeType = std::move(value); } /** *The source reserved-node type, for example ds2.xlarge.
*/ inline void SetSourceReservedNodeType(const char* value) { m_sourceReservedNodeTypeHasBeenSet = true; m_sourceReservedNodeType.assign(value); } /** *The source reserved-node type, for example ds2.xlarge.
*/ inline ReservedNodeExchangeStatus& WithSourceReservedNodeType(const Aws::String& value) { SetSourceReservedNodeType(value); return *this;} /** *The source reserved-node type, for example ds2.xlarge.
*/ inline ReservedNodeExchangeStatus& WithSourceReservedNodeType(Aws::String&& value) { SetSourceReservedNodeType(std::move(value)); return *this;} /** *The source reserved-node type, for example ds2.xlarge.
*/ inline ReservedNodeExchangeStatus& WithSourceReservedNodeType(const char* value) { SetSourceReservedNodeType(value); return *this;} /** *The source reserved-node count in the cluster.
*/ inline int GetSourceReservedNodeCount() const{ return m_sourceReservedNodeCount; } /** *The source reserved-node count in the cluster.
*/ inline bool SourceReservedNodeCountHasBeenSet() const { return m_sourceReservedNodeCountHasBeenSet; } /** *The source reserved-node count in the cluster.
*/ inline void SetSourceReservedNodeCount(int value) { m_sourceReservedNodeCountHasBeenSet = true; m_sourceReservedNodeCount = value; } /** *The source reserved-node count in the cluster.
*/ inline ReservedNodeExchangeStatus& WithSourceReservedNodeCount(int value) { SetSourceReservedNodeCount(value); return *this;} /** *The identifier of the target reserved node offering.
*/ inline const Aws::String& GetTargetReservedNodeOfferingId() const{ return m_targetReservedNodeOfferingId; } /** *The identifier of the target reserved node offering.
*/ inline bool TargetReservedNodeOfferingIdHasBeenSet() const { return m_targetReservedNodeOfferingIdHasBeenSet; } /** *The identifier of the target reserved node offering.
*/ inline void SetTargetReservedNodeOfferingId(const Aws::String& value) { m_targetReservedNodeOfferingIdHasBeenSet = true; m_targetReservedNodeOfferingId = value; } /** *The identifier of the target reserved node offering.
*/ inline void SetTargetReservedNodeOfferingId(Aws::String&& value) { m_targetReservedNodeOfferingIdHasBeenSet = true; m_targetReservedNodeOfferingId = std::move(value); } /** *The identifier of the target reserved node offering.
*/ inline void SetTargetReservedNodeOfferingId(const char* value) { m_targetReservedNodeOfferingIdHasBeenSet = true; m_targetReservedNodeOfferingId.assign(value); } /** *The identifier of the target reserved node offering.
*/ inline ReservedNodeExchangeStatus& WithTargetReservedNodeOfferingId(const Aws::String& value) { SetTargetReservedNodeOfferingId(value); return *this;} /** *The identifier of the target reserved node offering.
*/ inline ReservedNodeExchangeStatus& WithTargetReservedNodeOfferingId(Aws::String&& value) { SetTargetReservedNodeOfferingId(std::move(value)); return *this;} /** *The identifier of the target reserved node offering.
*/ inline ReservedNodeExchangeStatus& WithTargetReservedNodeOfferingId(const char* value) { SetTargetReservedNodeOfferingId(value); return *this;} /** *The node type of the target reserved node, for example ra3.4xlarge.
*/ inline const Aws::String& GetTargetReservedNodeType() const{ return m_targetReservedNodeType; } /** *The node type of the target reserved node, for example ra3.4xlarge.
*/ inline bool TargetReservedNodeTypeHasBeenSet() const { return m_targetReservedNodeTypeHasBeenSet; } /** *The node type of the target reserved node, for example ra3.4xlarge.
*/ inline void SetTargetReservedNodeType(const Aws::String& value) { m_targetReservedNodeTypeHasBeenSet = true; m_targetReservedNodeType = value; } /** *The node type of the target reserved node, for example ra3.4xlarge.
*/ inline void SetTargetReservedNodeType(Aws::String&& value) { m_targetReservedNodeTypeHasBeenSet = true; m_targetReservedNodeType = std::move(value); } /** *The node type of the target reserved node, for example ra3.4xlarge.
*/ inline void SetTargetReservedNodeType(const char* value) { m_targetReservedNodeTypeHasBeenSet = true; m_targetReservedNodeType.assign(value); } /** *The node type of the target reserved node, for example ra3.4xlarge.
*/ inline ReservedNodeExchangeStatus& WithTargetReservedNodeType(const Aws::String& value) { SetTargetReservedNodeType(value); return *this;} /** *The node type of the target reserved node, for example ra3.4xlarge.
*/ inline ReservedNodeExchangeStatus& WithTargetReservedNodeType(Aws::String&& value) { SetTargetReservedNodeType(std::move(value)); return *this;} /** *The node type of the target reserved node, for example ra3.4xlarge.
*/ inline ReservedNodeExchangeStatus& WithTargetReservedNodeType(const char* value) { SetTargetReservedNodeType(value); return *this;} /** *The count of target reserved nodes in the cluster.
*/ inline int GetTargetReservedNodeCount() const{ return m_targetReservedNodeCount; } /** *The count of target reserved nodes in the cluster.
*/ inline bool TargetReservedNodeCountHasBeenSet() const { return m_targetReservedNodeCountHasBeenSet; } /** *The count of target reserved nodes in the cluster.
*/ inline void SetTargetReservedNodeCount(int value) { m_targetReservedNodeCountHasBeenSet = true; m_targetReservedNodeCount = value; } /** *The count of target reserved nodes in the cluster.
*/ inline ReservedNodeExchangeStatus& WithTargetReservedNodeCount(int value) { SetTargetReservedNodeCount(value); return *this;} private: Aws::String m_reservedNodeExchangeRequestId; bool m_reservedNodeExchangeRequestIdHasBeenSet = false; ReservedNodeExchangeStatusType m_status; bool m_statusHasBeenSet = false; Aws::Utils::DateTime m_requestTime; bool m_requestTimeHasBeenSet = false; Aws::String m_sourceReservedNodeId; bool m_sourceReservedNodeIdHasBeenSet = false; Aws::String m_sourceReservedNodeType; bool m_sourceReservedNodeTypeHasBeenSet = false; int m_sourceReservedNodeCount; bool m_sourceReservedNodeCountHasBeenSet = false; Aws::String m_targetReservedNodeOfferingId; bool m_targetReservedNodeOfferingIdHasBeenSet = false; Aws::String m_targetReservedNodeType; bool m_targetReservedNodeTypeHasBeenSet = false; int m_targetReservedNodeCount; bool m_targetReservedNodeCountHasBeenSet = false; }; } // namespace Model } // namespace Redshift } // namespace Aws