This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-swf/include/aws/swf/model/RespondActivityTaskCompletedRequest.h

170 lines
6.8 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/swf/SWF_EXPORTS.h>
#include <aws/swf/SWFRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace SWF
{
namespace Model
{
/**
*/
class AWS_SWF_API RespondActivityTaskCompletedRequest : public SWFRequest
{
public:
RespondActivityTaskCompletedRequest();
// 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 "RespondActivityTaskCompleted"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The <code>taskToken</code> of the <a>ActivityTask</a>.</p> <p>
* <code>taskToken</code> is generated by the service and should be treated as an
* opaque value. If the task is passed to another process, its
* <code>taskToken</code> must also be passed. This enables it to provide its
* progress and respond with results.</p>
*/
inline const Aws::String& GetTaskToken() const{ return m_taskToken; }
/**
* <p>The <code>taskToken</code> of the <a>ActivityTask</a>.</p> <p>
* <code>taskToken</code> is generated by the service and should be treated as an
* opaque value. If the task is passed to another process, its
* <code>taskToken</code> must also be passed. This enables it to provide its
* progress and respond with results.</p>
*/
inline bool TaskTokenHasBeenSet() const { return m_taskTokenHasBeenSet; }
/**
* <p>The <code>taskToken</code> of the <a>ActivityTask</a>.</p> <p>
* <code>taskToken</code> is generated by the service and should be treated as an
* opaque value. If the task is passed to another process, its
* <code>taskToken</code> must also be passed. This enables it to provide its
* progress and respond with results.</p>
*/
inline void SetTaskToken(const Aws::String& value) { m_taskTokenHasBeenSet = true; m_taskToken = value; }
/**
* <p>The <code>taskToken</code> of the <a>ActivityTask</a>.</p> <p>
* <code>taskToken</code> is generated by the service and should be treated as an
* opaque value. If the task is passed to another process, its
* <code>taskToken</code> must also be passed. This enables it to provide its
* progress and respond with results.</p>
*/
inline void SetTaskToken(Aws::String&& value) { m_taskTokenHasBeenSet = true; m_taskToken = std::move(value); }
/**
* <p>The <code>taskToken</code> of the <a>ActivityTask</a>.</p> <p>
* <code>taskToken</code> is generated by the service and should be treated as an
* opaque value. If the task is passed to another process, its
* <code>taskToken</code> must also be passed. This enables it to provide its
* progress and respond with results.</p>
*/
inline void SetTaskToken(const char* value) { m_taskTokenHasBeenSet = true; m_taskToken.assign(value); }
/**
* <p>The <code>taskToken</code> of the <a>ActivityTask</a>.</p> <p>
* <code>taskToken</code> is generated by the service and should be treated as an
* opaque value. If the task is passed to another process, its
* <code>taskToken</code> must also be passed. This enables it to provide its
* progress and respond with results.</p>
*/
inline RespondActivityTaskCompletedRequest& WithTaskToken(const Aws::String& value) { SetTaskToken(value); return *this;}
/**
* <p>The <code>taskToken</code> of the <a>ActivityTask</a>.</p> <p>
* <code>taskToken</code> is generated by the service and should be treated as an
* opaque value. If the task is passed to another process, its
* <code>taskToken</code> must also be passed. This enables it to provide its
* progress and respond with results.</p>
*/
inline RespondActivityTaskCompletedRequest& WithTaskToken(Aws::String&& value) { SetTaskToken(std::move(value)); return *this;}
/**
* <p>The <code>taskToken</code> of the <a>ActivityTask</a>.</p> <p>
* <code>taskToken</code> is generated by the service and should be treated as an
* opaque value. If the task is passed to another process, its
* <code>taskToken</code> must also be passed. This enables it to provide its
* progress and respond with results.</p>
*/
inline RespondActivityTaskCompletedRequest& WithTaskToken(const char* value) { SetTaskToken(value); return *this;}
/**
* <p>The result of the activity task. It is a free form string that is
* implementation specific.</p>
*/
inline const Aws::String& GetResult() const{ return m_result; }
/**
* <p>The result of the activity task. It is a free form string that is
* implementation specific.</p>
*/
inline bool ResultHasBeenSet() const { return m_resultHasBeenSet; }
/**
* <p>The result of the activity task. It is a free form string that is
* implementation specific.</p>
*/
inline void SetResult(const Aws::String& value) { m_resultHasBeenSet = true; m_result = value; }
/**
* <p>The result of the activity task. It is a free form string that is
* implementation specific.</p>
*/
inline void SetResult(Aws::String&& value) { m_resultHasBeenSet = true; m_result = std::move(value); }
/**
* <p>The result of the activity task. It is a free form string that is
* implementation specific.</p>
*/
inline void SetResult(const char* value) { m_resultHasBeenSet = true; m_result.assign(value); }
/**
* <p>The result of the activity task. It is a free form string that is
* implementation specific.</p>
*/
inline RespondActivityTaskCompletedRequest& WithResult(const Aws::String& value) { SetResult(value); return *this;}
/**
* <p>The result of the activity task. It is a free form string that is
* implementation specific.</p>
*/
inline RespondActivityTaskCompletedRequest& WithResult(Aws::String&& value) { SetResult(std::move(value)); return *this;}
/**
* <p>The result of the activity task. It is a free form string that is
* implementation specific.</p>
*/
inline RespondActivityTaskCompletedRequest& WithResult(const char* value) { SetResult(value); return *this;}
private:
Aws::String m_taskToken;
bool m_taskTokenHasBeenSet;
Aws::String m_result;
bool m_resultHasBeenSet;
};
} // namespace Model
} // namespace SWF
} // namespace Aws