/** * 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 IncreaseReplicationFactorRequest : public DAXRequest { public: AWS_DAX_API IncreaseReplicationFactorRequest(); // 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 "IncreaseReplicationFactor"; } AWS_DAX_API Aws::String SerializePayload() const override; AWS_DAX_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of the DAX cluster that will receive additional nodes.

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

The name of the DAX cluster that will receive additional nodes.

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

The name of the DAX cluster that will receive additional nodes.

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

The name of the DAX cluster that will receive additional nodes.

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

The name of the DAX cluster that will receive additional nodes.

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

The name of the DAX cluster that will receive additional nodes.

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

The name of the DAX cluster that will receive additional nodes.

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

The name of the DAX cluster that will receive additional nodes.

*/ inline IncreaseReplicationFactorRequest& 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 IncreaseReplicationFactorRequest& WithNewReplicationFactor(int value) { SetNewReplicationFactor(value); return *this;} /** *

The Availability Zones (AZs) in which the cluster nodes will be created. All * nodes belonging to the cluster are placed in these Availability Zones. Use this * parameter if you want to distribute the nodes across multiple AZs.

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

The Availability Zones (AZs) in which the cluster nodes will be created. All * nodes belonging to the cluster are placed in these Availability Zones. Use this * parameter if you want to distribute the nodes across multiple AZs.

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

The Availability Zones (AZs) in which the cluster nodes will be created. All * nodes belonging to the cluster are placed in these Availability Zones. Use this * parameter if you want to distribute the nodes across multiple AZs.

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

The Availability Zones (AZs) in which the cluster nodes will be created. All * nodes belonging to the cluster are placed in these Availability Zones. Use this * parameter if you want to distribute the nodes across multiple AZs.

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

The Availability Zones (AZs) in which the cluster nodes will be created. All * nodes belonging to the cluster are placed in these Availability Zones. Use this * parameter if you want to distribute the nodes across multiple AZs.

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

The Availability Zones (AZs) in which the cluster nodes will be created. All * nodes belonging to the cluster are placed in these Availability Zones. Use this * parameter if you want to distribute the nodes across multiple AZs.

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

The Availability Zones (AZs) in which the cluster nodes will be created. All * nodes belonging to the cluster are placed in these Availability Zones. Use this * parameter if you want to distribute the nodes across multiple AZs.

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

The Availability Zones (AZs) in which the cluster nodes will be created. All * nodes belonging to the cluster are placed in these Availability Zones. Use this * parameter if you want to distribute the nodes across multiple AZs.

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

The Availability Zones (AZs) in which the cluster nodes will be created. All * nodes belonging to the cluster are placed in these Availability Zones. Use this * parameter if you want to distribute the nodes across multiple AZs.

*/ inline IncreaseReplicationFactorRequest& AddAvailabilityZones(const char* value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.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; }; } // namespace Model } // namespace DAX } // namespace Aws