This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-mturk-requester/include/aws/mturk-requester/model/UpdateHITReviewStatusRequest.h

126 lines
4.3 KiB
C
Raw Normal View History

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/mturk-requester/MTurk_EXPORTS.h>
#include <aws/mturk-requester/MTurkRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace MTurk
{
namespace Model
{
/**
*/
class AWS_MTURK_API UpdateHITReviewStatusRequest : public MTurkRequest
{
public:
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::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p> The ID of the HIT to update. </p>
*/
inline const Aws::String& GetHITId() const{ return m_hITId; }
/**
* <p> The ID of the HIT to update. </p>
*/
inline bool HITIdHasBeenSet() const { return m_hITIdHasBeenSet; }
/**
* <p> The ID of the HIT to update. </p>
*/
inline void SetHITId(const Aws::String& value) { m_hITIdHasBeenSet = true; m_hITId = value; }
/**
* <p> The ID of the HIT to update. </p>
*/
inline void SetHITId(Aws::String&& value) { m_hITIdHasBeenSet = true; m_hITId = std::move(value); }
/**
* <p> The ID of the HIT to update. </p>
*/
inline void SetHITId(const char* value) { m_hITIdHasBeenSet = true; m_hITId.assign(value); }
/**
* <p> The ID of the HIT to update. </p>
*/
inline UpdateHITReviewStatusRequest& WithHITId(const Aws::String& value) { SetHITId(value); return *this;}
/**
* <p> The ID of the HIT to update. </p>
*/
inline UpdateHITReviewStatusRequest& WithHITId(Aws::String&& value) { SetHITId(std::move(value)); return *this;}
/**
* <p> The ID of the HIT to update. </p>
*/
inline UpdateHITReviewStatusRequest& WithHITId(const char* value) { SetHITId(value); return *this;}
/**
* <p> Specifies how to update the HIT status. Default is <code>False</code>. </p>
* <ul> <li> <p> Setting this to false will only transition a HIT from
* <code>Reviewable</code> to <code>Reviewing</code> </p> </li> <li> <p> Setting
* this to true will only transition a HIT from <code>Reviewing</code> to
* <code>Reviewable</code> </p> </li> </ul>
*/
inline bool GetRevert() const{ return m_revert; }
/**
* <p> Specifies how to update the HIT status. Default is <code>False</code>. </p>
* <ul> <li> <p> Setting this to false will only transition a HIT from
* <code>Reviewable</code> to <code>Reviewing</code> </p> </li> <li> <p> Setting
* this to true will only transition a HIT from <code>Reviewing</code> to
* <code>Reviewable</code> </p> </li> </ul>
*/
inline bool RevertHasBeenSet() const { return m_revertHasBeenSet; }
/**
* <p> Specifies how to update the HIT status. Default is <code>False</code>. </p>
* <ul> <li> <p> Setting this to false will only transition a HIT from
* <code>Reviewable</code> to <code>Reviewing</code> </p> </li> <li> <p> Setting
* this to true will only transition a HIT from <code>Reviewing</code> to
* <code>Reviewable</code> </p> </li> </ul>
*/
inline void SetRevert(bool value) { m_revertHasBeenSet = true; m_revert = value; }
/**
* <p> Specifies how to update the HIT status. Default is <code>False</code>. </p>
* <ul> <li> <p> Setting this to false will only transition a HIT from
* <code>Reviewable</code> to <code>Reviewing</code> </p> </li> <li> <p> Setting
* this to true will only transition a HIT from <code>Reviewing</code> to
* <code>Reviewable</code> </p> </li> </ul>
*/
inline UpdateHITReviewStatusRequest& WithRevert(bool value) { SetRevert(value); return *this;}
private:
Aws::String m_hITId;
bool m_hITIdHasBeenSet;
bool m_revert;
bool m_revertHasBeenSet;
};
} // namespace Model
} // namespace MTurk
} // namespace Aws