/** * 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 MTurk { namespace Model { /** */ class UpdateHITReviewStatusRequest : public MTurkRequest { public: AWS_MTURK_API UpdateHITReviewStatusRequest(); // 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 "UpdateHITReviewStatus"; } AWS_MTURK_API Aws::String SerializePayload() const override; AWS_MTURK_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The ID of the HIT to update.

*/ inline const Aws::String& GetHITId() const{ return m_hITId; } /** *

The ID of the HIT to update.

*/ inline bool HITIdHasBeenSet() const { return m_hITIdHasBeenSet; } /** *

The ID of the HIT to update.

*/ inline void SetHITId(const Aws::String& value) { m_hITIdHasBeenSet = true; m_hITId = value; } /** *

The ID of the HIT to update.

*/ inline void SetHITId(Aws::String&& value) { m_hITIdHasBeenSet = true; m_hITId = std::move(value); } /** *

The ID of the HIT to update.

*/ inline void SetHITId(const char* value) { m_hITIdHasBeenSet = true; m_hITId.assign(value); } /** *

The ID of the HIT to update.

*/ inline UpdateHITReviewStatusRequest& WithHITId(const Aws::String& value) { SetHITId(value); return *this;} /** *

The ID of the HIT to update.

*/ inline UpdateHITReviewStatusRequest& WithHITId(Aws::String&& value) { SetHITId(std::move(value)); return *this;} /** *

The ID of the HIT to update.

*/ inline UpdateHITReviewStatusRequest& WithHITId(const char* value) { SetHITId(value); return *this;} /** *

Specifies how to update the HIT status. Default is False.

*
  • Setting this to false will only transition a HIT from * Reviewable to Reviewing

  • Setting * this to true will only transition a HIT from Reviewing to * Reviewable

*/ inline bool GetRevert() const{ return m_revert; } /** *

Specifies how to update the HIT status. Default is False.

*
  • Setting this to false will only transition a HIT from * Reviewable to Reviewing

  • Setting * this to true will only transition a HIT from Reviewing to * Reviewable

*/ inline bool RevertHasBeenSet() const { return m_revertHasBeenSet; } /** *

Specifies how to update the HIT status. Default is False.

*
  • Setting this to false will only transition a HIT from * Reviewable to Reviewing

  • Setting * this to true will only transition a HIT from Reviewing to * Reviewable

*/ inline void SetRevert(bool value) { m_revertHasBeenSet = true; m_revert = value; } /** *

Specifies how to update the HIT status. Default is False.

*
  • Setting this to false will only transition a HIT from * Reviewable to Reviewing

  • Setting * this to true will only transition a HIT from Reviewing to * Reviewable

*/ inline UpdateHITReviewStatusRequest& WithRevert(bool value) { SetRevert(value); return *this;} private: Aws::String m_hITId; bool m_hITIdHasBeenSet = false; bool m_revert; bool m_revertHasBeenSet = false; }; } // namespace Model } // namespace MTurk } // namespace Aws