/** * 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 RespondActivityTaskCanceledRequest : public SWFRequest { public: AWS_SWF_API RespondActivityTaskCanceledRequest(); // 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 "RespondActivityTaskCanceled"; } 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 RespondActivityTaskCanceledRequest& 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 RespondActivityTaskCanceledRequest& 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 RespondActivityTaskCanceledRequest& WithTaskToken(const char* value) { SetTaskToken(value); return *this;} /** *

Information about the cancellation.

*/ inline const Aws::String& GetDetails() const{ return m_details; } /** *

Information about the cancellation.

*/ inline bool DetailsHasBeenSet() const { return m_detailsHasBeenSet; } /** *

Information about the cancellation.

*/ inline void SetDetails(const Aws::String& value) { m_detailsHasBeenSet = true; m_details = value; } /** *

Information about the cancellation.

*/ inline void SetDetails(Aws::String&& value) { m_detailsHasBeenSet = true; m_details = std::move(value); } /** *

Information about the cancellation.

*/ inline void SetDetails(const char* value) { m_detailsHasBeenSet = true; m_details.assign(value); } /** *

Information about the cancellation.

*/ inline RespondActivityTaskCanceledRequest& WithDetails(const Aws::String& value) { SetDetails(value); return *this;} /** *

Information about the cancellation.

*/ inline RespondActivityTaskCanceledRequest& WithDetails(Aws::String&& value) { SetDetails(std::move(value)); return *this;} /** *

Information about the cancellation.

*/ inline RespondActivityTaskCanceledRequest& WithDetails(const char* value) { SetDetails(value); return *this;} private: Aws::String m_taskToken; bool m_taskTokenHasBeenSet = false; Aws::String m_details; bool m_detailsHasBeenSet = false; }; } // namespace Model } // namespace SWF } // namespace Aws