/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace DataPipeline { namespace Model { /** *

Contains the parameters for SetStatus.

See Also:

AWS * API Reference

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

The ID of the pipeline that contains the objects.

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

The ID of the pipeline that contains the objects.

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

The ID of the pipeline that contains the objects.

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

The ID of the pipeline that contains the objects.

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

The ID of the pipeline that contains the objects.

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

The ID of the pipeline that contains the objects.

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

The ID of the pipeline that contains the objects.

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

The ID of the pipeline that contains the objects.

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

The IDs of the objects. The corresponding objects can be either physical or * components, but not a mix of both types.

*/ inline const Aws::Vector& GetObjectIds() const{ return m_objectIds; } /** *

The IDs of the objects. The corresponding objects can be either physical or * components, but not a mix of both types.

*/ inline bool ObjectIdsHasBeenSet() const { return m_objectIdsHasBeenSet; } /** *

The IDs of the objects. The corresponding objects can be either physical or * components, but not a mix of both types.

*/ inline void SetObjectIds(const Aws::Vector& value) { m_objectIdsHasBeenSet = true; m_objectIds = value; } /** *

The IDs of the objects. The corresponding objects can be either physical or * components, but not a mix of both types.

*/ inline void SetObjectIds(Aws::Vector&& value) { m_objectIdsHasBeenSet = true; m_objectIds = std::move(value); } /** *

The IDs of the objects. The corresponding objects can be either physical or * components, but not a mix of both types.

*/ inline SetStatusRequest& WithObjectIds(const Aws::Vector& value) { SetObjectIds(value); return *this;} /** *

The IDs of the objects. The corresponding objects can be either physical or * components, but not a mix of both types.

*/ inline SetStatusRequest& WithObjectIds(Aws::Vector&& value) { SetObjectIds(std::move(value)); return *this;} /** *

The IDs of the objects. The corresponding objects can be either physical or * components, but not a mix of both types.

*/ inline SetStatusRequest& AddObjectIds(const Aws::String& value) { m_objectIdsHasBeenSet = true; m_objectIds.push_back(value); return *this; } /** *

The IDs of the objects. The corresponding objects can be either physical or * components, but not a mix of both types.

*/ inline SetStatusRequest& AddObjectIds(Aws::String&& value) { m_objectIdsHasBeenSet = true; m_objectIds.push_back(std::move(value)); return *this; } /** *

The IDs of the objects. The corresponding objects can be either physical or * components, but not a mix of both types.

*/ inline SetStatusRequest& AddObjectIds(const char* value) { m_objectIdsHasBeenSet = true; m_objectIds.push_back(value); return *this; } /** *

The status to be set on all the objects specified in objectIds. * For components, use PAUSE or RESUME. For instances, * use TRY_CANCEL, RERUN, or * MARK_FINISHED.

*/ inline const Aws::String& GetStatus() const{ return m_status; } /** *

The status to be set on all the objects specified in objectIds. * For components, use PAUSE or RESUME. For instances, * use TRY_CANCEL, RERUN, or * MARK_FINISHED.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The status to be set on all the objects specified in objectIds. * For components, use PAUSE or RESUME. For instances, * use TRY_CANCEL, RERUN, or * MARK_FINISHED.

*/ inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The status to be set on all the objects specified in objectIds. * For components, use PAUSE or RESUME. For instances, * use TRY_CANCEL, RERUN, or * MARK_FINISHED.

*/ inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The status to be set on all the objects specified in objectIds. * For components, use PAUSE or RESUME. For instances, * use TRY_CANCEL, RERUN, or * MARK_FINISHED.

*/ inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); } /** *

The status to be set on all the objects specified in objectIds. * For components, use PAUSE or RESUME. For instances, * use TRY_CANCEL, RERUN, or * MARK_FINISHED.

*/ inline SetStatusRequest& WithStatus(const Aws::String& value) { SetStatus(value); return *this;} /** *

The status to be set on all the objects specified in objectIds. * For components, use PAUSE or RESUME. For instances, * use TRY_CANCEL, RERUN, or * MARK_FINISHED.

*/ inline SetStatusRequest& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;} /** *

The status to be set on all the objects specified in objectIds. * For components, use PAUSE or RESUME. For instances, * use TRY_CANCEL, RERUN, or * MARK_FINISHED.

*/ inline SetStatusRequest& WithStatus(const char* value) { SetStatus(value); return *this;} private: Aws::String m_pipelineId; bool m_pipelineIdHasBeenSet = false; Aws::Vector m_objectIds; bool m_objectIdsHasBeenSet = false; Aws::String m_status; bool m_statusHasBeenSet = false; }; } // namespace Model } // namespace DataPipeline } // namespace Aws