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

Contains the parameters for DeactivatePipeline.

See Also:

AWS * API Reference

*/ class DeactivatePipelineRequest : public DataPipelineRequest { public: AWS_DATAPIPELINE_API DeactivatePipelineRequest(); // 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 "DeactivatePipeline"; } AWS_DATAPIPELINE_API Aws::String SerializePayload() const override; AWS_DATAPIPELINE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The ID of the pipeline.

*/ inline const Aws::String& GetPipelineId() const{ return m_pipelineId; } /** *

The ID of the pipeline.

*/ inline bool PipelineIdHasBeenSet() const { return m_pipelineIdHasBeenSet; } /** *

The ID of the pipeline.

*/ inline void SetPipelineId(const Aws::String& value) { m_pipelineIdHasBeenSet = true; m_pipelineId = value; } /** *

The ID of the pipeline.

*/ inline void SetPipelineId(Aws::String&& value) { m_pipelineIdHasBeenSet = true; m_pipelineId = std::move(value); } /** *

The ID of the pipeline.

*/ inline void SetPipelineId(const char* value) { m_pipelineIdHasBeenSet = true; m_pipelineId.assign(value); } /** *

The ID of the pipeline.

*/ inline DeactivatePipelineRequest& WithPipelineId(const Aws::String& value) { SetPipelineId(value); return *this;} /** *

The ID of the pipeline.

*/ inline DeactivatePipelineRequest& WithPipelineId(Aws::String&& value) { SetPipelineId(std::move(value)); return *this;} /** *

The ID of the pipeline.

*/ inline DeactivatePipelineRequest& WithPipelineId(const char* value) { SetPipelineId(value); return *this;} /** *

Indicates whether to cancel any running objects. The default is true, which * sets the state of any running objects to CANCELED. If this value is * false, the pipeline is deactivated after all running objects finish.

*/ inline bool GetCancelActive() const{ return m_cancelActive; } /** *

Indicates whether to cancel any running objects. The default is true, which * sets the state of any running objects to CANCELED. If this value is * false, the pipeline is deactivated after all running objects finish.

*/ inline bool CancelActiveHasBeenSet() const { return m_cancelActiveHasBeenSet; } /** *

Indicates whether to cancel any running objects. The default is true, which * sets the state of any running objects to CANCELED. If this value is * false, the pipeline is deactivated after all running objects finish.

*/ inline void SetCancelActive(bool value) { m_cancelActiveHasBeenSet = true; m_cancelActive = value; } /** *

Indicates whether to cancel any running objects. The default is true, which * sets the state of any running objects to CANCELED. If this value is * false, the pipeline is deactivated after all running objects finish.

*/ inline DeactivatePipelineRequest& WithCancelActive(bool value) { SetCancelActive(value); return *this;} private: Aws::String m_pipelineId; bool m_pipelineIdHasBeenSet = false; bool m_cancelActive; bool m_cancelActiveHasBeenSet = false; }; } // namespace Model } // namespace DataPipeline } // namespace Aws