162 lines
6.2 KiB
C++
162 lines
6.2 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/states/SFN_EXPORTS.h>
|
|
#include <aws/states/SFNRequest.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace SFN
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
*/
|
|
class AWS_SFN_API SendTaskSuccessRequest : public SFNRequest
|
|
{
|
|
public:
|
|
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::String SerializePayload() const override;
|
|
|
|
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
|
|
|
|
|
|
/**
|
|
* <p>The token that represents this task. Task tokens are generated by Step
|
|
* Functions when tasks are assigned to a worker, or in the <a
|
|
* href="https://docs.aws.amazon.com/step-functions/latest/dg/input-output-contextobject.html">context
|
|
* object</a> when a workflow enters a task state. See
|
|
* <a>GetActivityTaskOutput$taskToken</a>.</p>
|
|
*/
|
|
inline const Aws::String& GetTaskToken() const{ return m_taskToken; }
|
|
|
|
/**
|
|
* <p>The token that represents this task. Task tokens are generated by Step
|
|
* Functions when tasks are assigned to a worker, or in the <a
|
|
* href="https://docs.aws.amazon.com/step-functions/latest/dg/input-output-contextobject.html">context
|
|
* object</a> when a workflow enters a task state. See
|
|
* <a>GetActivityTaskOutput$taskToken</a>.</p>
|
|
*/
|
|
inline bool TaskTokenHasBeenSet() const { return m_taskTokenHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The token that represents this task. Task tokens are generated by Step
|
|
* Functions when tasks are assigned to a worker, or in the <a
|
|
* href="https://docs.aws.amazon.com/step-functions/latest/dg/input-output-contextobject.html">context
|
|
* object</a> when a workflow enters a task state. See
|
|
* <a>GetActivityTaskOutput$taskToken</a>.</p>
|
|
*/
|
|
inline void SetTaskToken(const Aws::String& value) { m_taskTokenHasBeenSet = true; m_taskToken = value; }
|
|
|
|
/**
|
|
* <p>The token that represents this task. Task tokens are generated by Step
|
|
* Functions when tasks are assigned to a worker, or in the <a
|
|
* href="https://docs.aws.amazon.com/step-functions/latest/dg/input-output-contextobject.html">context
|
|
* object</a> when a workflow enters a task state. See
|
|
* <a>GetActivityTaskOutput$taskToken</a>.</p>
|
|
*/
|
|
inline void SetTaskToken(Aws::String&& value) { m_taskTokenHasBeenSet = true; m_taskToken = std::move(value); }
|
|
|
|
/**
|
|
* <p>The token that represents this task. Task tokens are generated by Step
|
|
* Functions when tasks are assigned to a worker, or in the <a
|
|
* href="https://docs.aws.amazon.com/step-functions/latest/dg/input-output-contextobject.html">context
|
|
* object</a> when a workflow enters a task state. See
|
|
* <a>GetActivityTaskOutput$taskToken</a>.</p>
|
|
*/
|
|
inline void SetTaskToken(const char* value) { m_taskTokenHasBeenSet = true; m_taskToken.assign(value); }
|
|
|
|
/**
|
|
* <p>The token that represents this task. Task tokens are generated by Step
|
|
* Functions when tasks are assigned to a worker, or in the <a
|
|
* href="https://docs.aws.amazon.com/step-functions/latest/dg/input-output-contextobject.html">context
|
|
* object</a> when a workflow enters a task state. See
|
|
* <a>GetActivityTaskOutput$taskToken</a>.</p>
|
|
*/
|
|
inline SendTaskSuccessRequest& WithTaskToken(const Aws::String& value) { SetTaskToken(value); return *this;}
|
|
|
|
/**
|
|
* <p>The token that represents this task. Task tokens are generated by Step
|
|
* Functions when tasks are assigned to a worker, or in the <a
|
|
* href="https://docs.aws.amazon.com/step-functions/latest/dg/input-output-contextobject.html">context
|
|
* object</a> when a workflow enters a task state. See
|
|
* <a>GetActivityTaskOutput$taskToken</a>.</p>
|
|
*/
|
|
inline SendTaskSuccessRequest& WithTaskToken(Aws::String&& value) { SetTaskToken(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The token that represents this task. Task tokens are generated by Step
|
|
* Functions when tasks are assigned to a worker, or in the <a
|
|
* href="https://docs.aws.amazon.com/step-functions/latest/dg/input-output-contextobject.html">context
|
|
* object</a> when a workflow enters a task state. See
|
|
* <a>GetActivityTaskOutput$taskToken</a>.</p>
|
|
*/
|
|
inline SendTaskSuccessRequest& WithTaskToken(const char* value) { SetTaskToken(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The JSON output of the task.</p>
|
|
*/
|
|
inline const Aws::String& GetOutput() const{ return m_output; }
|
|
|
|
/**
|
|
* <p>The JSON output of the task.</p>
|
|
*/
|
|
inline bool OutputHasBeenSet() const { return m_outputHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The JSON output of the task.</p>
|
|
*/
|
|
inline void SetOutput(const Aws::String& value) { m_outputHasBeenSet = true; m_output = value; }
|
|
|
|
/**
|
|
* <p>The JSON output of the task.</p>
|
|
*/
|
|
inline void SetOutput(Aws::String&& value) { m_outputHasBeenSet = true; m_output = std::move(value); }
|
|
|
|
/**
|
|
* <p>The JSON output of the task.</p>
|
|
*/
|
|
inline void SetOutput(const char* value) { m_outputHasBeenSet = true; m_output.assign(value); }
|
|
|
|
/**
|
|
* <p>The JSON output of the task.</p>
|
|
*/
|
|
inline SendTaskSuccessRequest& WithOutput(const Aws::String& value) { SetOutput(value); return *this;}
|
|
|
|
/**
|
|
* <p>The JSON output of the task.</p>
|
|
*/
|
|
inline SendTaskSuccessRequest& WithOutput(Aws::String&& value) { SetOutput(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The JSON output of the task.</p>
|
|
*/
|
|
inline SendTaskSuccessRequest& WithOutput(const char* value) { SetOutput(value); return *this;}
|
|
|
|
private:
|
|
|
|
Aws::String m_taskToken;
|
|
bool m_taskTokenHasBeenSet;
|
|
|
|
Aws::String m_output;
|
|
bool m_outputHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace SFN
|
|
} // namespace Aws
|