/** * 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 Glue { namespace Model { /** */ class ResumeWorkflowRunRequest : public GlueRequest { public: AWS_GLUE_API ResumeWorkflowRunRequest(); // 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 "ResumeWorkflowRun"; } AWS_GLUE_API Aws::String SerializePayload() const override; AWS_GLUE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of the workflow to resume.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the workflow to resume.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the workflow to resume.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the workflow to resume.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the workflow to resume.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the workflow to resume.

*/ inline ResumeWorkflowRunRequest& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the workflow to resume.

*/ inline ResumeWorkflowRunRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the workflow to resume.

*/ inline ResumeWorkflowRunRequest& WithName(const char* value) { SetName(value); return *this;} /** *

The ID of the workflow run to resume.

*/ inline const Aws::String& GetRunId() const{ return m_runId; } /** *

The ID of the workflow run to resume.

*/ inline bool RunIdHasBeenSet() const { return m_runIdHasBeenSet; } /** *

The ID of the workflow run to resume.

*/ inline void SetRunId(const Aws::String& value) { m_runIdHasBeenSet = true; m_runId = value; } /** *

The ID of the workflow run to resume.

*/ inline void SetRunId(Aws::String&& value) { m_runIdHasBeenSet = true; m_runId = std::move(value); } /** *

The ID of the workflow run to resume.

*/ inline void SetRunId(const char* value) { m_runIdHasBeenSet = true; m_runId.assign(value); } /** *

The ID of the workflow run to resume.

*/ inline ResumeWorkflowRunRequest& WithRunId(const Aws::String& value) { SetRunId(value); return *this;} /** *

The ID of the workflow run to resume.

*/ inline ResumeWorkflowRunRequest& WithRunId(Aws::String&& value) { SetRunId(std::move(value)); return *this;} /** *

The ID of the workflow run to resume.

*/ inline ResumeWorkflowRunRequest& WithRunId(const char* value) { SetRunId(value); return *this;} /** *

A list of the node IDs for the nodes you want to restart. The nodes that are * to be restarted must have a run attempt in the original run.

*/ inline const Aws::Vector& GetNodeIds() const{ return m_nodeIds; } /** *

A list of the node IDs for the nodes you want to restart. The nodes that are * to be restarted must have a run attempt in the original run.

*/ inline bool NodeIdsHasBeenSet() const { return m_nodeIdsHasBeenSet; } /** *

A list of the node IDs for the nodes you want to restart. The nodes that are * to be restarted must have a run attempt in the original run.

*/ inline void SetNodeIds(const Aws::Vector& value) { m_nodeIdsHasBeenSet = true; m_nodeIds = value; } /** *

A list of the node IDs for the nodes you want to restart. The nodes that are * to be restarted must have a run attempt in the original run.

*/ inline void SetNodeIds(Aws::Vector&& value) { m_nodeIdsHasBeenSet = true; m_nodeIds = std::move(value); } /** *

A list of the node IDs for the nodes you want to restart. The nodes that are * to be restarted must have a run attempt in the original run.

*/ inline ResumeWorkflowRunRequest& WithNodeIds(const Aws::Vector& value) { SetNodeIds(value); return *this;} /** *

A list of the node IDs for the nodes you want to restart. The nodes that are * to be restarted must have a run attempt in the original run.

*/ inline ResumeWorkflowRunRequest& WithNodeIds(Aws::Vector&& value) { SetNodeIds(std::move(value)); return *this;} /** *

A list of the node IDs for the nodes you want to restart. The nodes that are * to be restarted must have a run attempt in the original run.

*/ inline ResumeWorkflowRunRequest& AddNodeIds(const Aws::String& value) { m_nodeIdsHasBeenSet = true; m_nodeIds.push_back(value); return *this; } /** *

A list of the node IDs for the nodes you want to restart. The nodes that are * to be restarted must have a run attempt in the original run.

*/ inline ResumeWorkflowRunRequest& AddNodeIds(Aws::String&& value) { m_nodeIdsHasBeenSet = true; m_nodeIds.push_back(std::move(value)); return *this; } /** *

A list of the node IDs for the nodes you want to restart. The nodes that are * to be restarted must have a run attempt in the original run.

*/ inline ResumeWorkflowRunRequest& AddNodeIds(const char* value) { m_nodeIdsHasBeenSet = true; m_nodeIds.push_back(value); return *this; } private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_runId; bool m_runIdHasBeenSet = false; Aws::Vector m_nodeIds; bool m_nodeIdsHasBeenSet = false; }; } // namespace Model } // namespace Glue } // namespace Aws