/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace DAX { namespace Model { /** */ class DecreaseReplicationFactorRequest : public DAXRequest { public: AWS_DAX_API DecreaseReplicationFactorRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "DecreaseReplicationFactor"; } AWS_DAX_API Aws::String SerializePayload() const override; AWS_DAX_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of the DAX cluster from which you want to remove nodes.

*/ inline const Aws::String& GetClusterName() const{ return m_clusterName; } /** *

The name of the DAX cluster from which you want to remove nodes.

*/ inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; } /** *

The name of the DAX cluster from which you want to remove nodes.

*/ inline void SetClusterName(const Aws::String& value) { m_clusterNameHasBeenSet = true; m_clusterName = value; } /** *

The name of the DAX cluster from which you want to remove nodes.

*/ inline void SetClusterName(Aws::String&& value) { m_clusterNameHasBeenSet = true; m_clusterName = std::move(value); } /** *

The name of the DAX cluster from which you want to remove nodes.

*/ inline void SetClusterName(const char* value) { m_clusterNameHasBeenSet = true; m_clusterName.assign(value); } /** *

The name of the DAX cluster from which you want to remove nodes.

*/ inline DecreaseReplicationFactorRequest& WithClusterName(const Aws::String& value) { SetClusterName(value); return *this;} /** *

The name of the DAX cluster from which you want to remove nodes.

*/ inline DecreaseReplicationFactorRequest& WithClusterName(Aws::String&& value) { SetClusterName(std::move(value)); return *this;} /** *

The name of the DAX cluster from which you want to remove nodes.

*/ inline DecreaseReplicationFactorRequest& WithClusterName(const char* value) { SetClusterName(value); return *this;} /** *

The new number of nodes for the DAX cluster.

*/ inline int GetNewReplicationFactor() const{ return m_newReplicationFactor; } /** *

The new number of nodes for the DAX cluster.

*/ inline bool NewReplicationFactorHasBeenSet() const { return m_newReplicationFactorHasBeenSet; } /** *

The new number of nodes for the DAX cluster.

*/ inline void SetNewReplicationFactor(int value) { m_newReplicationFactorHasBeenSet = true; m_newReplicationFactor = value; } /** *

The new number of nodes for the DAX cluster.

*/ inline DecreaseReplicationFactorRequest& WithNewReplicationFactor(int value) { SetNewReplicationFactor(value); return *this;} /** *

The Availability Zone(s) from which to remove nodes.

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

The Availability Zone(s) from which to remove nodes.

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

The Availability Zone(s) from which to remove nodes.

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

The Availability Zone(s) from which to remove nodes.

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

The Availability Zone(s) from which to remove nodes.

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

The Availability Zone(s) from which to remove nodes.

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

The Availability Zone(s) from which to remove nodes.

*/ inline DecreaseReplicationFactorRequest& AddAvailabilityZones(const Aws::String& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.push_back(value); return *this; } /** *

The Availability Zone(s) from which to remove nodes.

*/ inline DecreaseReplicationFactorRequest& AddAvailabilityZones(Aws::String&& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.push_back(std::move(value)); return *this; } /** *

The Availability Zone(s) from which to remove nodes.

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

The unique identifiers of the nodes to be removed from the cluster.

*/ inline const Aws::Vector& GetNodeIdsToRemove() const{ return m_nodeIdsToRemove; } /** *

The unique identifiers of the nodes to be removed from the cluster.

*/ inline bool NodeIdsToRemoveHasBeenSet() const { return m_nodeIdsToRemoveHasBeenSet; } /** *

The unique identifiers of the nodes to be removed from the cluster.

*/ inline void SetNodeIdsToRemove(const Aws::Vector& value) { m_nodeIdsToRemoveHasBeenSet = true; m_nodeIdsToRemove = value; } /** *

The unique identifiers of the nodes to be removed from the cluster.

*/ inline void SetNodeIdsToRemove(Aws::Vector&& value) { m_nodeIdsToRemoveHasBeenSet = true; m_nodeIdsToRemove = std::move(value); } /** *

The unique identifiers of the nodes to be removed from the cluster.

*/ inline DecreaseReplicationFactorRequest& WithNodeIdsToRemove(const Aws::Vector& value) { SetNodeIdsToRemove(value); return *this;} /** *

The unique identifiers of the nodes to be removed from the cluster.

*/ inline DecreaseReplicationFactorRequest& WithNodeIdsToRemove(Aws::Vector&& value) { SetNodeIdsToRemove(std::move(value)); return *this;} /** *

The unique identifiers of the nodes to be removed from the cluster.

*/ inline DecreaseReplicationFactorRequest& AddNodeIdsToRemove(const Aws::String& value) { m_nodeIdsToRemoveHasBeenSet = true; m_nodeIdsToRemove.push_back(value); return *this; } /** *

The unique identifiers of the nodes to be removed from the cluster.

*/ inline DecreaseReplicationFactorRequest& AddNodeIdsToRemove(Aws::String&& value) { m_nodeIdsToRemoveHasBeenSet = true; m_nodeIdsToRemove.push_back(std::move(value)); return *this; } /** *

The unique identifiers of the nodes to be removed from the cluster.

*/ inline DecreaseReplicationFactorRequest& AddNodeIdsToRemove(const char* value) { m_nodeIdsToRemoveHasBeenSet = true; m_nodeIdsToRemove.push_back(value); return *this; } private: Aws::String m_clusterName; bool m_clusterNameHasBeenSet = false; int m_newReplicationFactor; bool m_newReplicationFactorHasBeenSet = false; Aws::Vector m_availabilityZones; bool m_availabilityZonesHasBeenSet = false; Aws::Vector m_nodeIdsToRemove; bool m_nodeIdsToRemoveHasBeenSet = false; }; } // namespace Model } // namespace DAX } // namespace Aws