/** * 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 SWF { namespace Model { /** */ class RespondActivityTaskCompletedRequest : public SWFRequest { public: AWS_SWF_API 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_SWF_API Aws::String SerializePayload() const override; AWS_SWF_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The taskToken of the ActivityTask.

* taskToken is generated by the service and should be treated as an * opaque value. If the task is passed to another process, its * taskToken must also be passed. This enables it to provide its * progress and respond with results.

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

The taskToken of the ActivityTask.

* taskToken is generated by the service and should be treated as an * opaque value. If the task is passed to another process, its * taskToken must also be passed. This enables it to provide its * progress and respond with results.

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

The taskToken of the ActivityTask.

* taskToken is generated by the service and should be treated as an * opaque value. If the task is passed to another process, its * taskToken must also be passed. This enables it to provide its * progress and respond with results.

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

The taskToken of the ActivityTask.

* taskToken is generated by the service and should be treated as an * opaque value. If the task is passed to another process, its * taskToken must also be passed. This enables it to provide its * progress and respond with results.

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

The taskToken of the ActivityTask.

* taskToken is generated by the service and should be treated as an * opaque value. If the task is passed to another process, its * taskToken must also be passed. This enables it to provide its * progress and respond with results.

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

The taskToken of the ActivityTask.

* taskToken is generated by the service and should be treated as an * opaque value. If the task is passed to another process, its * taskToken must also be passed. This enables it to provide its * progress and respond with results.

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

The taskToken of the ActivityTask.

* taskToken is generated by the service and should be treated as an * opaque value. If the task is passed to another process, its * taskToken must also be passed. This enables it to provide its * progress and respond with results.

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

The taskToken of the ActivityTask.

* taskToken is generated by the service and should be treated as an * opaque value. If the task is passed to another process, its * taskToken must also be passed. This enables it to provide its * progress and respond with results.

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

The result of the activity task. It is a free form string that is * implementation specific.

*/ inline const Aws::String& GetResult() const{ return m_result; } /** *

The result of the activity task. It is a free form string that is * implementation specific.

*/ inline bool ResultHasBeenSet() const { return m_resultHasBeenSet; } /** *

The result of the activity task. It is a free form string that is * implementation specific.

*/ inline void SetResult(const Aws::String& value) { m_resultHasBeenSet = true; m_result = value; } /** *

The result of the activity task. It is a free form string that is * implementation specific.

*/ inline void SetResult(Aws::String&& value) { m_resultHasBeenSet = true; m_result = std::move(value); } /** *

The result of the activity task. It is a free form string that is * implementation specific.

*/ inline void SetResult(const char* value) { m_resultHasBeenSet = true; m_result.assign(value); } /** *

The result of the activity task. It is a free form string that is * implementation specific.

*/ inline RespondActivityTaskCompletedRequest& WithResult(const Aws::String& value) { SetResult(value); return *this;} /** *

The result of the activity task. It is a free form string that is * implementation specific.

*/ inline RespondActivityTaskCompletedRequest& WithResult(Aws::String&& value) { SetResult(std::move(value)); return *this;} /** *

The result of the activity task. It is a free form string that is * implementation specific.

*/ inline RespondActivityTaskCompletedRequest& WithResult(const char* value) { SetResult(value); return *this;} private: Aws::String m_taskToken; bool m_taskTokenHasBeenSet = false; Aws::String m_result; bool m_resultHasBeenSet = false; }; } // namespace Model } // namespace SWF } // namespace Aws