/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace DAX { namespace Model { /** */ class RebootNodeRequest : public DAXRequest { public: AWS_DAX_API RebootNodeRequest(); // 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 "RebootNode"; } AWS_DAX_API Aws::String SerializePayload() const override; AWS_DAX_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of the DAX cluster containing the node to be rebooted.

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

The name of the DAX cluster containing the node to be rebooted.

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

The name of the DAX cluster containing the node to be rebooted.

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

The name of the DAX cluster containing the node to be rebooted.

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

The name of the DAX cluster containing the node to be rebooted.

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

The name of the DAX cluster containing the node to be rebooted.

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

The name of the DAX cluster containing the node to be rebooted.

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

The name of the DAX cluster containing the node to be rebooted.

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

The system-assigned ID of the node to be rebooted.

*/ inline const Aws::String& GetNodeId() const{ return m_nodeId; } /** *

The system-assigned ID of the node to be rebooted.

*/ inline bool NodeIdHasBeenSet() const { return m_nodeIdHasBeenSet; } /** *

The system-assigned ID of the node to be rebooted.

*/ inline void SetNodeId(const Aws::String& value) { m_nodeIdHasBeenSet = true; m_nodeId = value; } /** *

The system-assigned ID of the node to be rebooted.

*/ inline void SetNodeId(Aws::String&& value) { m_nodeIdHasBeenSet = true; m_nodeId = std::move(value); } /** *

The system-assigned ID of the node to be rebooted.

*/ inline void SetNodeId(const char* value) { m_nodeIdHasBeenSet = true; m_nodeId.assign(value); } /** *

The system-assigned ID of the node to be rebooted.

*/ inline RebootNodeRequest& WithNodeId(const Aws::String& value) { SetNodeId(value); return *this;} /** *

The system-assigned ID of the node to be rebooted.

*/ inline RebootNodeRequest& WithNodeId(Aws::String&& value) { SetNodeId(std::move(value)); return *this;} /** *

The system-assigned ID of the node to be rebooted.

*/ inline RebootNodeRequest& WithNodeId(const char* value) { SetNodeId(value); return *this;} private: Aws::String m_clusterName; bool m_clusterNameHasBeenSet = false; Aws::String m_nodeId; bool m_nodeIdHasBeenSet = false; }; } // namespace Model } // namespace DAX } // namespace Aws