/** * 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 SFN { namespace Model { /** */ class SendTaskSuccessRequest : public SFNRequest { public: AWS_SFN_API SendTaskSuccessRequest(); // 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 "SendTaskSuccess"; } AWS_SFN_API Aws::String SerializePayload() const override; AWS_SFN_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The token that represents this task. Task tokens are generated by Step * Functions when tasks are assigned to a worker, or in the context * object when a workflow enters a task state. See * GetActivityTaskOutput$taskToken.

*/ inline const Aws::String& GetTaskToken() const{ return m_taskToken; } /** *

The token that represents this task. Task tokens are generated by Step * Functions when tasks are assigned to a worker, or in the context * object when a workflow enters a task state. See * GetActivityTaskOutput$taskToken.

*/ inline bool TaskTokenHasBeenSet() const { return m_taskTokenHasBeenSet; } /** *

The token that represents this task. Task tokens are generated by Step * Functions when tasks are assigned to a worker, or in the context * object when a workflow enters a task state. See * GetActivityTaskOutput$taskToken.

*/ inline void SetTaskToken(const Aws::String& value) { m_taskTokenHasBeenSet = true; m_taskToken = value; } /** *

The token that represents this task. Task tokens are generated by Step * Functions when tasks are assigned to a worker, or in the context * object when a workflow enters a task state. See * GetActivityTaskOutput$taskToken.

*/ inline void SetTaskToken(Aws::String&& value) { m_taskTokenHasBeenSet = true; m_taskToken = std::move(value); } /** *

The token that represents this task. Task tokens are generated by Step * Functions when tasks are assigned to a worker, or in the context * object when a workflow enters a task state. See * GetActivityTaskOutput$taskToken.

*/ inline void SetTaskToken(const char* value) { m_taskTokenHasBeenSet = true; m_taskToken.assign(value); } /** *

The token that represents this task. Task tokens are generated by Step * Functions when tasks are assigned to a worker, or in the context * object when a workflow enters a task state. See * GetActivityTaskOutput$taskToken.

*/ inline SendTaskSuccessRequest& WithTaskToken(const Aws::String& value) { SetTaskToken(value); return *this;} /** *

The token that represents this task. Task tokens are generated by Step * Functions when tasks are assigned to a worker, or in the context * object when a workflow enters a task state. See * GetActivityTaskOutput$taskToken.

*/ inline SendTaskSuccessRequest& WithTaskToken(Aws::String&& value) { SetTaskToken(std::move(value)); return *this;} /** *

The token that represents this task. Task tokens are generated by Step * Functions when tasks are assigned to a worker, or in the context * object when a workflow enters a task state. See * GetActivityTaskOutput$taskToken.

*/ inline SendTaskSuccessRequest& WithTaskToken(const char* value) { SetTaskToken(value); return *this;} /** *

The JSON output of the task. Length constraints apply to the payload size, * and are expressed as bytes in UTF-8 encoding.

*/ inline const Aws::String& GetOutput() const{ return m_output; } /** *

The JSON output of the task. Length constraints apply to the payload size, * and are expressed as bytes in UTF-8 encoding.

*/ inline bool OutputHasBeenSet() const { return m_outputHasBeenSet; } /** *

The JSON output of the task. Length constraints apply to the payload size, * and are expressed as bytes in UTF-8 encoding.

*/ inline void SetOutput(const Aws::String& value) { m_outputHasBeenSet = true; m_output = value; } /** *

The JSON output of the task. Length constraints apply to the payload size, * and are expressed as bytes in UTF-8 encoding.

*/ inline void SetOutput(Aws::String&& value) { m_outputHasBeenSet = true; m_output = std::move(value); } /** *

The JSON output of the task. Length constraints apply to the payload size, * and are expressed as bytes in UTF-8 encoding.

*/ inline void SetOutput(const char* value) { m_outputHasBeenSet = true; m_output.assign(value); } /** *

The JSON output of the task. Length constraints apply to the payload size, * and are expressed as bytes in UTF-8 encoding.

*/ inline SendTaskSuccessRequest& WithOutput(const Aws::String& value) { SetOutput(value); return *this;} /** *

The JSON output of the task. Length constraints apply to the payload size, * and are expressed as bytes in UTF-8 encoding.

*/ inline SendTaskSuccessRequest& WithOutput(Aws::String&& value) { SetOutput(std::move(value)); return *this;} /** *

The JSON output of the task. Length constraints apply to the payload size, * and are expressed as bytes in UTF-8 encoding.

*/ inline SendTaskSuccessRequest& WithOutput(const char* value) { SetOutput(value); return *this;} private: Aws::String m_taskToken; bool m_taskTokenHasBeenSet = false; Aws::String m_output; bool m_outputHasBeenSet = false; }; } // namespace Model } // namespace SFN } // namespace Aws