/** * 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 Appflow { namespace Model { /** */ class CancelFlowExecutionsRequest : public AppflowRequest { public: AWS_APPFLOW_API CancelFlowExecutionsRequest(); // 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 "CancelFlowExecutions"; } AWS_APPFLOW_API Aws::String SerializePayload() const override; /** *

The name of a flow with active runs that you want to cancel.

*/ inline const Aws::String& GetFlowName() const{ return m_flowName; } /** *

The name of a flow with active runs that you want to cancel.

*/ inline bool FlowNameHasBeenSet() const { return m_flowNameHasBeenSet; } /** *

The name of a flow with active runs that you want to cancel.

*/ inline void SetFlowName(const Aws::String& value) { m_flowNameHasBeenSet = true; m_flowName = value; } /** *

The name of a flow with active runs that you want to cancel.

*/ inline void SetFlowName(Aws::String&& value) { m_flowNameHasBeenSet = true; m_flowName = std::move(value); } /** *

The name of a flow with active runs that you want to cancel.

*/ inline void SetFlowName(const char* value) { m_flowNameHasBeenSet = true; m_flowName.assign(value); } /** *

The name of a flow with active runs that you want to cancel.

*/ inline CancelFlowExecutionsRequest& WithFlowName(const Aws::String& value) { SetFlowName(value); return *this;} /** *

The name of a flow with active runs that you want to cancel.

*/ inline CancelFlowExecutionsRequest& WithFlowName(Aws::String&& value) { SetFlowName(std::move(value)); return *this;} /** *

The name of a flow with active runs that you want to cancel.

*/ inline CancelFlowExecutionsRequest& WithFlowName(const char* value) { SetFlowName(value); return *this;} /** *

The ID of each active run to cancel. These runs must belong to the flow you * specify in your request.

If you omit this parameter, your request ends * all active runs that belong to the flow.

*/ inline const Aws::Vector& GetExecutionIds() const{ return m_executionIds; } /** *

The ID of each active run to cancel. These runs must belong to the flow you * specify in your request.

If you omit this parameter, your request ends * all active runs that belong to the flow.

*/ inline bool ExecutionIdsHasBeenSet() const { return m_executionIdsHasBeenSet; } /** *

The ID of each active run to cancel. These runs must belong to the flow you * specify in your request.

If you omit this parameter, your request ends * all active runs that belong to the flow.

*/ inline void SetExecutionIds(const Aws::Vector& value) { m_executionIdsHasBeenSet = true; m_executionIds = value; } /** *

The ID of each active run to cancel. These runs must belong to the flow you * specify in your request.

If you omit this parameter, your request ends * all active runs that belong to the flow.

*/ inline void SetExecutionIds(Aws::Vector&& value) { m_executionIdsHasBeenSet = true; m_executionIds = std::move(value); } /** *

The ID of each active run to cancel. These runs must belong to the flow you * specify in your request.

If you omit this parameter, your request ends * all active runs that belong to the flow.

*/ inline CancelFlowExecutionsRequest& WithExecutionIds(const Aws::Vector& value) { SetExecutionIds(value); return *this;} /** *

The ID of each active run to cancel. These runs must belong to the flow you * specify in your request.

If you omit this parameter, your request ends * all active runs that belong to the flow.

*/ inline CancelFlowExecutionsRequest& WithExecutionIds(Aws::Vector&& value) { SetExecutionIds(std::move(value)); return *this;} /** *

The ID of each active run to cancel. These runs must belong to the flow you * specify in your request.

If you omit this parameter, your request ends * all active runs that belong to the flow.

*/ inline CancelFlowExecutionsRequest& AddExecutionIds(const Aws::String& value) { m_executionIdsHasBeenSet = true; m_executionIds.push_back(value); return *this; } /** *

The ID of each active run to cancel. These runs must belong to the flow you * specify in your request.

If you omit this parameter, your request ends * all active runs that belong to the flow.

*/ inline CancelFlowExecutionsRequest& AddExecutionIds(Aws::String&& value) { m_executionIdsHasBeenSet = true; m_executionIds.push_back(std::move(value)); return *this; } /** *

The ID of each active run to cancel. These runs must belong to the flow you * specify in your request.

If you omit this parameter, your request ends * all active runs that belong to the flow.

*/ inline CancelFlowExecutionsRequest& AddExecutionIds(const char* value) { m_executionIdsHasBeenSet = true; m_executionIds.push_back(value); return *this; } private: Aws::String m_flowName; bool m_flowNameHasBeenSet = false; Aws::Vector m_executionIds; bool m_executionIdsHasBeenSet = false; }; } // namespace Model } // namespace Appflow } // namespace Aws