/** * 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 FSx { namespace Model { /** *

Cancels a data repository task.

See Also:

AWS * API Reference

*/ class CancelDataRepositoryTaskRequest : public FSxRequest { public: AWS_FSX_API CancelDataRepositoryTaskRequest(); // 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 "CancelDataRepositoryTask"; } AWS_FSX_API Aws::String SerializePayload() const override; AWS_FSX_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

Specifies the data repository task to cancel.

*/ inline const Aws::String& GetTaskId() const{ return m_taskId; } /** *

Specifies the data repository task to cancel.

*/ inline bool TaskIdHasBeenSet() const { return m_taskIdHasBeenSet; } /** *

Specifies the data repository task to cancel.

*/ inline void SetTaskId(const Aws::String& value) { m_taskIdHasBeenSet = true; m_taskId = value; } /** *

Specifies the data repository task to cancel.

*/ inline void SetTaskId(Aws::String&& value) { m_taskIdHasBeenSet = true; m_taskId = std::move(value); } /** *

Specifies the data repository task to cancel.

*/ inline void SetTaskId(const char* value) { m_taskIdHasBeenSet = true; m_taskId.assign(value); } /** *

Specifies the data repository task to cancel.

*/ inline CancelDataRepositoryTaskRequest& WithTaskId(const Aws::String& value) { SetTaskId(value); return *this;} /** *

Specifies the data repository task to cancel.

*/ inline CancelDataRepositoryTaskRequest& WithTaskId(Aws::String&& value) { SetTaskId(std::move(value)); return *this;} /** *

Specifies the data repository task to cancel.

*/ inline CancelDataRepositoryTaskRequest& WithTaskId(const char* value) { SetTaskId(value); return *this;} private: Aws::String m_taskId; bool m_taskIdHasBeenSet = false; }; } // namespace Model } // namespace FSx } // namespace Aws