/** * 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 Transfer { namespace Model { /** */ class SendWorkflowStepStateRequest : public TransferRequest { public: AWS_TRANSFER_API SendWorkflowStepStateRequest(); // 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 "SendWorkflowStepState"; } AWS_TRANSFER_API Aws::String SerializePayload() const override; AWS_TRANSFER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

A unique identifier for the workflow.

*/ inline const Aws::String& GetWorkflowId() const{ return m_workflowId; } /** *

A unique identifier for the workflow.

*/ inline bool WorkflowIdHasBeenSet() const { return m_workflowIdHasBeenSet; } /** *

A unique identifier for the workflow.

*/ inline void SetWorkflowId(const Aws::String& value) { m_workflowIdHasBeenSet = true; m_workflowId = value; } /** *

A unique identifier for the workflow.

*/ inline void SetWorkflowId(Aws::String&& value) { m_workflowIdHasBeenSet = true; m_workflowId = std::move(value); } /** *

A unique identifier for the workflow.

*/ inline void SetWorkflowId(const char* value) { m_workflowIdHasBeenSet = true; m_workflowId.assign(value); } /** *

A unique identifier for the workflow.

*/ inline SendWorkflowStepStateRequest& WithWorkflowId(const Aws::String& value) { SetWorkflowId(value); return *this;} /** *

A unique identifier for the workflow.

*/ inline SendWorkflowStepStateRequest& WithWorkflowId(Aws::String&& value) { SetWorkflowId(std::move(value)); return *this;} /** *

A unique identifier for the workflow.

*/ inline SendWorkflowStepStateRequest& WithWorkflowId(const char* value) { SetWorkflowId(value); return *this;} /** *

A unique identifier for the execution of a workflow.

*/ inline const Aws::String& GetExecutionId() const{ return m_executionId; } /** *

A unique identifier for the execution of a workflow.

*/ inline bool ExecutionIdHasBeenSet() const { return m_executionIdHasBeenSet; } /** *

A unique identifier for the execution of a workflow.

*/ inline void SetExecutionId(const Aws::String& value) { m_executionIdHasBeenSet = true; m_executionId = value; } /** *

A unique identifier for the execution of a workflow.

*/ inline void SetExecutionId(Aws::String&& value) { m_executionIdHasBeenSet = true; m_executionId = std::move(value); } /** *

A unique identifier for the execution of a workflow.

*/ inline void SetExecutionId(const char* value) { m_executionIdHasBeenSet = true; m_executionId.assign(value); } /** *

A unique identifier for the execution of a workflow.

*/ inline SendWorkflowStepStateRequest& WithExecutionId(const Aws::String& value) { SetExecutionId(value); return *this;} /** *

A unique identifier for the execution of a workflow.

*/ inline SendWorkflowStepStateRequest& WithExecutionId(Aws::String&& value) { SetExecutionId(std::move(value)); return *this;} /** *

A unique identifier for the execution of a workflow.

*/ inline SendWorkflowStepStateRequest& WithExecutionId(const char* value) { SetExecutionId(value); return *this;} /** *

Used to distinguish between multiple callbacks for multiple Lambda steps * within the same execution.

*/ inline const Aws::String& GetToken() const{ return m_token; } /** *

Used to distinguish between multiple callbacks for multiple Lambda steps * within the same execution.

*/ inline bool TokenHasBeenSet() const { return m_tokenHasBeenSet; } /** *

Used to distinguish between multiple callbacks for multiple Lambda steps * within the same execution.

*/ inline void SetToken(const Aws::String& value) { m_tokenHasBeenSet = true; m_token = value; } /** *

Used to distinguish between multiple callbacks for multiple Lambda steps * within the same execution.

*/ inline void SetToken(Aws::String&& value) { m_tokenHasBeenSet = true; m_token = std::move(value); } /** *

Used to distinguish between multiple callbacks for multiple Lambda steps * within the same execution.

*/ inline void SetToken(const char* value) { m_tokenHasBeenSet = true; m_token.assign(value); } /** *

Used to distinguish between multiple callbacks for multiple Lambda steps * within the same execution.

*/ inline SendWorkflowStepStateRequest& WithToken(const Aws::String& value) { SetToken(value); return *this;} /** *

Used to distinguish between multiple callbacks for multiple Lambda steps * within the same execution.

*/ inline SendWorkflowStepStateRequest& WithToken(Aws::String&& value) { SetToken(std::move(value)); return *this;} /** *

Used to distinguish between multiple callbacks for multiple Lambda steps * within the same execution.

*/ inline SendWorkflowStepStateRequest& WithToken(const char* value) { SetToken(value); return *this;} /** *

Indicates whether the specified step succeeded or failed.

*/ inline const CustomStepStatus& GetStatus() const{ return m_status; } /** *

Indicates whether the specified step succeeded or failed.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

Indicates whether the specified step succeeded or failed.

*/ inline void SetStatus(const CustomStepStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

Indicates whether the specified step succeeded or failed.

*/ inline void SetStatus(CustomStepStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

Indicates whether the specified step succeeded or failed.

*/ inline SendWorkflowStepStateRequest& WithStatus(const CustomStepStatus& value) { SetStatus(value); return *this;} /** *

Indicates whether the specified step succeeded or failed.

*/ inline SendWorkflowStepStateRequest& WithStatus(CustomStepStatus&& value) { SetStatus(std::move(value)); return *this;} private: Aws::String m_workflowId; bool m_workflowIdHasBeenSet = false; Aws::String m_executionId; bool m_executionIdHasBeenSet = false; Aws::String m_token; bool m_tokenHasBeenSet = false; CustomStepStatus m_status; bool m_statusHasBeenSet = false; }; } // namespace Model } // namespace Transfer } // namespace Aws