feat(hos_client_create, hos_client_destory): 多次调用destory不会导致重复释放

This commit is contained in:
彭宣正
2020-12-14 17:24:58 +08:00
parent 505d529c32
commit 10b370e486
55976 changed files with 8544395 additions and 2 deletions

View File

@@ -0,0 +1,21 @@
/**
* 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/core/Region.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace MTurk
{
namespace MTurkEndpoint
{
AWS_MTURK_API Aws::String ForRegion(const Aws::String& regionName, bool useDualStack = false);
} // namespace MTurkEndpoint
} // namespace MTurk
} // namespace Aws

View File

@@ -0,0 +1,23 @@
/**
* 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/core/client/AWSErrorMarshaller.h>
namespace Aws
{
namespace Client
{
class AWS_MTURK_API MTurkErrorMarshaller : public Aws::Client::JsonErrorMarshaller
{
public:
Aws::Client::AWSError<Aws::Client::CoreErrors> FindErrorByName(const char* exceptionName) const override;
};
} // namespace Client
} // namespace Aws

View File

@@ -0,0 +1,73 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/core/client/AWSError.h>
#include <aws/core/client/CoreErrors.h>
#include <aws/mturk-requester/MTurk_EXPORTS.h>
namespace Aws
{
namespace MTurk
{
enum class MTurkErrors
{
//From Core//
//////////////////////////////////////////////////////////////////////////////////////////
INCOMPLETE_SIGNATURE = 0,
INTERNAL_FAILURE = 1,
INVALID_ACTION = 2,
INVALID_CLIENT_TOKEN_ID = 3,
INVALID_PARAMETER_COMBINATION = 4,
INVALID_QUERY_PARAMETER = 5,
INVALID_PARAMETER_VALUE = 6,
MISSING_ACTION = 7, // SDK should never allow
MISSING_AUTHENTICATION_TOKEN = 8, // SDK should never allow
MISSING_PARAMETER = 9, // SDK should never allow
OPT_IN_REQUIRED = 10,
REQUEST_EXPIRED = 11,
SERVICE_UNAVAILABLE = 12,
THROTTLING = 13,
VALIDATION = 14,
ACCESS_DENIED = 15,
RESOURCE_NOT_FOUND = 16,
UNRECOGNIZED_CLIENT = 17,
MALFORMED_QUERY_STRING = 18,
SLOW_DOWN = 19,
REQUEST_TIME_TOO_SKEWED = 20,
INVALID_SIGNATURE = 21,
SIGNATURE_DOES_NOT_MATCH = 22,
INVALID_ACCESS_KEY_ID = 23,
REQUEST_TIMEOUT = 24,
NETWORK_CONNECTION = 99,
UNKNOWN = 100,
///////////////////////////////////////////////////////////////////////////////////////////
REQUEST= static_cast<int>(Aws::Client::CoreErrors::SERVICE_EXTENSION_START_RANGE) + 1,
SERVICE_FAULT
};
class AWS_MTURK_API MTurkError : public Aws::Client::AWSError<MTurkErrors>
{
public:
MTurkError() {}
MTurkError(const Aws::Client::AWSError<Aws::Client::CoreErrors>& rhs) : Aws::Client::AWSError<MTurkErrors>(rhs) {}
MTurkError(Aws::Client::AWSError<Aws::Client::CoreErrors>&& rhs) : Aws::Client::AWSError<MTurkErrors>(rhs) {}
MTurkError(const Aws::Client::AWSError<MTurkErrors>& rhs) : Aws::Client::AWSError<MTurkErrors>(rhs) {}
MTurkError(Aws::Client::AWSError<MTurkErrors>&& rhs) : Aws::Client::AWSError<MTurkErrors>(rhs) {}
template <typename T>
T GetModeledError();
};
namespace MTurkErrorMapper
{
AWS_MTURK_API Aws::Client::AWSError<Aws::Client::CoreErrors> GetErrorForName(const char* errorName);
}
} // namespace MTurk
} // namespace Aws

View File

@@ -0,0 +1,42 @@
/**
* 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/core/AmazonSerializableWebServiceRequest.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <aws/core/http/HttpRequest.h>
namespace Aws
{
namespace MTurk
{
class AWS_MTURK_API MTurkRequest : public Aws::AmazonSerializableWebServiceRequest
{
public:
virtual ~MTurkRequest () {}
void AddParametersToRequest(Aws::Http::HttpRequest& httpRequest) const { AWS_UNREFERENCED_PARAM(httpRequest); }
inline Aws::Http::HeaderValueCollection GetHeaders() const override
{
auto headers = GetRequestSpecificHeaders();
if(headers.size() == 0 || (headers.size() > 0 && headers.count(Aws::Http::CONTENT_TYPE_HEADER) == 0))
{
headers.emplace(Aws::Http::HeaderValuePair(Aws::Http::CONTENT_TYPE_HEADER, Aws::AMZN_JSON_CONTENT_TYPE_1_1 ));
}
headers.emplace(Aws::Http::HeaderValuePair(Aws::Http::API_VERSION_HEADER, "2017-01-17"));
return headers;
}
protected:
virtual Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const { return Aws::Http::HeaderValueCollection(); }
};
} // namespace MTurk
} // namespace Aws

View File

@@ -0,0 +1,29 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#ifdef _MSC_VER
//disable windows complaining about max template size.
#pragma warning (disable : 4503)
#endif // _MSC_VER
#if defined (USE_WINDOWS_DLL_SEMANTICS) || defined (_WIN32)
#ifdef _MSC_VER
#pragma warning(disable : 4251)
#endif // _MSC_VER
#ifdef USE_IMPORT_EXPORT
#ifdef AWS_MTURK_EXPORTS
#define AWS_MTURK_API __declspec(dllexport)
#else
#define AWS_MTURK_API __declspec(dllimport)
#endif /* AWS_MTURK_EXPORTS */
#else
#define AWS_MTURK_API
#endif // USE_IMPORT_EXPORT
#else // defined (USE_WINDOWS_DLL_SEMANTICS) || defined (WIN32)
#define AWS_MTURK_API
#endif // defined (USE_WINDOWS_DLL_SEMANTICS) || defined (WIN32)

View File

@@ -0,0 +1,125 @@
/**
* 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 AcceptQualificationRequestRequest : public MTurkRequest
{
public:
AcceptQualificationRequestRequest();
// 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 "AcceptQualificationRequest"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The ID of the Qualification request, as returned by the
* <code>GetQualificationRequests</code> operation.</p>
*/
inline const Aws::String& GetQualificationRequestId() const{ return m_qualificationRequestId; }
/**
* <p>The ID of the Qualification request, as returned by the
* <code>GetQualificationRequests</code> operation.</p>
*/
inline bool QualificationRequestIdHasBeenSet() const { return m_qualificationRequestIdHasBeenSet; }
/**
* <p>The ID of the Qualification request, as returned by the
* <code>GetQualificationRequests</code> operation.</p>
*/
inline void SetQualificationRequestId(const Aws::String& value) { m_qualificationRequestIdHasBeenSet = true; m_qualificationRequestId = value; }
/**
* <p>The ID of the Qualification request, as returned by the
* <code>GetQualificationRequests</code> operation.</p>
*/
inline void SetQualificationRequestId(Aws::String&& value) { m_qualificationRequestIdHasBeenSet = true; m_qualificationRequestId = std::move(value); }
/**
* <p>The ID of the Qualification request, as returned by the
* <code>GetQualificationRequests</code> operation.</p>
*/
inline void SetQualificationRequestId(const char* value) { m_qualificationRequestIdHasBeenSet = true; m_qualificationRequestId.assign(value); }
/**
* <p>The ID of the Qualification request, as returned by the
* <code>GetQualificationRequests</code> operation.</p>
*/
inline AcceptQualificationRequestRequest& WithQualificationRequestId(const Aws::String& value) { SetQualificationRequestId(value); return *this;}
/**
* <p>The ID of the Qualification request, as returned by the
* <code>GetQualificationRequests</code> operation.</p>
*/
inline AcceptQualificationRequestRequest& WithQualificationRequestId(Aws::String&& value) { SetQualificationRequestId(std::move(value)); return *this;}
/**
* <p>The ID of the Qualification request, as returned by the
* <code>GetQualificationRequests</code> operation.</p>
*/
inline AcceptQualificationRequestRequest& WithQualificationRequestId(const char* value) { SetQualificationRequestId(value); return *this;}
/**
* <p> The value of the Qualification. You can omit this value if you are using the
* presence or absence of the Qualification as the basis for a HIT requirement.
* </p>
*/
inline int GetIntegerValue() const{ return m_integerValue; }
/**
* <p> The value of the Qualification. You can omit this value if you are using the
* presence or absence of the Qualification as the basis for a HIT requirement.
* </p>
*/
inline bool IntegerValueHasBeenSet() const { return m_integerValueHasBeenSet; }
/**
* <p> The value of the Qualification. You can omit this value if you are using the
* presence or absence of the Qualification as the basis for a HIT requirement.
* </p>
*/
inline void SetIntegerValue(int value) { m_integerValueHasBeenSet = true; m_integerValue = value; }
/**
* <p> The value of the Qualification. You can omit this value if you are using the
* presence or absence of the Qualification as the basis for a HIT requirement.
* </p>
*/
inline AcceptQualificationRequestRequest& WithIntegerValue(int value) { SetIntegerValue(value); return *this;}
private:
Aws::String m_qualificationRequestId;
bool m_qualificationRequestIdHasBeenSet;
int m_integerValue;
bool m_integerValueHasBeenSet;
};
} // namespace Model
} // namespace MTurk
} // namespace Aws

View File

@@ -0,0 +1,36 @@
/**
* 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>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace MTurk
{
namespace Model
{
class AWS_MTURK_API AcceptQualificationRequestResult
{
public:
AcceptQualificationRequestResult();
AcceptQualificationRequestResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
AcceptQualificationRequestResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace MTurk
} // namespace Aws

View File

@@ -0,0 +1,173 @@
/**
* 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 ApproveAssignmentRequest : public MTurkRequest
{
public:
ApproveAssignmentRequest();
// 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 "ApproveAssignment"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p> The ID of the assignment. The assignment must correspond to a HIT created by
* the Requester. </p>
*/
inline const Aws::String& GetAssignmentId() const{ return m_assignmentId; }
/**
* <p> The ID of the assignment. The assignment must correspond to a HIT created by
* the Requester. </p>
*/
inline bool AssignmentIdHasBeenSet() const { return m_assignmentIdHasBeenSet; }
/**
* <p> The ID of the assignment. The assignment must correspond to a HIT created by
* the Requester. </p>
*/
inline void SetAssignmentId(const Aws::String& value) { m_assignmentIdHasBeenSet = true; m_assignmentId = value; }
/**
* <p> The ID of the assignment. The assignment must correspond to a HIT created by
* the Requester. </p>
*/
inline void SetAssignmentId(Aws::String&& value) { m_assignmentIdHasBeenSet = true; m_assignmentId = std::move(value); }
/**
* <p> The ID of the assignment. The assignment must correspond to a HIT created by
* the Requester. </p>
*/
inline void SetAssignmentId(const char* value) { m_assignmentIdHasBeenSet = true; m_assignmentId.assign(value); }
/**
* <p> The ID of the assignment. The assignment must correspond to a HIT created by
* the Requester. </p>
*/
inline ApproveAssignmentRequest& WithAssignmentId(const Aws::String& value) { SetAssignmentId(value); return *this;}
/**
* <p> The ID of the assignment. The assignment must correspond to a HIT created by
* the Requester. </p>
*/
inline ApproveAssignmentRequest& WithAssignmentId(Aws::String&& value) { SetAssignmentId(std::move(value)); return *this;}
/**
* <p> The ID of the assignment. The assignment must correspond to a HIT created by
* the Requester. </p>
*/
inline ApproveAssignmentRequest& WithAssignmentId(const char* value) { SetAssignmentId(value); return *this;}
/**
* <p> A message for the Worker, which the Worker can see in the Status section of
* the web site. </p>
*/
inline const Aws::String& GetRequesterFeedback() const{ return m_requesterFeedback; }
/**
* <p> A message for the Worker, which the Worker can see in the Status section of
* the web site. </p>
*/
inline bool RequesterFeedbackHasBeenSet() const { return m_requesterFeedbackHasBeenSet; }
/**
* <p> A message for the Worker, which the Worker can see in the Status section of
* the web site. </p>
*/
inline void SetRequesterFeedback(const Aws::String& value) { m_requesterFeedbackHasBeenSet = true; m_requesterFeedback = value; }
/**
* <p> A message for the Worker, which the Worker can see in the Status section of
* the web site. </p>
*/
inline void SetRequesterFeedback(Aws::String&& value) { m_requesterFeedbackHasBeenSet = true; m_requesterFeedback = std::move(value); }
/**
* <p> A message for the Worker, which the Worker can see in the Status section of
* the web site. </p>
*/
inline void SetRequesterFeedback(const char* value) { m_requesterFeedbackHasBeenSet = true; m_requesterFeedback.assign(value); }
/**
* <p> A message for the Worker, which the Worker can see in the Status section of
* the web site. </p>
*/
inline ApproveAssignmentRequest& WithRequesterFeedback(const Aws::String& value) { SetRequesterFeedback(value); return *this;}
/**
* <p> A message for the Worker, which the Worker can see in the Status section of
* the web site. </p>
*/
inline ApproveAssignmentRequest& WithRequesterFeedback(Aws::String&& value) { SetRequesterFeedback(std::move(value)); return *this;}
/**
* <p> A message for the Worker, which the Worker can see in the Status section of
* the web site. </p>
*/
inline ApproveAssignmentRequest& WithRequesterFeedback(const char* value) { SetRequesterFeedback(value); return *this;}
/**
* <p> A flag indicating that an assignment should be approved even if it was
* previously rejected. Defaults to <code>False</code>. </p>
*/
inline bool GetOverrideRejection() const{ return m_overrideRejection; }
/**
* <p> A flag indicating that an assignment should be approved even if it was
* previously rejected. Defaults to <code>False</code>. </p>
*/
inline bool OverrideRejectionHasBeenSet() const { return m_overrideRejectionHasBeenSet; }
/**
* <p> A flag indicating that an assignment should be approved even if it was
* previously rejected. Defaults to <code>False</code>. </p>
*/
inline void SetOverrideRejection(bool value) { m_overrideRejectionHasBeenSet = true; m_overrideRejection = value; }
/**
* <p> A flag indicating that an assignment should be approved even if it was
* previously rejected. Defaults to <code>False</code>. </p>
*/
inline ApproveAssignmentRequest& WithOverrideRejection(bool value) { SetOverrideRejection(value); return *this;}
private:
Aws::String m_assignmentId;
bool m_assignmentIdHasBeenSet;
Aws::String m_requesterFeedback;
bool m_requesterFeedbackHasBeenSet;
bool m_overrideRejection;
bool m_overrideRejectionHasBeenSet;
};
} // namespace Model
} // namespace MTurk
} // namespace Aws

View File

@@ -0,0 +1,36 @@
/**
* 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>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace MTurk
{
namespace Model
{
class AWS_MTURK_API ApproveAssignmentResult
{
public:
ApproveAssignmentResult();
ApproveAssignmentResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ApproveAssignmentResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace MTurk
} // namespace Aws

View File

@@ -0,0 +1,630 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
#include <aws/mturk-requester/model/AssignmentStatus.h>
#include <aws/core/utils/DateTime.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace MTurk
{
namespace Model
{
/**
* <p> The Assignment data structure represents a single assignment of a HIT to a
* Worker. The assignment tracks the Worker's efforts to complete the HIT, and
* contains the results for later retrieval. </p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/Assignment">AWS
* API Reference</a></p>
*/
class AWS_MTURK_API Assignment
{
public:
Assignment();
Assignment(Aws::Utils::Json::JsonView jsonValue);
Assignment& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p> A unique identifier for the assignment.</p>
*/
inline const Aws::String& GetAssignmentId() const{ return m_assignmentId; }
/**
* <p> A unique identifier for the assignment.</p>
*/
inline bool AssignmentIdHasBeenSet() const { return m_assignmentIdHasBeenSet; }
/**
* <p> A unique identifier for the assignment.</p>
*/
inline void SetAssignmentId(const Aws::String& value) { m_assignmentIdHasBeenSet = true; m_assignmentId = value; }
/**
* <p> A unique identifier for the assignment.</p>
*/
inline void SetAssignmentId(Aws::String&& value) { m_assignmentIdHasBeenSet = true; m_assignmentId = std::move(value); }
/**
* <p> A unique identifier for the assignment.</p>
*/
inline void SetAssignmentId(const char* value) { m_assignmentIdHasBeenSet = true; m_assignmentId.assign(value); }
/**
* <p> A unique identifier for the assignment.</p>
*/
inline Assignment& WithAssignmentId(const Aws::String& value) { SetAssignmentId(value); return *this;}
/**
* <p> A unique identifier for the assignment.</p>
*/
inline Assignment& WithAssignmentId(Aws::String&& value) { SetAssignmentId(std::move(value)); return *this;}
/**
* <p> A unique identifier for the assignment.</p>
*/
inline Assignment& WithAssignmentId(const char* value) { SetAssignmentId(value); return *this;}
/**
* <p> The ID of the Worker who accepted the HIT.</p>
*/
inline const Aws::String& GetWorkerId() const{ return m_workerId; }
/**
* <p> The ID of the Worker who accepted the HIT.</p>
*/
inline bool WorkerIdHasBeenSet() const { return m_workerIdHasBeenSet; }
/**
* <p> The ID of the Worker who accepted the HIT.</p>
*/
inline void SetWorkerId(const Aws::String& value) { m_workerIdHasBeenSet = true; m_workerId = value; }
/**
* <p> The ID of the Worker who accepted the HIT.</p>
*/
inline void SetWorkerId(Aws::String&& value) { m_workerIdHasBeenSet = true; m_workerId = std::move(value); }
/**
* <p> The ID of the Worker who accepted the HIT.</p>
*/
inline void SetWorkerId(const char* value) { m_workerIdHasBeenSet = true; m_workerId.assign(value); }
/**
* <p> The ID of the Worker who accepted the HIT.</p>
*/
inline Assignment& WithWorkerId(const Aws::String& value) { SetWorkerId(value); return *this;}
/**
* <p> The ID of the Worker who accepted the HIT.</p>
*/
inline Assignment& WithWorkerId(Aws::String&& value) { SetWorkerId(std::move(value)); return *this;}
/**
* <p> The ID of the Worker who accepted the HIT.</p>
*/
inline Assignment& WithWorkerId(const char* value) { SetWorkerId(value); return *this;}
/**
* <p> The ID of the HIT.</p>
*/
inline const Aws::String& GetHITId() const{ return m_hITId; }
/**
* <p> The ID of the HIT.</p>
*/
inline bool HITIdHasBeenSet() const { return m_hITIdHasBeenSet; }
/**
* <p> The ID of the HIT.</p>
*/
inline void SetHITId(const Aws::String& value) { m_hITIdHasBeenSet = true; m_hITId = value; }
/**
* <p> The ID of the HIT.</p>
*/
inline void SetHITId(Aws::String&& value) { m_hITIdHasBeenSet = true; m_hITId = std::move(value); }
/**
* <p> The ID of the HIT.</p>
*/
inline void SetHITId(const char* value) { m_hITIdHasBeenSet = true; m_hITId.assign(value); }
/**
* <p> The ID of the HIT.</p>
*/
inline Assignment& WithHITId(const Aws::String& value) { SetHITId(value); return *this;}
/**
* <p> The ID of the HIT.</p>
*/
inline Assignment& WithHITId(Aws::String&& value) { SetHITId(std::move(value)); return *this;}
/**
* <p> The ID of the HIT.</p>
*/
inline Assignment& WithHITId(const char* value) { SetHITId(value); return *this;}
/**
* <p> The status of the assignment.</p>
*/
inline const AssignmentStatus& GetAssignmentStatus() const{ return m_assignmentStatus; }
/**
* <p> The status of the assignment.</p>
*/
inline bool AssignmentStatusHasBeenSet() const { return m_assignmentStatusHasBeenSet; }
/**
* <p> The status of the assignment.</p>
*/
inline void SetAssignmentStatus(const AssignmentStatus& value) { m_assignmentStatusHasBeenSet = true; m_assignmentStatus = value; }
/**
* <p> The status of the assignment.</p>
*/
inline void SetAssignmentStatus(AssignmentStatus&& value) { m_assignmentStatusHasBeenSet = true; m_assignmentStatus = std::move(value); }
/**
* <p> The status of the assignment.</p>
*/
inline Assignment& WithAssignmentStatus(const AssignmentStatus& value) { SetAssignmentStatus(value); return *this;}
/**
* <p> The status of the assignment.</p>
*/
inline Assignment& WithAssignmentStatus(AssignmentStatus&& value) { SetAssignmentStatus(std::move(value)); return *this;}
/**
* <p> If results have been submitted, AutoApprovalTime is the date and time the
* results of the assignment results are considered Approved automatically if they
* have not already been explicitly approved or rejected by the Requester. This
* value is derived from the auto-approval delay specified by the Requester in the
* HIT. This value is omitted from the assignment if the Worker has not yet
* submitted results.</p>
*/
inline const Aws::Utils::DateTime& GetAutoApprovalTime() const{ return m_autoApprovalTime; }
/**
* <p> If results have been submitted, AutoApprovalTime is the date and time the
* results of the assignment results are considered Approved automatically if they
* have not already been explicitly approved or rejected by the Requester. This
* value is derived from the auto-approval delay specified by the Requester in the
* HIT. This value is omitted from the assignment if the Worker has not yet
* submitted results.</p>
*/
inline bool AutoApprovalTimeHasBeenSet() const { return m_autoApprovalTimeHasBeenSet; }
/**
* <p> If results have been submitted, AutoApprovalTime is the date and time the
* results of the assignment results are considered Approved automatically if they
* have not already been explicitly approved or rejected by the Requester. This
* value is derived from the auto-approval delay specified by the Requester in the
* HIT. This value is omitted from the assignment if the Worker has not yet
* submitted results.</p>
*/
inline void SetAutoApprovalTime(const Aws::Utils::DateTime& value) { m_autoApprovalTimeHasBeenSet = true; m_autoApprovalTime = value; }
/**
* <p> If results have been submitted, AutoApprovalTime is the date and time the
* results of the assignment results are considered Approved automatically if they
* have not already been explicitly approved or rejected by the Requester. This
* value is derived from the auto-approval delay specified by the Requester in the
* HIT. This value is omitted from the assignment if the Worker has not yet
* submitted results.</p>
*/
inline void SetAutoApprovalTime(Aws::Utils::DateTime&& value) { m_autoApprovalTimeHasBeenSet = true; m_autoApprovalTime = std::move(value); }
/**
* <p> If results have been submitted, AutoApprovalTime is the date and time the
* results of the assignment results are considered Approved automatically if they
* have not already been explicitly approved or rejected by the Requester. This
* value is derived from the auto-approval delay specified by the Requester in the
* HIT. This value is omitted from the assignment if the Worker has not yet
* submitted results.</p>
*/
inline Assignment& WithAutoApprovalTime(const Aws::Utils::DateTime& value) { SetAutoApprovalTime(value); return *this;}
/**
* <p> If results have been submitted, AutoApprovalTime is the date and time the
* results of the assignment results are considered Approved automatically if they
* have not already been explicitly approved or rejected by the Requester. This
* value is derived from the auto-approval delay specified by the Requester in the
* HIT. This value is omitted from the assignment if the Worker has not yet
* submitted results.</p>
*/
inline Assignment& WithAutoApprovalTime(Aws::Utils::DateTime&& value) { SetAutoApprovalTime(std::move(value)); return *this;}
/**
* <p> The date and time the Worker accepted the assignment.</p>
*/
inline const Aws::Utils::DateTime& GetAcceptTime() const{ return m_acceptTime; }
/**
* <p> The date and time the Worker accepted the assignment.</p>
*/
inline bool AcceptTimeHasBeenSet() const { return m_acceptTimeHasBeenSet; }
/**
* <p> The date and time the Worker accepted the assignment.</p>
*/
inline void SetAcceptTime(const Aws::Utils::DateTime& value) { m_acceptTimeHasBeenSet = true; m_acceptTime = value; }
/**
* <p> The date and time the Worker accepted the assignment.</p>
*/
inline void SetAcceptTime(Aws::Utils::DateTime&& value) { m_acceptTimeHasBeenSet = true; m_acceptTime = std::move(value); }
/**
* <p> The date and time the Worker accepted the assignment.</p>
*/
inline Assignment& WithAcceptTime(const Aws::Utils::DateTime& value) { SetAcceptTime(value); return *this;}
/**
* <p> The date and time the Worker accepted the assignment.</p>
*/
inline Assignment& WithAcceptTime(Aws::Utils::DateTime&& value) { SetAcceptTime(std::move(value)); return *this;}
/**
* <p> If the Worker has submitted results, SubmitTime is the date and time the
* assignment was submitted. This value is omitted from the assignment if the
* Worker has not yet submitted results.</p>
*/
inline const Aws::Utils::DateTime& GetSubmitTime() const{ return m_submitTime; }
/**
* <p> If the Worker has submitted results, SubmitTime is the date and time the
* assignment was submitted. This value is omitted from the assignment if the
* Worker has not yet submitted results.</p>
*/
inline bool SubmitTimeHasBeenSet() const { return m_submitTimeHasBeenSet; }
/**
* <p> If the Worker has submitted results, SubmitTime is the date and time the
* assignment was submitted. This value is omitted from the assignment if the
* Worker has not yet submitted results.</p>
*/
inline void SetSubmitTime(const Aws::Utils::DateTime& value) { m_submitTimeHasBeenSet = true; m_submitTime = value; }
/**
* <p> If the Worker has submitted results, SubmitTime is the date and time the
* assignment was submitted. This value is omitted from the assignment if the
* Worker has not yet submitted results.</p>
*/
inline void SetSubmitTime(Aws::Utils::DateTime&& value) { m_submitTimeHasBeenSet = true; m_submitTime = std::move(value); }
/**
* <p> If the Worker has submitted results, SubmitTime is the date and time the
* assignment was submitted. This value is omitted from the assignment if the
* Worker has not yet submitted results.</p>
*/
inline Assignment& WithSubmitTime(const Aws::Utils::DateTime& value) { SetSubmitTime(value); return *this;}
/**
* <p> If the Worker has submitted results, SubmitTime is the date and time the
* assignment was submitted. This value is omitted from the assignment if the
* Worker has not yet submitted results.</p>
*/
inline Assignment& WithSubmitTime(Aws::Utils::DateTime&& value) { SetSubmitTime(std::move(value)); return *this;}
/**
* <p> If the Worker has submitted results and the Requester has approved the
* results, ApprovalTime is the date and time the Requester approved the results.
* This value is omitted from the assignment if the Requester has not yet approved
* the results.</p>
*/
inline const Aws::Utils::DateTime& GetApprovalTime() const{ return m_approvalTime; }
/**
* <p> If the Worker has submitted results and the Requester has approved the
* results, ApprovalTime is the date and time the Requester approved the results.
* This value is omitted from the assignment if the Requester has not yet approved
* the results.</p>
*/
inline bool ApprovalTimeHasBeenSet() const { return m_approvalTimeHasBeenSet; }
/**
* <p> If the Worker has submitted results and the Requester has approved the
* results, ApprovalTime is the date and time the Requester approved the results.
* This value is omitted from the assignment if the Requester has not yet approved
* the results.</p>
*/
inline void SetApprovalTime(const Aws::Utils::DateTime& value) { m_approvalTimeHasBeenSet = true; m_approvalTime = value; }
/**
* <p> If the Worker has submitted results and the Requester has approved the
* results, ApprovalTime is the date and time the Requester approved the results.
* This value is omitted from the assignment if the Requester has not yet approved
* the results.</p>
*/
inline void SetApprovalTime(Aws::Utils::DateTime&& value) { m_approvalTimeHasBeenSet = true; m_approvalTime = std::move(value); }
/**
* <p> If the Worker has submitted results and the Requester has approved the
* results, ApprovalTime is the date and time the Requester approved the results.
* This value is omitted from the assignment if the Requester has not yet approved
* the results.</p>
*/
inline Assignment& WithApprovalTime(const Aws::Utils::DateTime& value) { SetApprovalTime(value); return *this;}
/**
* <p> If the Worker has submitted results and the Requester has approved the
* results, ApprovalTime is the date and time the Requester approved the results.
* This value is omitted from the assignment if the Requester has not yet approved
* the results.</p>
*/
inline Assignment& WithApprovalTime(Aws::Utils::DateTime&& value) { SetApprovalTime(std::move(value)); return *this;}
/**
* <p> If the Worker has submitted results and the Requester has rejected the
* results, RejectionTime is the date and time the Requester rejected the
* results.</p>
*/
inline const Aws::Utils::DateTime& GetRejectionTime() const{ return m_rejectionTime; }
/**
* <p> If the Worker has submitted results and the Requester has rejected the
* results, RejectionTime is the date and time the Requester rejected the
* results.</p>
*/
inline bool RejectionTimeHasBeenSet() const { return m_rejectionTimeHasBeenSet; }
/**
* <p> If the Worker has submitted results and the Requester has rejected the
* results, RejectionTime is the date and time the Requester rejected the
* results.</p>
*/
inline void SetRejectionTime(const Aws::Utils::DateTime& value) { m_rejectionTimeHasBeenSet = true; m_rejectionTime = value; }
/**
* <p> If the Worker has submitted results and the Requester has rejected the
* results, RejectionTime is the date and time the Requester rejected the
* results.</p>
*/
inline void SetRejectionTime(Aws::Utils::DateTime&& value) { m_rejectionTimeHasBeenSet = true; m_rejectionTime = std::move(value); }
/**
* <p> If the Worker has submitted results and the Requester has rejected the
* results, RejectionTime is the date and time the Requester rejected the
* results.</p>
*/
inline Assignment& WithRejectionTime(const Aws::Utils::DateTime& value) { SetRejectionTime(value); return *this;}
/**
* <p> If the Worker has submitted results and the Requester has rejected the
* results, RejectionTime is the date and time the Requester rejected the
* results.</p>
*/
inline Assignment& WithRejectionTime(Aws::Utils::DateTime&& value) { SetRejectionTime(std::move(value)); return *this;}
/**
* <p> The date and time of the deadline for the assignment. This value is derived
* from the deadline specification for the HIT and the date and time the Worker
* accepted the HIT.</p>
*/
inline const Aws::Utils::DateTime& GetDeadline() const{ return m_deadline; }
/**
* <p> The date and time of the deadline for the assignment. This value is derived
* from the deadline specification for the HIT and the date and time the Worker
* accepted the HIT.</p>
*/
inline bool DeadlineHasBeenSet() const { return m_deadlineHasBeenSet; }
/**
* <p> The date and time of the deadline for the assignment. This value is derived
* from the deadline specification for the HIT and the date and time the Worker
* accepted the HIT.</p>
*/
inline void SetDeadline(const Aws::Utils::DateTime& value) { m_deadlineHasBeenSet = true; m_deadline = value; }
/**
* <p> The date and time of the deadline for the assignment. This value is derived
* from the deadline specification for the HIT and the date and time the Worker
* accepted the HIT.</p>
*/
inline void SetDeadline(Aws::Utils::DateTime&& value) { m_deadlineHasBeenSet = true; m_deadline = std::move(value); }
/**
* <p> The date and time of the deadline for the assignment. This value is derived
* from the deadline specification for the HIT and the date and time the Worker
* accepted the HIT.</p>
*/
inline Assignment& WithDeadline(const Aws::Utils::DateTime& value) { SetDeadline(value); return *this;}
/**
* <p> The date and time of the deadline for the assignment. This value is derived
* from the deadline specification for the HIT and the date and time the Worker
* accepted the HIT.</p>
*/
inline Assignment& WithDeadline(Aws::Utils::DateTime&& value) { SetDeadline(std::move(value)); return *this;}
/**
* <p> The Worker's answers submitted for the HIT contained in a
* QuestionFormAnswers document, if the Worker provides an answer. If the Worker
* does not provide any answers, Answer may contain a QuestionFormAnswers document,
* or Answer may be empty.</p>
*/
inline const Aws::String& GetAnswer() const{ return m_answer; }
/**
* <p> The Worker's answers submitted for the HIT contained in a
* QuestionFormAnswers document, if the Worker provides an answer. If the Worker
* does not provide any answers, Answer may contain a QuestionFormAnswers document,
* or Answer may be empty.</p>
*/
inline bool AnswerHasBeenSet() const { return m_answerHasBeenSet; }
/**
* <p> The Worker's answers submitted for the HIT contained in a
* QuestionFormAnswers document, if the Worker provides an answer. If the Worker
* does not provide any answers, Answer may contain a QuestionFormAnswers document,
* or Answer may be empty.</p>
*/
inline void SetAnswer(const Aws::String& value) { m_answerHasBeenSet = true; m_answer = value; }
/**
* <p> The Worker's answers submitted for the HIT contained in a
* QuestionFormAnswers document, if the Worker provides an answer. If the Worker
* does not provide any answers, Answer may contain a QuestionFormAnswers document,
* or Answer may be empty.</p>
*/
inline void SetAnswer(Aws::String&& value) { m_answerHasBeenSet = true; m_answer = std::move(value); }
/**
* <p> The Worker's answers submitted for the HIT contained in a
* QuestionFormAnswers document, if the Worker provides an answer. If the Worker
* does not provide any answers, Answer may contain a QuestionFormAnswers document,
* or Answer may be empty.</p>
*/
inline void SetAnswer(const char* value) { m_answerHasBeenSet = true; m_answer.assign(value); }
/**
* <p> The Worker's answers submitted for the HIT contained in a
* QuestionFormAnswers document, if the Worker provides an answer. If the Worker
* does not provide any answers, Answer may contain a QuestionFormAnswers document,
* or Answer may be empty.</p>
*/
inline Assignment& WithAnswer(const Aws::String& value) { SetAnswer(value); return *this;}
/**
* <p> The Worker's answers submitted for the HIT contained in a
* QuestionFormAnswers document, if the Worker provides an answer. If the Worker
* does not provide any answers, Answer may contain a QuestionFormAnswers document,
* or Answer may be empty.</p>
*/
inline Assignment& WithAnswer(Aws::String&& value) { SetAnswer(std::move(value)); return *this;}
/**
* <p> The Worker's answers submitted for the HIT contained in a
* QuestionFormAnswers document, if the Worker provides an answer. If the Worker
* does not provide any answers, Answer may contain a QuestionFormAnswers document,
* or Answer may be empty.</p>
*/
inline Assignment& WithAnswer(const char* value) { SetAnswer(value); return *this;}
/**
* <p> The feedback string included with the call to the ApproveAssignment
* operation or the RejectAssignment operation, if the Requester approved or
* rejected the assignment and specified feedback.</p>
*/
inline const Aws::String& GetRequesterFeedback() const{ return m_requesterFeedback; }
/**
* <p> The feedback string included with the call to the ApproveAssignment
* operation or the RejectAssignment operation, if the Requester approved or
* rejected the assignment and specified feedback.</p>
*/
inline bool RequesterFeedbackHasBeenSet() const { return m_requesterFeedbackHasBeenSet; }
/**
* <p> The feedback string included with the call to the ApproveAssignment
* operation or the RejectAssignment operation, if the Requester approved or
* rejected the assignment and specified feedback.</p>
*/
inline void SetRequesterFeedback(const Aws::String& value) { m_requesterFeedbackHasBeenSet = true; m_requesterFeedback = value; }
/**
* <p> The feedback string included with the call to the ApproveAssignment
* operation or the RejectAssignment operation, if the Requester approved or
* rejected the assignment and specified feedback.</p>
*/
inline void SetRequesterFeedback(Aws::String&& value) { m_requesterFeedbackHasBeenSet = true; m_requesterFeedback = std::move(value); }
/**
* <p> The feedback string included with the call to the ApproveAssignment
* operation or the RejectAssignment operation, if the Requester approved or
* rejected the assignment and specified feedback.</p>
*/
inline void SetRequesterFeedback(const char* value) { m_requesterFeedbackHasBeenSet = true; m_requesterFeedback.assign(value); }
/**
* <p> The feedback string included with the call to the ApproveAssignment
* operation or the RejectAssignment operation, if the Requester approved or
* rejected the assignment and specified feedback.</p>
*/
inline Assignment& WithRequesterFeedback(const Aws::String& value) { SetRequesterFeedback(value); return *this;}
/**
* <p> The feedback string included with the call to the ApproveAssignment
* operation or the RejectAssignment operation, if the Requester approved or
* rejected the assignment and specified feedback.</p>
*/
inline Assignment& WithRequesterFeedback(Aws::String&& value) { SetRequesterFeedback(std::move(value)); return *this;}
/**
* <p> The feedback string included with the call to the ApproveAssignment
* operation or the RejectAssignment operation, if the Requester approved or
* rejected the assignment and specified feedback.</p>
*/
inline Assignment& WithRequesterFeedback(const char* value) { SetRequesterFeedback(value); return *this;}
private:
Aws::String m_assignmentId;
bool m_assignmentIdHasBeenSet;
Aws::String m_workerId;
bool m_workerIdHasBeenSet;
Aws::String m_hITId;
bool m_hITIdHasBeenSet;
AssignmentStatus m_assignmentStatus;
bool m_assignmentStatusHasBeenSet;
Aws::Utils::DateTime m_autoApprovalTime;
bool m_autoApprovalTimeHasBeenSet;
Aws::Utils::DateTime m_acceptTime;
bool m_acceptTimeHasBeenSet;
Aws::Utils::DateTime m_submitTime;
bool m_submitTimeHasBeenSet;
Aws::Utils::DateTime m_approvalTime;
bool m_approvalTimeHasBeenSet;
Aws::Utils::DateTime m_rejectionTime;
bool m_rejectionTimeHasBeenSet;
Aws::Utils::DateTime m_deadline;
bool m_deadlineHasBeenSet;
Aws::String m_answer;
bool m_answerHasBeenSet;
Aws::String m_requesterFeedback;
bool m_requesterFeedbackHasBeenSet;
};
} // namespace Model
} // namespace MTurk
} // namespace Aws

View File

@@ -0,0 +1,32 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace MTurk
{
namespace Model
{
enum class AssignmentStatus
{
NOT_SET,
Submitted,
Approved,
Rejected
};
namespace AssignmentStatusMapper
{
AWS_MTURK_API AssignmentStatus GetAssignmentStatusForName(const Aws::String& name);
AWS_MTURK_API Aws::String GetNameForAssignmentStatus(AssignmentStatus value);
} // namespace AssignmentStatusMapper
} // namespace Model
} // namespace MTurk
} // namespace Aws

View File

@@ -0,0 +1,193 @@
/**
* 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 AssociateQualificationWithWorkerRequest : public MTurkRequest
{
public:
AssociateQualificationWithWorkerRequest();
// 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 "AssociateQualificationWithWorker"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The ID of the Qualification type to use for the assigned Qualification.</p>
*/
inline const Aws::String& GetQualificationTypeId() const{ return m_qualificationTypeId; }
/**
* <p>The ID of the Qualification type to use for the assigned Qualification.</p>
*/
inline bool QualificationTypeIdHasBeenSet() const { return m_qualificationTypeIdHasBeenSet; }
/**
* <p>The ID of the Qualification type to use for the assigned Qualification.</p>
*/
inline void SetQualificationTypeId(const Aws::String& value) { m_qualificationTypeIdHasBeenSet = true; m_qualificationTypeId = value; }
/**
* <p>The ID of the Qualification type to use for the assigned Qualification.</p>
*/
inline void SetQualificationTypeId(Aws::String&& value) { m_qualificationTypeIdHasBeenSet = true; m_qualificationTypeId = std::move(value); }
/**
* <p>The ID of the Qualification type to use for the assigned Qualification.</p>
*/
inline void SetQualificationTypeId(const char* value) { m_qualificationTypeIdHasBeenSet = true; m_qualificationTypeId.assign(value); }
/**
* <p>The ID of the Qualification type to use for the assigned Qualification.</p>
*/
inline AssociateQualificationWithWorkerRequest& WithQualificationTypeId(const Aws::String& value) { SetQualificationTypeId(value); return *this;}
/**
* <p>The ID of the Qualification type to use for the assigned Qualification.</p>
*/
inline AssociateQualificationWithWorkerRequest& WithQualificationTypeId(Aws::String&& value) { SetQualificationTypeId(std::move(value)); return *this;}
/**
* <p>The ID of the Qualification type to use for the assigned Qualification.</p>
*/
inline AssociateQualificationWithWorkerRequest& WithQualificationTypeId(const char* value) { SetQualificationTypeId(value); return *this;}
/**
* <p> The ID of the Worker to whom the Qualification is being assigned. Worker IDs
* are included with submitted HIT assignments and Qualification requests. </p>
*/
inline const Aws::String& GetWorkerId() const{ return m_workerId; }
/**
* <p> The ID of the Worker to whom the Qualification is being assigned. Worker IDs
* are included with submitted HIT assignments and Qualification requests. </p>
*/
inline bool WorkerIdHasBeenSet() const { return m_workerIdHasBeenSet; }
/**
* <p> The ID of the Worker to whom the Qualification is being assigned. Worker IDs
* are included with submitted HIT assignments and Qualification requests. </p>
*/
inline void SetWorkerId(const Aws::String& value) { m_workerIdHasBeenSet = true; m_workerId = value; }
/**
* <p> The ID of the Worker to whom the Qualification is being assigned. Worker IDs
* are included with submitted HIT assignments and Qualification requests. </p>
*/
inline void SetWorkerId(Aws::String&& value) { m_workerIdHasBeenSet = true; m_workerId = std::move(value); }
/**
* <p> The ID of the Worker to whom the Qualification is being assigned. Worker IDs
* are included with submitted HIT assignments and Qualification requests. </p>
*/
inline void SetWorkerId(const char* value) { m_workerIdHasBeenSet = true; m_workerId.assign(value); }
/**
* <p> The ID of the Worker to whom the Qualification is being assigned. Worker IDs
* are included with submitted HIT assignments and Qualification requests. </p>
*/
inline AssociateQualificationWithWorkerRequest& WithWorkerId(const Aws::String& value) { SetWorkerId(value); return *this;}
/**
* <p> The ID of the Worker to whom the Qualification is being assigned. Worker IDs
* are included with submitted HIT assignments and Qualification requests. </p>
*/
inline AssociateQualificationWithWorkerRequest& WithWorkerId(Aws::String&& value) { SetWorkerId(std::move(value)); return *this;}
/**
* <p> The ID of the Worker to whom the Qualification is being assigned. Worker IDs
* are included with submitted HIT assignments and Qualification requests. </p>
*/
inline AssociateQualificationWithWorkerRequest& WithWorkerId(const char* value) { SetWorkerId(value); return *this;}
/**
* <p>The value of the Qualification to assign.</p>
*/
inline int GetIntegerValue() const{ return m_integerValue; }
/**
* <p>The value of the Qualification to assign.</p>
*/
inline bool IntegerValueHasBeenSet() const { return m_integerValueHasBeenSet; }
/**
* <p>The value of the Qualification to assign.</p>
*/
inline void SetIntegerValue(int value) { m_integerValueHasBeenSet = true; m_integerValue = value; }
/**
* <p>The value of the Qualification to assign.</p>
*/
inline AssociateQualificationWithWorkerRequest& WithIntegerValue(int value) { SetIntegerValue(value); return *this;}
/**
* <p> Specifies whether to send a notification email message to the Worker saying
* that the qualification was assigned to the Worker. Note: this is true by
* default. </p>
*/
inline bool GetSendNotification() const{ return m_sendNotification; }
/**
* <p> Specifies whether to send a notification email message to the Worker saying
* that the qualification was assigned to the Worker. Note: this is true by
* default. </p>
*/
inline bool SendNotificationHasBeenSet() const { return m_sendNotificationHasBeenSet; }
/**
* <p> Specifies whether to send a notification email message to the Worker saying
* that the qualification was assigned to the Worker. Note: this is true by
* default. </p>
*/
inline void SetSendNotification(bool value) { m_sendNotificationHasBeenSet = true; m_sendNotification = value; }
/**
* <p> Specifies whether to send a notification email message to the Worker saying
* that the qualification was assigned to the Worker. Note: this is true by
* default. </p>
*/
inline AssociateQualificationWithWorkerRequest& WithSendNotification(bool value) { SetSendNotification(value); return *this;}
private:
Aws::String m_qualificationTypeId;
bool m_qualificationTypeIdHasBeenSet;
Aws::String m_workerId;
bool m_workerIdHasBeenSet;
int m_integerValue;
bool m_integerValueHasBeenSet;
bool m_sendNotification;
bool m_sendNotificationHasBeenSet;
};
} // namespace Model
} // namespace MTurk
} // namespace Aws

View File

@@ -0,0 +1,36 @@
/**
* 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>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace MTurk
{
namespace Model
{
class AWS_MTURK_API AssociateQualificationWithWorkerResult
{
public:
AssociateQualificationWithWorkerResult();
AssociateQualificationWithWorkerResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
AssociateQualificationWithWorkerResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace MTurk
} // namespace Aws

View File

@@ -0,0 +1,240 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/DateTime.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace MTurk
{
namespace Model
{
/**
* <p>An object representing a Bonus payment paid to a Worker.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/BonusPayment">AWS
* API Reference</a></p>
*/
class AWS_MTURK_API BonusPayment
{
public:
BonusPayment();
BonusPayment(Aws::Utils::Json::JsonView jsonValue);
BonusPayment& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The ID of the Worker to whom the bonus was paid.</p>
*/
inline const Aws::String& GetWorkerId() const{ return m_workerId; }
/**
* <p>The ID of the Worker to whom the bonus was paid.</p>
*/
inline bool WorkerIdHasBeenSet() const { return m_workerIdHasBeenSet; }
/**
* <p>The ID of the Worker to whom the bonus was paid.</p>
*/
inline void SetWorkerId(const Aws::String& value) { m_workerIdHasBeenSet = true; m_workerId = value; }
/**
* <p>The ID of the Worker to whom the bonus was paid.</p>
*/
inline void SetWorkerId(Aws::String&& value) { m_workerIdHasBeenSet = true; m_workerId = std::move(value); }
/**
* <p>The ID of the Worker to whom the bonus was paid.</p>
*/
inline void SetWorkerId(const char* value) { m_workerIdHasBeenSet = true; m_workerId.assign(value); }
/**
* <p>The ID of the Worker to whom the bonus was paid.</p>
*/
inline BonusPayment& WithWorkerId(const Aws::String& value) { SetWorkerId(value); return *this;}
/**
* <p>The ID of the Worker to whom the bonus was paid.</p>
*/
inline BonusPayment& WithWorkerId(Aws::String&& value) { SetWorkerId(std::move(value)); return *this;}
/**
* <p>The ID of the Worker to whom the bonus was paid.</p>
*/
inline BonusPayment& WithWorkerId(const char* value) { SetWorkerId(value); return *this;}
inline const Aws::String& GetBonusAmount() const{ return m_bonusAmount; }
inline bool BonusAmountHasBeenSet() const { return m_bonusAmountHasBeenSet; }
inline void SetBonusAmount(const Aws::String& value) { m_bonusAmountHasBeenSet = true; m_bonusAmount = value; }
inline void SetBonusAmount(Aws::String&& value) { m_bonusAmountHasBeenSet = true; m_bonusAmount = std::move(value); }
inline void SetBonusAmount(const char* value) { m_bonusAmountHasBeenSet = true; m_bonusAmount.assign(value); }
inline BonusPayment& WithBonusAmount(const Aws::String& value) { SetBonusAmount(value); return *this;}
inline BonusPayment& WithBonusAmount(Aws::String&& value) { SetBonusAmount(std::move(value)); return *this;}
inline BonusPayment& WithBonusAmount(const char* value) { SetBonusAmount(value); return *this;}
/**
* <p>The ID of the assignment associated with this bonus payment.</p>
*/
inline const Aws::String& GetAssignmentId() const{ return m_assignmentId; }
/**
* <p>The ID of the assignment associated with this bonus payment.</p>
*/
inline bool AssignmentIdHasBeenSet() const { return m_assignmentIdHasBeenSet; }
/**
* <p>The ID of the assignment associated with this bonus payment.</p>
*/
inline void SetAssignmentId(const Aws::String& value) { m_assignmentIdHasBeenSet = true; m_assignmentId = value; }
/**
* <p>The ID of the assignment associated with this bonus payment.</p>
*/
inline void SetAssignmentId(Aws::String&& value) { m_assignmentIdHasBeenSet = true; m_assignmentId = std::move(value); }
/**
* <p>The ID of the assignment associated with this bonus payment.</p>
*/
inline void SetAssignmentId(const char* value) { m_assignmentIdHasBeenSet = true; m_assignmentId.assign(value); }
/**
* <p>The ID of the assignment associated with this bonus payment.</p>
*/
inline BonusPayment& WithAssignmentId(const Aws::String& value) { SetAssignmentId(value); return *this;}
/**
* <p>The ID of the assignment associated with this bonus payment.</p>
*/
inline BonusPayment& WithAssignmentId(Aws::String&& value) { SetAssignmentId(std::move(value)); return *this;}
/**
* <p>The ID of the assignment associated with this bonus payment.</p>
*/
inline BonusPayment& WithAssignmentId(const char* value) { SetAssignmentId(value); return *this;}
/**
* <p>The Reason text given when the bonus was granted, if any.</p>
*/
inline const Aws::String& GetReason() const{ return m_reason; }
/**
* <p>The Reason text given when the bonus was granted, if any.</p>
*/
inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
/**
* <p>The Reason text given when the bonus was granted, if any.</p>
*/
inline void SetReason(const Aws::String& value) { m_reasonHasBeenSet = true; m_reason = value; }
/**
* <p>The Reason text given when the bonus was granted, if any.</p>
*/
inline void SetReason(Aws::String&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
/**
* <p>The Reason text given when the bonus was granted, if any.</p>
*/
inline void SetReason(const char* value) { m_reasonHasBeenSet = true; m_reason.assign(value); }
/**
* <p>The Reason text given when the bonus was granted, if any.</p>
*/
inline BonusPayment& WithReason(const Aws::String& value) { SetReason(value); return *this;}
/**
* <p>The Reason text given when the bonus was granted, if any.</p>
*/
inline BonusPayment& WithReason(Aws::String&& value) { SetReason(std::move(value)); return *this;}
/**
* <p>The Reason text given when the bonus was granted, if any.</p>
*/
inline BonusPayment& WithReason(const char* value) { SetReason(value); return *this;}
/**
* <p>The date and time of when the bonus was granted.</p>
*/
inline const Aws::Utils::DateTime& GetGrantTime() const{ return m_grantTime; }
/**
* <p>The date and time of when the bonus was granted.</p>
*/
inline bool GrantTimeHasBeenSet() const { return m_grantTimeHasBeenSet; }
/**
* <p>The date and time of when the bonus was granted.</p>
*/
inline void SetGrantTime(const Aws::Utils::DateTime& value) { m_grantTimeHasBeenSet = true; m_grantTime = value; }
/**
* <p>The date and time of when the bonus was granted.</p>
*/
inline void SetGrantTime(Aws::Utils::DateTime&& value) { m_grantTimeHasBeenSet = true; m_grantTime = std::move(value); }
/**
* <p>The date and time of when the bonus was granted.</p>
*/
inline BonusPayment& WithGrantTime(const Aws::Utils::DateTime& value) { SetGrantTime(value); return *this;}
/**
* <p>The date and time of when the bonus was granted.</p>
*/
inline BonusPayment& WithGrantTime(Aws::Utils::DateTime&& value) { SetGrantTime(std::move(value)); return *this;}
private:
Aws::String m_workerId;
bool m_workerIdHasBeenSet;
Aws::String m_bonusAmount;
bool m_bonusAmountHasBeenSet;
Aws::String m_assignmentId;
bool m_assignmentIdHasBeenSet;
Aws::String m_reason;
bool m_reasonHasBeenSet;
Aws::Utils::DateTime m_grantTime;
bool m_grantTimeHasBeenSet;
};
} // namespace Model
} // namespace MTurk
} // namespace Aws

View File

@@ -0,0 +1,39 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace MTurk
{
namespace Model
{
enum class Comparator
{
NOT_SET,
LessThan,
LessThanOrEqualTo,
GreaterThan,
GreaterThanOrEqualTo,
EqualTo,
NotEqualTo,
Exists,
DoesNotExist,
In,
NotIn
};
namespace ComparatorMapper
{
AWS_MTURK_API Comparator GetComparatorForName(const Aws::String& name);
AWS_MTURK_API Aws::String GetNameForComparator(Comparator value);
} // namespace ComparatorMapper
} // namespace Model
} // namespace MTurk
} // namespace Aws

View File

@@ -0,0 +1,193 @@
/**
* 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 CreateAdditionalAssignmentsForHITRequest : public MTurkRequest
{
public:
CreateAdditionalAssignmentsForHITRequest();
// 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 "CreateAdditionalAssignmentsForHIT"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The ID of the HIT to extend.</p>
*/
inline const Aws::String& GetHITId() const{ return m_hITId; }
/**
* <p>The ID of the HIT to extend.</p>
*/
inline bool HITIdHasBeenSet() const { return m_hITIdHasBeenSet; }
/**
* <p>The ID of the HIT to extend.</p>
*/
inline void SetHITId(const Aws::String& value) { m_hITIdHasBeenSet = true; m_hITId = value; }
/**
* <p>The ID of the HIT to extend.</p>
*/
inline void SetHITId(Aws::String&& value) { m_hITIdHasBeenSet = true; m_hITId = std::move(value); }
/**
* <p>The ID of the HIT to extend.</p>
*/
inline void SetHITId(const char* value) { m_hITIdHasBeenSet = true; m_hITId.assign(value); }
/**
* <p>The ID of the HIT to extend.</p>
*/
inline CreateAdditionalAssignmentsForHITRequest& WithHITId(const Aws::String& value) { SetHITId(value); return *this;}
/**
* <p>The ID of the HIT to extend.</p>
*/
inline CreateAdditionalAssignmentsForHITRequest& WithHITId(Aws::String&& value) { SetHITId(std::move(value)); return *this;}
/**
* <p>The ID of the HIT to extend.</p>
*/
inline CreateAdditionalAssignmentsForHITRequest& WithHITId(const char* value) { SetHITId(value); return *this;}
/**
* <p>The number of additional assignments to request for this HIT.</p>
*/
inline int GetNumberOfAdditionalAssignments() const{ return m_numberOfAdditionalAssignments; }
/**
* <p>The number of additional assignments to request for this HIT.</p>
*/
inline bool NumberOfAdditionalAssignmentsHasBeenSet() const { return m_numberOfAdditionalAssignmentsHasBeenSet; }
/**
* <p>The number of additional assignments to request for this HIT.</p>
*/
inline void SetNumberOfAdditionalAssignments(int value) { m_numberOfAdditionalAssignmentsHasBeenSet = true; m_numberOfAdditionalAssignments = value; }
/**
* <p>The number of additional assignments to request for this HIT.</p>
*/
inline CreateAdditionalAssignmentsForHITRequest& WithNumberOfAdditionalAssignments(int value) { SetNumberOfAdditionalAssignments(value); return *this;}
/**
* <p> A unique identifier for this request, which allows you to retry the call on
* error without extending the HIT multiple times. This is useful in cases such as
* network timeouts where it is unclear whether or not the call succeeded on the
* server. If the extend HIT already exists in the system from a previous call
* using the same <code>UniqueRequestToken</code>, subsequent calls will return an
* error with a message containing the request ID. </p>
*/
inline const Aws::String& GetUniqueRequestToken() const{ return m_uniqueRequestToken; }
/**
* <p> A unique identifier for this request, which allows you to retry the call on
* error without extending the HIT multiple times. This is useful in cases such as
* network timeouts where it is unclear whether or not the call succeeded on the
* server. If the extend HIT already exists in the system from a previous call
* using the same <code>UniqueRequestToken</code>, subsequent calls will return an
* error with a message containing the request ID. </p>
*/
inline bool UniqueRequestTokenHasBeenSet() const { return m_uniqueRequestTokenHasBeenSet; }
/**
* <p> A unique identifier for this request, which allows you to retry the call on
* error without extending the HIT multiple times. This is useful in cases such as
* network timeouts where it is unclear whether or not the call succeeded on the
* server. If the extend HIT already exists in the system from a previous call
* using the same <code>UniqueRequestToken</code>, subsequent calls will return an
* error with a message containing the request ID. </p>
*/
inline void SetUniqueRequestToken(const Aws::String& value) { m_uniqueRequestTokenHasBeenSet = true; m_uniqueRequestToken = value; }
/**
* <p> A unique identifier for this request, which allows you to retry the call on
* error without extending the HIT multiple times. This is useful in cases such as
* network timeouts where it is unclear whether or not the call succeeded on the
* server. If the extend HIT already exists in the system from a previous call
* using the same <code>UniqueRequestToken</code>, subsequent calls will return an
* error with a message containing the request ID. </p>
*/
inline void SetUniqueRequestToken(Aws::String&& value) { m_uniqueRequestTokenHasBeenSet = true; m_uniqueRequestToken = std::move(value); }
/**
* <p> A unique identifier for this request, which allows you to retry the call on
* error without extending the HIT multiple times. This is useful in cases such as
* network timeouts where it is unclear whether or not the call succeeded on the
* server. If the extend HIT already exists in the system from a previous call
* using the same <code>UniqueRequestToken</code>, subsequent calls will return an
* error with a message containing the request ID. </p>
*/
inline void SetUniqueRequestToken(const char* value) { m_uniqueRequestTokenHasBeenSet = true; m_uniqueRequestToken.assign(value); }
/**
* <p> A unique identifier for this request, which allows you to retry the call on
* error without extending the HIT multiple times. This is useful in cases such as
* network timeouts where it is unclear whether or not the call succeeded on the
* server. If the extend HIT already exists in the system from a previous call
* using the same <code>UniqueRequestToken</code>, subsequent calls will return an
* error with a message containing the request ID. </p>
*/
inline CreateAdditionalAssignmentsForHITRequest& WithUniqueRequestToken(const Aws::String& value) { SetUniqueRequestToken(value); return *this;}
/**
* <p> A unique identifier for this request, which allows you to retry the call on
* error without extending the HIT multiple times. This is useful in cases such as
* network timeouts where it is unclear whether or not the call succeeded on the
* server. If the extend HIT already exists in the system from a previous call
* using the same <code>UniqueRequestToken</code>, subsequent calls will return an
* error with a message containing the request ID. </p>
*/
inline CreateAdditionalAssignmentsForHITRequest& WithUniqueRequestToken(Aws::String&& value) { SetUniqueRequestToken(std::move(value)); return *this;}
/**
* <p> A unique identifier for this request, which allows you to retry the call on
* error without extending the HIT multiple times. This is useful in cases such as
* network timeouts where it is unclear whether or not the call succeeded on the
* server. If the extend HIT already exists in the system from a previous call
* using the same <code>UniqueRequestToken</code>, subsequent calls will return an
* error with a message containing the request ID. </p>
*/
inline CreateAdditionalAssignmentsForHITRequest& WithUniqueRequestToken(const char* value) { SetUniqueRequestToken(value); return *this;}
private:
Aws::String m_hITId;
bool m_hITIdHasBeenSet;
int m_numberOfAdditionalAssignments;
bool m_numberOfAdditionalAssignmentsHasBeenSet;
Aws::String m_uniqueRequestToken;
bool m_uniqueRequestTokenHasBeenSet;
};
} // namespace Model
} // namespace MTurk
} // namespace Aws

View File

@@ -0,0 +1,36 @@
/**
* 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>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace MTurk
{
namespace Model
{
class AWS_MTURK_API CreateAdditionalAssignmentsForHITResult
{
public:
CreateAdditionalAssignmentsForHITResult();
CreateAdditionalAssignmentsForHITResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateAdditionalAssignmentsForHITResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace MTurk
} // namespace Aws

View File

@@ -0,0 +1,77 @@
/**
* 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/model/HIT.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace MTurk
{
namespace Model
{
class AWS_MTURK_API CreateHITResult
{
public:
CreateHITResult();
CreateHITResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateHITResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p> Contains the newly created HIT data. For a description of the HIT data
* structure as it appears in responses, see the HIT Data Structure documentation.
* </p>
*/
inline const HIT& GetHIT() const{ return m_hIT; }
/**
* <p> Contains the newly created HIT data. For a description of the HIT data
* structure as it appears in responses, see the HIT Data Structure documentation.
* </p>
*/
inline void SetHIT(const HIT& value) { m_hIT = value; }
/**
* <p> Contains the newly created HIT data. For a description of the HIT data
* structure as it appears in responses, see the HIT Data Structure documentation.
* </p>
*/
inline void SetHIT(HIT&& value) { m_hIT = std::move(value); }
/**
* <p> Contains the newly created HIT data. For a description of the HIT data
* structure as it appears in responses, see the HIT Data Structure documentation.
* </p>
*/
inline CreateHITResult& WithHIT(const HIT& value) { SetHIT(value); return *this;}
/**
* <p> Contains the newly created HIT data. For a description of the HIT data
* structure as it appears in responses, see the HIT Data Structure documentation.
* </p>
*/
inline CreateHITResult& WithHIT(HIT&& value) { SetHIT(std::move(value)); return *this;}
private:
HIT m_hIT;
};
} // namespace Model
} // namespace MTurk
} // namespace Aws

View File

@@ -0,0 +1,431 @@
/**
* 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 <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/mturk-requester/model/QualificationRequirement.h>
#include <utility>
namespace Aws
{
namespace MTurk
{
namespace Model
{
/**
*/
class AWS_MTURK_API CreateHITTypeRequest : public MTurkRequest
{
public:
CreateHITTypeRequest();
// 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 "CreateHITType"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p> The number of seconds after an assignment for the HIT has been submitted,
* after which the assignment is considered Approved automatically unless the
* Requester explicitly rejects it. </p>
*/
inline long long GetAutoApprovalDelayInSeconds() const{ return m_autoApprovalDelayInSeconds; }
/**
* <p> The number of seconds after an assignment for the HIT has been submitted,
* after which the assignment is considered Approved automatically unless the
* Requester explicitly rejects it. </p>
*/
inline bool AutoApprovalDelayInSecondsHasBeenSet() const { return m_autoApprovalDelayInSecondsHasBeenSet; }
/**
* <p> The number of seconds after an assignment for the HIT has been submitted,
* after which the assignment is considered Approved automatically unless the
* Requester explicitly rejects it. </p>
*/
inline void SetAutoApprovalDelayInSeconds(long long value) { m_autoApprovalDelayInSecondsHasBeenSet = true; m_autoApprovalDelayInSeconds = value; }
/**
* <p> The number of seconds after an assignment for the HIT has been submitted,
* after which the assignment is considered Approved automatically unless the
* Requester explicitly rejects it. </p>
*/
inline CreateHITTypeRequest& WithAutoApprovalDelayInSeconds(long long value) { SetAutoApprovalDelayInSeconds(value); return *this;}
/**
* <p> The amount of time, in seconds, that a Worker has to complete the HIT after
* accepting it. If a Worker does not complete the assignment within the specified
* duration, the assignment is considered abandoned. If the HIT is still active
* (that is, its lifetime has not elapsed), the assignment becomes available for
* other users to find and accept. </p>
*/
inline long long GetAssignmentDurationInSeconds() const{ return m_assignmentDurationInSeconds; }
/**
* <p> The amount of time, in seconds, that a Worker has to complete the HIT after
* accepting it. If a Worker does not complete the assignment within the specified
* duration, the assignment is considered abandoned. If the HIT is still active
* (that is, its lifetime has not elapsed), the assignment becomes available for
* other users to find and accept. </p>
*/
inline bool AssignmentDurationInSecondsHasBeenSet() const { return m_assignmentDurationInSecondsHasBeenSet; }
/**
* <p> The amount of time, in seconds, that a Worker has to complete the HIT after
* accepting it. If a Worker does not complete the assignment within the specified
* duration, the assignment is considered abandoned. If the HIT is still active
* (that is, its lifetime has not elapsed), the assignment becomes available for
* other users to find and accept. </p>
*/
inline void SetAssignmentDurationInSeconds(long long value) { m_assignmentDurationInSecondsHasBeenSet = true; m_assignmentDurationInSeconds = value; }
/**
* <p> The amount of time, in seconds, that a Worker has to complete the HIT after
* accepting it. If a Worker does not complete the assignment within the specified
* duration, the assignment is considered abandoned. If the HIT is still active
* (that is, its lifetime has not elapsed), the assignment becomes available for
* other users to find and accept. </p>
*/
inline CreateHITTypeRequest& WithAssignmentDurationInSeconds(long long value) { SetAssignmentDurationInSeconds(value); return *this;}
/**
* <p> The amount of money the Requester will pay a Worker for successfully
* completing the HIT. </p>
*/
inline const Aws::String& GetReward() const{ return m_reward; }
/**
* <p> The amount of money the Requester will pay a Worker for successfully
* completing the HIT. </p>
*/
inline bool RewardHasBeenSet() const { return m_rewardHasBeenSet; }
/**
* <p> The amount of money the Requester will pay a Worker for successfully
* completing the HIT. </p>
*/
inline void SetReward(const Aws::String& value) { m_rewardHasBeenSet = true; m_reward = value; }
/**
* <p> The amount of money the Requester will pay a Worker for successfully
* completing the HIT. </p>
*/
inline void SetReward(Aws::String&& value) { m_rewardHasBeenSet = true; m_reward = std::move(value); }
/**
* <p> The amount of money the Requester will pay a Worker for successfully
* completing the HIT. </p>
*/
inline void SetReward(const char* value) { m_rewardHasBeenSet = true; m_reward.assign(value); }
/**
* <p> The amount of money the Requester will pay a Worker for successfully
* completing the HIT. </p>
*/
inline CreateHITTypeRequest& WithReward(const Aws::String& value) { SetReward(value); return *this;}
/**
* <p> The amount of money the Requester will pay a Worker for successfully
* completing the HIT. </p>
*/
inline CreateHITTypeRequest& WithReward(Aws::String&& value) { SetReward(std::move(value)); return *this;}
/**
* <p> The amount of money the Requester will pay a Worker for successfully
* completing the HIT. </p>
*/
inline CreateHITTypeRequest& WithReward(const char* value) { SetReward(value); return *this;}
/**
* <p> The title of the HIT. A title should be short and descriptive about the kind
* of task the HIT contains. On the Amazon Mechanical Turk web site, the HIT title
* appears in search results, and everywhere the HIT is mentioned. </p>
*/
inline const Aws::String& GetTitle() const{ return m_title; }
/**
* <p> The title of the HIT. A title should be short and descriptive about the kind
* of task the HIT contains. On the Amazon Mechanical Turk web site, the HIT title
* appears in search results, and everywhere the HIT is mentioned. </p>
*/
inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
/**
* <p> The title of the HIT. A title should be short and descriptive about the kind
* of task the HIT contains. On the Amazon Mechanical Turk web site, the HIT title
* appears in search results, and everywhere the HIT is mentioned. </p>
*/
inline void SetTitle(const Aws::String& value) { m_titleHasBeenSet = true; m_title = value; }
/**
* <p> The title of the HIT. A title should be short and descriptive about the kind
* of task the HIT contains. On the Amazon Mechanical Turk web site, the HIT title
* appears in search results, and everywhere the HIT is mentioned. </p>
*/
inline void SetTitle(Aws::String&& value) { m_titleHasBeenSet = true; m_title = std::move(value); }
/**
* <p> The title of the HIT. A title should be short and descriptive about the kind
* of task the HIT contains. On the Amazon Mechanical Turk web site, the HIT title
* appears in search results, and everywhere the HIT is mentioned. </p>
*/
inline void SetTitle(const char* value) { m_titleHasBeenSet = true; m_title.assign(value); }
/**
* <p> The title of the HIT. A title should be short and descriptive about the kind
* of task the HIT contains. On the Amazon Mechanical Turk web site, the HIT title
* appears in search results, and everywhere the HIT is mentioned. </p>
*/
inline CreateHITTypeRequest& WithTitle(const Aws::String& value) { SetTitle(value); return *this;}
/**
* <p> The title of the HIT. A title should be short and descriptive about the kind
* of task the HIT contains. On the Amazon Mechanical Turk web site, the HIT title
* appears in search results, and everywhere the HIT is mentioned. </p>
*/
inline CreateHITTypeRequest& WithTitle(Aws::String&& value) { SetTitle(std::move(value)); return *this;}
/**
* <p> The title of the HIT. A title should be short and descriptive about the kind
* of task the HIT contains. On the Amazon Mechanical Turk web site, the HIT title
* appears in search results, and everywhere the HIT is mentioned. </p>
*/
inline CreateHITTypeRequest& WithTitle(const char* value) { SetTitle(value); return *this;}
/**
* <p> One or more words or phrases that describe the HIT, separated by commas.
* These words are used in searches to find HITs. </p>
*/
inline const Aws::String& GetKeywords() const{ return m_keywords; }
/**
* <p> One or more words or phrases that describe the HIT, separated by commas.
* These words are used in searches to find HITs. </p>
*/
inline bool KeywordsHasBeenSet() const { return m_keywordsHasBeenSet; }
/**
* <p> One or more words or phrases that describe the HIT, separated by commas.
* These words are used in searches to find HITs. </p>
*/
inline void SetKeywords(const Aws::String& value) { m_keywordsHasBeenSet = true; m_keywords = value; }
/**
* <p> One or more words or phrases that describe the HIT, separated by commas.
* These words are used in searches to find HITs. </p>
*/
inline void SetKeywords(Aws::String&& value) { m_keywordsHasBeenSet = true; m_keywords = std::move(value); }
/**
* <p> One or more words or phrases that describe the HIT, separated by commas.
* These words are used in searches to find HITs. </p>
*/
inline void SetKeywords(const char* value) { m_keywordsHasBeenSet = true; m_keywords.assign(value); }
/**
* <p> One or more words or phrases that describe the HIT, separated by commas.
* These words are used in searches to find HITs. </p>
*/
inline CreateHITTypeRequest& WithKeywords(const Aws::String& value) { SetKeywords(value); return *this;}
/**
* <p> One or more words or phrases that describe the HIT, separated by commas.
* These words are used in searches to find HITs. </p>
*/
inline CreateHITTypeRequest& WithKeywords(Aws::String&& value) { SetKeywords(std::move(value)); return *this;}
/**
* <p> One or more words or phrases that describe the HIT, separated by commas.
* These words are used in searches to find HITs. </p>
*/
inline CreateHITTypeRequest& WithKeywords(const char* value) { SetKeywords(value); return *this;}
/**
* <p> A general description of the HIT. A description includes detailed
* information about the kind of task the HIT contains. On the Amazon Mechanical
* Turk web site, the HIT description appears in the expanded view of search
* results, and in the HIT and assignment screens. A good description gives the
* user enough information to evaluate the HIT before accepting it. </p>
*/
inline const Aws::String& GetDescription() const{ return m_description; }
/**
* <p> A general description of the HIT. A description includes detailed
* information about the kind of task the HIT contains. On the Amazon Mechanical
* Turk web site, the HIT description appears in the expanded view of search
* results, and in the HIT and assignment screens. A good description gives the
* user enough information to evaluate the HIT before accepting it. </p>
*/
inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
/**
* <p> A general description of the HIT. A description includes detailed
* information about the kind of task the HIT contains. On the Amazon Mechanical
* Turk web site, the HIT description appears in the expanded view of search
* results, and in the HIT and assignment screens. A good description gives the
* user enough information to evaluate the HIT before accepting it. </p>
*/
inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
/**
* <p> A general description of the HIT. A description includes detailed
* information about the kind of task the HIT contains. On the Amazon Mechanical
* Turk web site, the HIT description appears in the expanded view of search
* results, and in the HIT and assignment screens. A good description gives the
* user enough information to evaluate the HIT before accepting it. </p>
*/
inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
/**
* <p> A general description of the HIT. A description includes detailed
* information about the kind of task the HIT contains. On the Amazon Mechanical
* Turk web site, the HIT description appears in the expanded view of search
* results, and in the HIT and assignment screens. A good description gives the
* user enough information to evaluate the HIT before accepting it. </p>
*/
inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
/**
* <p> A general description of the HIT. A description includes detailed
* information about the kind of task the HIT contains. On the Amazon Mechanical
* Turk web site, the HIT description appears in the expanded view of search
* results, and in the HIT and assignment screens. A good description gives the
* user enough information to evaluate the HIT before accepting it. </p>
*/
inline CreateHITTypeRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
/**
* <p> A general description of the HIT. A description includes detailed
* information about the kind of task the HIT contains. On the Amazon Mechanical
* Turk web site, the HIT description appears in the expanded view of search
* results, and in the HIT and assignment screens. A good description gives the
* user enough information to evaluate the HIT before accepting it. </p>
*/
inline CreateHITTypeRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
/**
* <p> A general description of the HIT. A description includes detailed
* information about the kind of task the HIT contains. On the Amazon Mechanical
* Turk web site, the HIT description appears in the expanded view of search
* results, and in the HIT and assignment screens. A good description gives the
* user enough information to evaluate the HIT before accepting it. </p>
*/
inline CreateHITTypeRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
/**
* <p> Conditions that a Worker's Qualifications must meet in order to accept the
* HIT. A HIT can have between zero and ten Qualification requirements. All
* requirements must be met in order for a Worker to accept the HIT. Additionally,
* other actions can be restricted using the <code>ActionsGuarded</code> field on
* each <code>QualificationRequirement</code> structure. </p>
*/
inline const Aws::Vector<QualificationRequirement>& GetQualificationRequirements() const{ return m_qualificationRequirements; }
/**
* <p> Conditions that a Worker's Qualifications must meet in order to accept the
* HIT. A HIT can have between zero and ten Qualification requirements. All
* requirements must be met in order for a Worker to accept the HIT. Additionally,
* other actions can be restricted using the <code>ActionsGuarded</code> field on
* each <code>QualificationRequirement</code> structure. </p>
*/
inline bool QualificationRequirementsHasBeenSet() const { return m_qualificationRequirementsHasBeenSet; }
/**
* <p> Conditions that a Worker's Qualifications must meet in order to accept the
* HIT. A HIT can have between zero and ten Qualification requirements. All
* requirements must be met in order for a Worker to accept the HIT. Additionally,
* other actions can be restricted using the <code>ActionsGuarded</code> field on
* each <code>QualificationRequirement</code> structure. </p>
*/
inline void SetQualificationRequirements(const Aws::Vector<QualificationRequirement>& value) { m_qualificationRequirementsHasBeenSet = true; m_qualificationRequirements = value; }
/**
* <p> Conditions that a Worker's Qualifications must meet in order to accept the
* HIT. A HIT can have between zero and ten Qualification requirements. All
* requirements must be met in order for a Worker to accept the HIT. Additionally,
* other actions can be restricted using the <code>ActionsGuarded</code> field on
* each <code>QualificationRequirement</code> structure. </p>
*/
inline void SetQualificationRequirements(Aws::Vector<QualificationRequirement>&& value) { m_qualificationRequirementsHasBeenSet = true; m_qualificationRequirements = std::move(value); }
/**
* <p> Conditions that a Worker's Qualifications must meet in order to accept the
* HIT. A HIT can have between zero and ten Qualification requirements. All
* requirements must be met in order for a Worker to accept the HIT. Additionally,
* other actions can be restricted using the <code>ActionsGuarded</code> field on
* each <code>QualificationRequirement</code> structure. </p>
*/
inline CreateHITTypeRequest& WithQualificationRequirements(const Aws::Vector<QualificationRequirement>& value) { SetQualificationRequirements(value); return *this;}
/**
* <p> Conditions that a Worker's Qualifications must meet in order to accept the
* HIT. A HIT can have between zero and ten Qualification requirements. All
* requirements must be met in order for a Worker to accept the HIT. Additionally,
* other actions can be restricted using the <code>ActionsGuarded</code> field on
* each <code>QualificationRequirement</code> structure. </p>
*/
inline CreateHITTypeRequest& WithQualificationRequirements(Aws::Vector<QualificationRequirement>&& value) { SetQualificationRequirements(std::move(value)); return *this;}
/**
* <p> Conditions that a Worker's Qualifications must meet in order to accept the
* HIT. A HIT can have between zero and ten Qualification requirements. All
* requirements must be met in order for a Worker to accept the HIT. Additionally,
* other actions can be restricted using the <code>ActionsGuarded</code> field on
* each <code>QualificationRequirement</code> structure. </p>
*/
inline CreateHITTypeRequest& AddQualificationRequirements(const QualificationRequirement& value) { m_qualificationRequirementsHasBeenSet = true; m_qualificationRequirements.push_back(value); return *this; }
/**
* <p> Conditions that a Worker's Qualifications must meet in order to accept the
* HIT. A HIT can have between zero and ten Qualification requirements. All
* requirements must be met in order for a Worker to accept the HIT. Additionally,
* other actions can be restricted using the <code>ActionsGuarded</code> field on
* each <code>QualificationRequirement</code> structure. </p>
*/
inline CreateHITTypeRequest& AddQualificationRequirements(QualificationRequirement&& value) { m_qualificationRequirementsHasBeenSet = true; m_qualificationRequirements.push_back(std::move(value)); return *this; }
private:
long long m_autoApprovalDelayInSeconds;
bool m_autoApprovalDelayInSecondsHasBeenSet;
long long m_assignmentDurationInSeconds;
bool m_assignmentDurationInSecondsHasBeenSet;
Aws::String m_reward;
bool m_rewardHasBeenSet;
Aws::String m_title;
bool m_titleHasBeenSet;
Aws::String m_keywords;
bool m_keywordsHasBeenSet;
Aws::String m_description;
bool m_descriptionHasBeenSet;
Aws::Vector<QualificationRequirement> m_qualificationRequirements;
bool m_qualificationRequirementsHasBeenSet;
};
} // namespace Model
} // namespace MTurk
} // namespace Aws

View File

@@ -0,0 +1,77 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace MTurk
{
namespace Model
{
class AWS_MTURK_API CreateHITTypeResult
{
public:
CreateHITTypeResult();
CreateHITTypeResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateHITTypeResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p> The ID of the newly registered HIT type.</p>
*/
inline const Aws::String& GetHITTypeId() const{ return m_hITTypeId; }
/**
* <p> The ID of the newly registered HIT type.</p>
*/
inline void SetHITTypeId(const Aws::String& value) { m_hITTypeId = value; }
/**
* <p> The ID of the newly registered HIT type.</p>
*/
inline void SetHITTypeId(Aws::String&& value) { m_hITTypeId = std::move(value); }
/**
* <p> The ID of the newly registered HIT type.</p>
*/
inline void SetHITTypeId(const char* value) { m_hITTypeId.assign(value); }
/**
* <p> The ID of the newly registered HIT type.</p>
*/
inline CreateHITTypeResult& WithHITTypeId(const Aws::String& value) { SetHITTypeId(value); return *this;}
/**
* <p> The ID of the newly registered HIT type.</p>
*/
inline CreateHITTypeResult& WithHITTypeId(Aws::String&& value) { SetHITTypeId(std::move(value)); return *this;}
/**
* <p> The ID of the newly registered HIT type.</p>
*/
inline CreateHITTypeResult& WithHITTypeId(const char* value) { SetHITTypeId(value); return *this;}
private:
Aws::String m_hITTypeId;
};
} // namespace Model
} // namespace MTurk
} // namespace Aws

View File

@@ -0,0 +1,658 @@
/**
* 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 <aws/mturk-requester/model/ReviewPolicy.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/mturk-requester/model/HITLayoutParameter.h>
#include <utility>
namespace Aws
{
namespace MTurk
{
namespace Model
{
/**
*/
class AWS_MTURK_API CreateHITWithHITTypeRequest : public MTurkRequest
{
public:
CreateHITWithHITTypeRequest();
// 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 "CreateHITWithHITType"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The HIT type ID you want to create this HIT with.</p>
*/
inline const Aws::String& GetHITTypeId() const{ return m_hITTypeId; }
/**
* <p>The HIT type ID you want to create this HIT with.</p>
*/
inline bool HITTypeIdHasBeenSet() const { return m_hITTypeIdHasBeenSet; }
/**
* <p>The HIT type ID you want to create this HIT with.</p>
*/
inline void SetHITTypeId(const Aws::String& value) { m_hITTypeIdHasBeenSet = true; m_hITTypeId = value; }
/**
* <p>The HIT type ID you want to create this HIT with.</p>
*/
inline void SetHITTypeId(Aws::String&& value) { m_hITTypeIdHasBeenSet = true; m_hITTypeId = std::move(value); }
/**
* <p>The HIT type ID you want to create this HIT with.</p>
*/
inline void SetHITTypeId(const char* value) { m_hITTypeIdHasBeenSet = true; m_hITTypeId.assign(value); }
/**
* <p>The HIT type ID you want to create this HIT with.</p>
*/
inline CreateHITWithHITTypeRequest& WithHITTypeId(const Aws::String& value) { SetHITTypeId(value); return *this;}
/**
* <p>The HIT type ID you want to create this HIT with.</p>
*/
inline CreateHITWithHITTypeRequest& WithHITTypeId(Aws::String&& value) { SetHITTypeId(std::move(value)); return *this;}
/**
* <p>The HIT type ID you want to create this HIT with.</p>
*/
inline CreateHITWithHITTypeRequest& WithHITTypeId(const char* value) { SetHITTypeId(value); return *this;}
/**
* <p> The number of times the HIT can be accepted and completed before the HIT
* becomes unavailable. </p>
*/
inline int GetMaxAssignments() const{ return m_maxAssignments; }
/**
* <p> The number of times the HIT can be accepted and completed before the HIT
* becomes unavailable. </p>
*/
inline bool MaxAssignmentsHasBeenSet() const { return m_maxAssignmentsHasBeenSet; }
/**
* <p> The number of times the HIT can be accepted and completed before the HIT
* becomes unavailable. </p>
*/
inline void SetMaxAssignments(int value) { m_maxAssignmentsHasBeenSet = true; m_maxAssignments = value; }
/**
* <p> The number of times the HIT can be accepted and completed before the HIT
* becomes unavailable. </p>
*/
inline CreateHITWithHITTypeRequest& WithMaxAssignments(int value) { SetMaxAssignments(value); return *this;}
/**
* <p> An amount of time, in seconds, after which the HIT is no longer available
* for users to accept. After the lifetime of the HIT elapses, the HIT no longer
* appears in HIT searches, even if not all of the assignments for the HIT have
* been accepted. </p>
*/
inline long long GetLifetimeInSeconds() const{ return m_lifetimeInSeconds; }
/**
* <p> An amount of time, in seconds, after which the HIT is no longer available
* for users to accept. After the lifetime of the HIT elapses, the HIT no longer
* appears in HIT searches, even if not all of the assignments for the HIT have
* been accepted. </p>
*/
inline bool LifetimeInSecondsHasBeenSet() const { return m_lifetimeInSecondsHasBeenSet; }
/**
* <p> An amount of time, in seconds, after which the HIT is no longer available
* for users to accept. After the lifetime of the HIT elapses, the HIT no longer
* appears in HIT searches, even if not all of the assignments for the HIT have
* been accepted. </p>
*/
inline void SetLifetimeInSeconds(long long value) { m_lifetimeInSecondsHasBeenSet = true; m_lifetimeInSeconds = value; }
/**
* <p> An amount of time, in seconds, after which the HIT is no longer available
* for users to accept. After the lifetime of the HIT elapses, the HIT no longer
* appears in HIT searches, even if not all of the assignments for the HIT have
* been accepted. </p>
*/
inline CreateHITWithHITTypeRequest& WithLifetimeInSeconds(long long value) { SetLifetimeInSeconds(value); return *this;}
/**
* <p> The data the person completing the HIT uses to produce the results. </p> <p>
* Constraints: Must be a QuestionForm data structure, an ExternalQuestion data
* structure, or an HTMLQuestion data structure. The XML question data must not be
* larger than 64 kilobytes (65,535 bytes) in size, including whitespace. </p>
* <p>Either a Question parameter or a HITLayoutId parameter must be provided.</p>
*/
inline const Aws::String& GetQuestion() const{ return m_question; }
/**
* <p> The data the person completing the HIT uses to produce the results. </p> <p>
* Constraints: Must be a QuestionForm data structure, an ExternalQuestion data
* structure, or an HTMLQuestion data structure. The XML question data must not be
* larger than 64 kilobytes (65,535 bytes) in size, including whitespace. </p>
* <p>Either a Question parameter or a HITLayoutId parameter must be provided.</p>
*/
inline bool QuestionHasBeenSet() const { return m_questionHasBeenSet; }
/**
* <p> The data the person completing the HIT uses to produce the results. </p> <p>
* Constraints: Must be a QuestionForm data structure, an ExternalQuestion data
* structure, or an HTMLQuestion data structure. The XML question data must not be
* larger than 64 kilobytes (65,535 bytes) in size, including whitespace. </p>
* <p>Either a Question parameter or a HITLayoutId parameter must be provided.</p>
*/
inline void SetQuestion(const Aws::String& value) { m_questionHasBeenSet = true; m_question = value; }
/**
* <p> The data the person completing the HIT uses to produce the results. </p> <p>
* Constraints: Must be a QuestionForm data structure, an ExternalQuestion data
* structure, or an HTMLQuestion data structure. The XML question data must not be
* larger than 64 kilobytes (65,535 bytes) in size, including whitespace. </p>
* <p>Either a Question parameter or a HITLayoutId parameter must be provided.</p>
*/
inline void SetQuestion(Aws::String&& value) { m_questionHasBeenSet = true; m_question = std::move(value); }
/**
* <p> The data the person completing the HIT uses to produce the results. </p> <p>
* Constraints: Must be a QuestionForm data structure, an ExternalQuestion data
* structure, or an HTMLQuestion data structure. The XML question data must not be
* larger than 64 kilobytes (65,535 bytes) in size, including whitespace. </p>
* <p>Either a Question parameter or a HITLayoutId parameter must be provided.</p>
*/
inline void SetQuestion(const char* value) { m_questionHasBeenSet = true; m_question.assign(value); }
/**
* <p> The data the person completing the HIT uses to produce the results. </p> <p>
* Constraints: Must be a QuestionForm data structure, an ExternalQuestion data
* structure, or an HTMLQuestion data structure. The XML question data must not be
* larger than 64 kilobytes (65,535 bytes) in size, including whitespace. </p>
* <p>Either a Question parameter or a HITLayoutId parameter must be provided.</p>
*/
inline CreateHITWithHITTypeRequest& WithQuestion(const Aws::String& value) { SetQuestion(value); return *this;}
/**
* <p> The data the person completing the HIT uses to produce the results. </p> <p>
* Constraints: Must be a QuestionForm data structure, an ExternalQuestion data
* structure, or an HTMLQuestion data structure. The XML question data must not be
* larger than 64 kilobytes (65,535 bytes) in size, including whitespace. </p>
* <p>Either a Question parameter or a HITLayoutId parameter must be provided.</p>
*/
inline CreateHITWithHITTypeRequest& WithQuestion(Aws::String&& value) { SetQuestion(std::move(value)); return *this;}
/**
* <p> The data the person completing the HIT uses to produce the results. </p> <p>
* Constraints: Must be a QuestionForm data structure, an ExternalQuestion data
* structure, or an HTMLQuestion data structure. The XML question data must not be
* larger than 64 kilobytes (65,535 bytes) in size, including whitespace. </p>
* <p>Either a Question parameter or a HITLayoutId parameter must be provided.</p>
*/
inline CreateHITWithHITTypeRequest& WithQuestion(const char* value) { SetQuestion(value); return *this;}
/**
* <p> An arbitrary data field. The RequesterAnnotation parameter lets your
* application attach arbitrary data to the HIT for tracking purposes. For example,
* this parameter could be an identifier internal to the Requester's application
* that corresponds with the HIT. </p> <p> The RequesterAnnotation parameter for a
* HIT is only visible to the Requester who created the HIT. It is not shown to the
* Worker, or any other Requester. </p> <p> The RequesterAnnotation parameter may
* be different for each HIT you submit. It does not affect how your HITs are
* grouped. </p>
*/
inline const Aws::String& GetRequesterAnnotation() const{ return m_requesterAnnotation; }
/**
* <p> An arbitrary data field. The RequesterAnnotation parameter lets your
* application attach arbitrary data to the HIT for tracking purposes. For example,
* this parameter could be an identifier internal to the Requester's application
* that corresponds with the HIT. </p> <p> The RequesterAnnotation parameter for a
* HIT is only visible to the Requester who created the HIT. It is not shown to the
* Worker, or any other Requester. </p> <p> The RequesterAnnotation parameter may
* be different for each HIT you submit. It does not affect how your HITs are
* grouped. </p>
*/
inline bool RequesterAnnotationHasBeenSet() const { return m_requesterAnnotationHasBeenSet; }
/**
* <p> An arbitrary data field. The RequesterAnnotation parameter lets your
* application attach arbitrary data to the HIT for tracking purposes. For example,
* this parameter could be an identifier internal to the Requester's application
* that corresponds with the HIT. </p> <p> The RequesterAnnotation parameter for a
* HIT is only visible to the Requester who created the HIT. It is not shown to the
* Worker, or any other Requester. </p> <p> The RequesterAnnotation parameter may
* be different for each HIT you submit. It does not affect how your HITs are
* grouped. </p>
*/
inline void SetRequesterAnnotation(const Aws::String& value) { m_requesterAnnotationHasBeenSet = true; m_requesterAnnotation = value; }
/**
* <p> An arbitrary data field. The RequesterAnnotation parameter lets your
* application attach arbitrary data to the HIT for tracking purposes. For example,
* this parameter could be an identifier internal to the Requester's application
* that corresponds with the HIT. </p> <p> The RequesterAnnotation parameter for a
* HIT is only visible to the Requester who created the HIT. It is not shown to the
* Worker, or any other Requester. </p> <p> The RequesterAnnotation parameter may
* be different for each HIT you submit. It does not affect how your HITs are
* grouped. </p>
*/
inline void SetRequesterAnnotation(Aws::String&& value) { m_requesterAnnotationHasBeenSet = true; m_requesterAnnotation = std::move(value); }
/**
* <p> An arbitrary data field. The RequesterAnnotation parameter lets your
* application attach arbitrary data to the HIT for tracking purposes. For example,
* this parameter could be an identifier internal to the Requester's application
* that corresponds with the HIT. </p> <p> The RequesterAnnotation parameter for a
* HIT is only visible to the Requester who created the HIT. It is not shown to the
* Worker, or any other Requester. </p> <p> The RequesterAnnotation parameter may
* be different for each HIT you submit. It does not affect how your HITs are
* grouped. </p>
*/
inline void SetRequesterAnnotation(const char* value) { m_requesterAnnotationHasBeenSet = true; m_requesterAnnotation.assign(value); }
/**
* <p> An arbitrary data field. The RequesterAnnotation parameter lets your
* application attach arbitrary data to the HIT for tracking purposes. For example,
* this parameter could be an identifier internal to the Requester's application
* that corresponds with the HIT. </p> <p> The RequesterAnnotation parameter for a
* HIT is only visible to the Requester who created the HIT. It is not shown to the
* Worker, or any other Requester. </p> <p> The RequesterAnnotation parameter may
* be different for each HIT you submit. It does not affect how your HITs are
* grouped. </p>
*/
inline CreateHITWithHITTypeRequest& WithRequesterAnnotation(const Aws::String& value) { SetRequesterAnnotation(value); return *this;}
/**
* <p> An arbitrary data field. The RequesterAnnotation parameter lets your
* application attach arbitrary data to the HIT for tracking purposes. For example,
* this parameter could be an identifier internal to the Requester's application
* that corresponds with the HIT. </p> <p> The RequesterAnnotation parameter for a
* HIT is only visible to the Requester who created the HIT. It is not shown to the
* Worker, or any other Requester. </p> <p> The RequesterAnnotation parameter may
* be different for each HIT you submit. It does not affect how your HITs are
* grouped. </p>
*/
inline CreateHITWithHITTypeRequest& WithRequesterAnnotation(Aws::String&& value) { SetRequesterAnnotation(std::move(value)); return *this;}
/**
* <p> An arbitrary data field. The RequesterAnnotation parameter lets your
* application attach arbitrary data to the HIT for tracking purposes. For example,
* this parameter could be an identifier internal to the Requester's application
* that corresponds with the HIT. </p> <p> The RequesterAnnotation parameter for a
* HIT is only visible to the Requester who created the HIT. It is not shown to the
* Worker, or any other Requester. </p> <p> The RequesterAnnotation parameter may
* be different for each HIT you submit. It does not affect how your HITs are
* grouped. </p>
*/
inline CreateHITWithHITTypeRequest& WithRequesterAnnotation(const char* value) { SetRequesterAnnotation(value); return *this;}
/**
* <p> A unique identifier for this request which allows you to retry the call on
* error without creating duplicate HITs. This is useful in cases such as network
* timeouts where it is unclear whether or not the call succeeded on the server. If
* the HIT already exists in the system from a previous call using the same
* UniqueRequestToken, subsequent calls will return a
* AWS.MechanicalTurk.HitAlreadyExists error with a message containing the HITId.
* </p> <p> Note: It is your responsibility to ensure uniqueness of the
* token. The unique token expires after 24 hours. Subsequent calls using the same
* UniqueRequestToken made after the 24 hour limit could create duplicate HITs.
* </p>
*/
inline const Aws::String& GetUniqueRequestToken() const{ return m_uniqueRequestToken; }
/**
* <p> A unique identifier for this request which allows you to retry the call on
* error without creating duplicate HITs. This is useful in cases such as network
* timeouts where it is unclear whether or not the call succeeded on the server. If
* the HIT already exists in the system from a previous call using the same
* UniqueRequestToken, subsequent calls will return a
* AWS.MechanicalTurk.HitAlreadyExists error with a message containing the HITId.
* </p> <p> Note: It is your responsibility to ensure uniqueness of the
* token. The unique token expires after 24 hours. Subsequent calls using the same
* UniqueRequestToken made after the 24 hour limit could create duplicate HITs.
* </p>
*/
inline bool UniqueRequestTokenHasBeenSet() const { return m_uniqueRequestTokenHasBeenSet; }
/**
* <p> A unique identifier for this request which allows you to retry the call on
* error without creating duplicate HITs. This is useful in cases such as network
* timeouts where it is unclear whether or not the call succeeded on the server. If
* the HIT already exists in the system from a previous call using the same
* UniqueRequestToken, subsequent calls will return a
* AWS.MechanicalTurk.HitAlreadyExists error with a message containing the HITId.
* </p> <p> Note: It is your responsibility to ensure uniqueness of the
* token. The unique token expires after 24 hours. Subsequent calls using the same
* UniqueRequestToken made after the 24 hour limit could create duplicate HITs.
* </p>
*/
inline void SetUniqueRequestToken(const Aws::String& value) { m_uniqueRequestTokenHasBeenSet = true; m_uniqueRequestToken = value; }
/**
* <p> A unique identifier for this request which allows you to retry the call on
* error without creating duplicate HITs. This is useful in cases such as network
* timeouts where it is unclear whether or not the call succeeded on the server. If
* the HIT already exists in the system from a previous call using the same
* UniqueRequestToken, subsequent calls will return a
* AWS.MechanicalTurk.HitAlreadyExists error with a message containing the HITId.
* </p> <p> Note: It is your responsibility to ensure uniqueness of the
* token. The unique token expires after 24 hours. Subsequent calls using the same
* UniqueRequestToken made after the 24 hour limit could create duplicate HITs.
* </p>
*/
inline void SetUniqueRequestToken(Aws::String&& value) { m_uniqueRequestTokenHasBeenSet = true; m_uniqueRequestToken = std::move(value); }
/**
* <p> A unique identifier for this request which allows you to retry the call on
* error without creating duplicate HITs. This is useful in cases such as network
* timeouts where it is unclear whether or not the call succeeded on the server. If
* the HIT already exists in the system from a previous call using the same
* UniqueRequestToken, subsequent calls will return a
* AWS.MechanicalTurk.HitAlreadyExists error with a message containing the HITId.
* </p> <p> Note: It is your responsibility to ensure uniqueness of the
* token. The unique token expires after 24 hours. Subsequent calls using the same
* UniqueRequestToken made after the 24 hour limit could create duplicate HITs.
* </p>
*/
inline void SetUniqueRequestToken(const char* value) { m_uniqueRequestTokenHasBeenSet = true; m_uniqueRequestToken.assign(value); }
/**
* <p> A unique identifier for this request which allows you to retry the call on
* error without creating duplicate HITs. This is useful in cases such as network
* timeouts where it is unclear whether or not the call succeeded on the server. If
* the HIT already exists in the system from a previous call using the same
* UniqueRequestToken, subsequent calls will return a
* AWS.MechanicalTurk.HitAlreadyExists error with a message containing the HITId.
* </p> <p> Note: It is your responsibility to ensure uniqueness of the
* token. The unique token expires after 24 hours. Subsequent calls using the same
* UniqueRequestToken made after the 24 hour limit could create duplicate HITs.
* </p>
*/
inline CreateHITWithHITTypeRequest& WithUniqueRequestToken(const Aws::String& value) { SetUniqueRequestToken(value); return *this;}
/**
* <p> A unique identifier for this request which allows you to retry the call on
* error without creating duplicate HITs. This is useful in cases such as network
* timeouts where it is unclear whether or not the call succeeded on the server. If
* the HIT already exists in the system from a previous call using the same
* UniqueRequestToken, subsequent calls will return a
* AWS.MechanicalTurk.HitAlreadyExists error with a message containing the HITId.
* </p> <p> Note: It is your responsibility to ensure uniqueness of the
* token. The unique token expires after 24 hours. Subsequent calls using the same
* UniqueRequestToken made after the 24 hour limit could create duplicate HITs.
* </p>
*/
inline CreateHITWithHITTypeRequest& WithUniqueRequestToken(Aws::String&& value) { SetUniqueRequestToken(std::move(value)); return *this;}
/**
* <p> A unique identifier for this request which allows you to retry the call on
* error without creating duplicate HITs. This is useful in cases such as network
* timeouts where it is unclear whether or not the call succeeded on the server. If
* the HIT already exists in the system from a previous call using the same
* UniqueRequestToken, subsequent calls will return a
* AWS.MechanicalTurk.HitAlreadyExists error with a message containing the HITId.
* </p> <p> Note: It is your responsibility to ensure uniqueness of the
* token. The unique token expires after 24 hours. Subsequent calls using the same
* UniqueRequestToken made after the 24 hour limit could create duplicate HITs.
* </p>
*/
inline CreateHITWithHITTypeRequest& WithUniqueRequestToken(const char* value) { SetUniqueRequestToken(value); return *this;}
/**
* <p> The Assignment-level Review Policy applies to the assignments under the HIT.
* You can specify for Mechanical Turk to take various actions based on the policy.
* </p>
*/
inline const ReviewPolicy& GetAssignmentReviewPolicy() const{ return m_assignmentReviewPolicy; }
/**
* <p> The Assignment-level Review Policy applies to the assignments under the HIT.
* You can specify for Mechanical Turk to take various actions based on the policy.
* </p>
*/
inline bool AssignmentReviewPolicyHasBeenSet() const { return m_assignmentReviewPolicyHasBeenSet; }
/**
* <p> The Assignment-level Review Policy applies to the assignments under the HIT.
* You can specify for Mechanical Turk to take various actions based on the policy.
* </p>
*/
inline void SetAssignmentReviewPolicy(const ReviewPolicy& value) { m_assignmentReviewPolicyHasBeenSet = true; m_assignmentReviewPolicy = value; }
/**
* <p> The Assignment-level Review Policy applies to the assignments under the HIT.
* You can specify for Mechanical Turk to take various actions based on the policy.
* </p>
*/
inline void SetAssignmentReviewPolicy(ReviewPolicy&& value) { m_assignmentReviewPolicyHasBeenSet = true; m_assignmentReviewPolicy = std::move(value); }
/**
* <p> The Assignment-level Review Policy applies to the assignments under the HIT.
* You can specify for Mechanical Turk to take various actions based on the policy.
* </p>
*/
inline CreateHITWithHITTypeRequest& WithAssignmentReviewPolicy(const ReviewPolicy& value) { SetAssignmentReviewPolicy(value); return *this;}
/**
* <p> The Assignment-level Review Policy applies to the assignments under the HIT.
* You can specify for Mechanical Turk to take various actions based on the policy.
* </p>
*/
inline CreateHITWithHITTypeRequest& WithAssignmentReviewPolicy(ReviewPolicy&& value) { SetAssignmentReviewPolicy(std::move(value)); return *this;}
/**
* <p> The HIT-level Review Policy applies to the HIT. You can specify for
* Mechanical Turk to take various actions based on the policy. </p>
*/
inline const ReviewPolicy& GetHITReviewPolicy() const{ return m_hITReviewPolicy; }
/**
* <p> The HIT-level Review Policy applies to the HIT. You can specify for
* Mechanical Turk to take various actions based on the policy. </p>
*/
inline bool HITReviewPolicyHasBeenSet() const { return m_hITReviewPolicyHasBeenSet; }
/**
* <p> The HIT-level Review Policy applies to the HIT. You can specify for
* Mechanical Turk to take various actions based on the policy. </p>
*/
inline void SetHITReviewPolicy(const ReviewPolicy& value) { m_hITReviewPolicyHasBeenSet = true; m_hITReviewPolicy = value; }
/**
* <p> The HIT-level Review Policy applies to the HIT. You can specify for
* Mechanical Turk to take various actions based on the policy. </p>
*/
inline void SetHITReviewPolicy(ReviewPolicy&& value) { m_hITReviewPolicyHasBeenSet = true; m_hITReviewPolicy = std::move(value); }
/**
* <p> The HIT-level Review Policy applies to the HIT. You can specify for
* Mechanical Turk to take various actions based on the policy. </p>
*/
inline CreateHITWithHITTypeRequest& WithHITReviewPolicy(const ReviewPolicy& value) { SetHITReviewPolicy(value); return *this;}
/**
* <p> The HIT-level Review Policy applies to the HIT. You can specify for
* Mechanical Turk to take various actions based on the policy. </p>
*/
inline CreateHITWithHITTypeRequest& WithHITReviewPolicy(ReviewPolicy&& value) { SetHITReviewPolicy(std::move(value)); return *this;}
/**
* <p> The HITLayoutId allows you to use a pre-existing HIT design with placeholder
* values and create an additional HIT by providing those values as
* HITLayoutParameters. </p> <p> Constraints: Either a Question parameter or a
* HITLayoutId parameter must be provided. </p>
*/
inline const Aws::String& GetHITLayoutId() const{ return m_hITLayoutId; }
/**
* <p> The HITLayoutId allows you to use a pre-existing HIT design with placeholder
* values and create an additional HIT by providing those values as
* HITLayoutParameters. </p> <p> Constraints: Either a Question parameter or a
* HITLayoutId parameter must be provided. </p>
*/
inline bool HITLayoutIdHasBeenSet() const { return m_hITLayoutIdHasBeenSet; }
/**
* <p> The HITLayoutId allows you to use a pre-existing HIT design with placeholder
* values and create an additional HIT by providing those values as
* HITLayoutParameters. </p> <p> Constraints: Either a Question parameter or a
* HITLayoutId parameter must be provided. </p>
*/
inline void SetHITLayoutId(const Aws::String& value) { m_hITLayoutIdHasBeenSet = true; m_hITLayoutId = value; }
/**
* <p> The HITLayoutId allows you to use a pre-existing HIT design with placeholder
* values and create an additional HIT by providing those values as
* HITLayoutParameters. </p> <p> Constraints: Either a Question parameter or a
* HITLayoutId parameter must be provided. </p>
*/
inline void SetHITLayoutId(Aws::String&& value) { m_hITLayoutIdHasBeenSet = true; m_hITLayoutId = std::move(value); }
/**
* <p> The HITLayoutId allows you to use a pre-existing HIT design with placeholder
* values and create an additional HIT by providing those values as
* HITLayoutParameters. </p> <p> Constraints: Either a Question parameter or a
* HITLayoutId parameter must be provided. </p>
*/
inline void SetHITLayoutId(const char* value) { m_hITLayoutIdHasBeenSet = true; m_hITLayoutId.assign(value); }
/**
* <p> The HITLayoutId allows you to use a pre-existing HIT design with placeholder
* values and create an additional HIT by providing those values as
* HITLayoutParameters. </p> <p> Constraints: Either a Question parameter or a
* HITLayoutId parameter must be provided. </p>
*/
inline CreateHITWithHITTypeRequest& WithHITLayoutId(const Aws::String& value) { SetHITLayoutId(value); return *this;}
/**
* <p> The HITLayoutId allows you to use a pre-existing HIT design with placeholder
* values and create an additional HIT by providing those values as
* HITLayoutParameters. </p> <p> Constraints: Either a Question parameter or a
* HITLayoutId parameter must be provided. </p>
*/
inline CreateHITWithHITTypeRequest& WithHITLayoutId(Aws::String&& value) { SetHITLayoutId(std::move(value)); return *this;}
/**
* <p> The HITLayoutId allows you to use a pre-existing HIT design with placeholder
* values and create an additional HIT by providing those values as
* HITLayoutParameters. </p> <p> Constraints: Either a Question parameter or a
* HITLayoutId parameter must be provided. </p>
*/
inline CreateHITWithHITTypeRequest& WithHITLayoutId(const char* value) { SetHITLayoutId(value); return *this;}
/**
* <p> If the HITLayoutId is provided, any placeholder values must be filled in
* with values using the HITLayoutParameter structure. For more information, see
* HITLayout. </p>
*/
inline const Aws::Vector<HITLayoutParameter>& GetHITLayoutParameters() const{ return m_hITLayoutParameters; }
/**
* <p> If the HITLayoutId is provided, any placeholder values must be filled in
* with values using the HITLayoutParameter structure. For more information, see
* HITLayout. </p>
*/
inline bool HITLayoutParametersHasBeenSet() const { return m_hITLayoutParametersHasBeenSet; }
/**
* <p> If the HITLayoutId is provided, any placeholder values must be filled in
* with values using the HITLayoutParameter structure. For more information, see
* HITLayout. </p>
*/
inline void SetHITLayoutParameters(const Aws::Vector<HITLayoutParameter>& value) { m_hITLayoutParametersHasBeenSet = true; m_hITLayoutParameters = value; }
/**
* <p> If the HITLayoutId is provided, any placeholder values must be filled in
* with values using the HITLayoutParameter structure. For more information, see
* HITLayout. </p>
*/
inline void SetHITLayoutParameters(Aws::Vector<HITLayoutParameter>&& value) { m_hITLayoutParametersHasBeenSet = true; m_hITLayoutParameters = std::move(value); }
/**
* <p> If the HITLayoutId is provided, any placeholder values must be filled in
* with values using the HITLayoutParameter structure. For more information, see
* HITLayout. </p>
*/
inline CreateHITWithHITTypeRequest& WithHITLayoutParameters(const Aws::Vector<HITLayoutParameter>& value) { SetHITLayoutParameters(value); return *this;}
/**
* <p> If the HITLayoutId is provided, any placeholder values must be filled in
* with values using the HITLayoutParameter structure. For more information, see
* HITLayout. </p>
*/
inline CreateHITWithHITTypeRequest& WithHITLayoutParameters(Aws::Vector<HITLayoutParameter>&& value) { SetHITLayoutParameters(std::move(value)); return *this;}
/**
* <p> If the HITLayoutId is provided, any placeholder values must be filled in
* with values using the HITLayoutParameter structure. For more information, see
* HITLayout. </p>
*/
inline CreateHITWithHITTypeRequest& AddHITLayoutParameters(const HITLayoutParameter& value) { m_hITLayoutParametersHasBeenSet = true; m_hITLayoutParameters.push_back(value); return *this; }
/**
* <p> If the HITLayoutId is provided, any placeholder values must be filled in
* with values using the HITLayoutParameter structure. For more information, see
* HITLayout. </p>
*/
inline CreateHITWithHITTypeRequest& AddHITLayoutParameters(HITLayoutParameter&& value) { m_hITLayoutParametersHasBeenSet = true; m_hITLayoutParameters.push_back(std::move(value)); return *this; }
private:
Aws::String m_hITTypeId;
bool m_hITTypeIdHasBeenSet;
int m_maxAssignments;
bool m_maxAssignmentsHasBeenSet;
long long m_lifetimeInSeconds;
bool m_lifetimeInSecondsHasBeenSet;
Aws::String m_question;
bool m_questionHasBeenSet;
Aws::String m_requesterAnnotation;
bool m_requesterAnnotationHasBeenSet;
Aws::String m_uniqueRequestToken;
bool m_uniqueRequestTokenHasBeenSet;
ReviewPolicy m_assignmentReviewPolicy;
bool m_assignmentReviewPolicyHasBeenSet;
ReviewPolicy m_hITReviewPolicy;
bool m_hITReviewPolicyHasBeenSet;
Aws::String m_hITLayoutId;
bool m_hITLayoutIdHasBeenSet;
Aws::Vector<HITLayoutParameter> m_hITLayoutParameters;
bool m_hITLayoutParametersHasBeenSet;
};
} // namespace Model
} // namespace MTurk
} // namespace Aws

View File

@@ -0,0 +1,77 @@
/**
* 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/model/HIT.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace MTurk
{
namespace Model
{
class AWS_MTURK_API CreateHITWithHITTypeResult
{
public:
CreateHITWithHITTypeResult();
CreateHITWithHITTypeResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateHITWithHITTypeResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p> Contains the newly created HIT data. For a description of the HIT data
* structure as it appears in responses, see the HIT Data Structure documentation.
* </p>
*/
inline const HIT& GetHIT() const{ return m_hIT; }
/**
* <p> Contains the newly created HIT data. For a description of the HIT data
* structure as it appears in responses, see the HIT Data Structure documentation.
* </p>
*/
inline void SetHIT(const HIT& value) { m_hIT = value; }
/**
* <p> Contains the newly created HIT data. For a description of the HIT data
* structure as it appears in responses, see the HIT Data Structure documentation.
* </p>
*/
inline void SetHIT(HIT&& value) { m_hIT = std::move(value); }
/**
* <p> Contains the newly created HIT data. For a description of the HIT data
* structure as it appears in responses, see the HIT Data Structure documentation.
* </p>
*/
inline CreateHITWithHITTypeResult& WithHIT(const HIT& value) { SetHIT(value); return *this;}
/**
* <p> Contains the newly created HIT data. For a description of the HIT data
* structure as it appears in responses, see the HIT Data Structure documentation.
* </p>
*/
inline CreateHITWithHITTypeResult& WithHIT(HIT&& value) { SetHIT(std::move(value)); return *this;}
private:
HIT m_hIT;
};
} // namespace Model
} // namespace MTurk
} // namespace Aws

View File

@@ -0,0 +1,578 @@
/**
* 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 <aws/mturk-requester/model/QualificationTypeStatus.h>
#include <utility>
namespace Aws
{
namespace MTurk
{
namespace Model
{
/**
*/
class AWS_MTURK_API CreateQualificationTypeRequest : public MTurkRequest
{
public:
CreateQualificationTypeRequest();
// 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 "CreateQualificationType"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p> The name you give to the Qualification type. The type name is used to
* represent the Qualification to Workers, and to find the type using a
* Qualification type search. It must be unique across all of your Qualification
* types.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p> The name you give to the Qualification type. The type name is used to
* represent the Qualification to Workers, and to find the type using a
* Qualification type search. It must be unique across all of your Qualification
* types.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p> The name you give to the Qualification type. The type name is used to
* represent the Qualification to Workers, and to find the type using a
* Qualification type search. It must be unique across all of your Qualification
* types.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p> The name you give to the Qualification type. The type name is used to
* represent the Qualification to Workers, and to find the type using a
* Qualification type search. It must be unique across all of your Qualification
* types.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p> The name you give to the Qualification type. The type name is used to
* represent the Qualification to Workers, and to find the type using a
* Qualification type search. It must be unique across all of your Qualification
* types.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p> The name you give to the Qualification type. The type name is used to
* represent the Qualification to Workers, and to find the type using a
* Qualification type search. It must be unique across all of your Qualification
* types.</p>
*/
inline CreateQualificationTypeRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p> The name you give to the Qualification type. The type name is used to
* represent the Qualification to Workers, and to find the type using a
* Qualification type search. It must be unique across all of your Qualification
* types.</p>
*/
inline CreateQualificationTypeRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p> The name you give to the Qualification type. The type name is used to
* represent the Qualification to Workers, and to find the type using a
* Qualification type search. It must be unique across all of your Qualification
* types.</p>
*/
inline CreateQualificationTypeRequest& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>One or more words or phrases that describe the Qualification type, separated
* by commas. The keywords of a type make the type easier to find during a
* search.</p>
*/
inline const Aws::String& GetKeywords() const{ return m_keywords; }
/**
* <p>One or more words or phrases that describe the Qualification type, separated
* by commas. The keywords of a type make the type easier to find during a
* search.</p>
*/
inline bool KeywordsHasBeenSet() const { return m_keywordsHasBeenSet; }
/**
* <p>One or more words or phrases that describe the Qualification type, separated
* by commas. The keywords of a type make the type easier to find during a
* search.</p>
*/
inline void SetKeywords(const Aws::String& value) { m_keywordsHasBeenSet = true; m_keywords = value; }
/**
* <p>One or more words or phrases that describe the Qualification type, separated
* by commas. The keywords of a type make the type easier to find during a
* search.</p>
*/
inline void SetKeywords(Aws::String&& value) { m_keywordsHasBeenSet = true; m_keywords = std::move(value); }
/**
* <p>One or more words or phrases that describe the Qualification type, separated
* by commas. The keywords of a type make the type easier to find during a
* search.</p>
*/
inline void SetKeywords(const char* value) { m_keywordsHasBeenSet = true; m_keywords.assign(value); }
/**
* <p>One or more words or phrases that describe the Qualification type, separated
* by commas. The keywords of a type make the type easier to find during a
* search.</p>
*/
inline CreateQualificationTypeRequest& WithKeywords(const Aws::String& value) { SetKeywords(value); return *this;}
/**
* <p>One or more words or phrases that describe the Qualification type, separated
* by commas. The keywords of a type make the type easier to find during a
* search.</p>
*/
inline CreateQualificationTypeRequest& WithKeywords(Aws::String&& value) { SetKeywords(std::move(value)); return *this;}
/**
* <p>One or more words or phrases that describe the Qualification type, separated
* by commas. The keywords of a type make the type easier to find during a
* search.</p>
*/
inline CreateQualificationTypeRequest& WithKeywords(const char* value) { SetKeywords(value); return *this;}
/**
* <p>A long description for the Qualification type. On the Amazon Mechanical Turk
* website, the long description is displayed when a Worker examines a
* Qualification type.</p>
*/
inline const Aws::String& GetDescription() const{ return m_description; }
/**
* <p>A long description for the Qualification type. On the Amazon Mechanical Turk
* website, the long description is displayed when a Worker examines a
* Qualification type.</p>
*/
inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
/**
* <p>A long description for the Qualification type. On the Amazon Mechanical Turk
* website, the long description is displayed when a Worker examines a
* Qualification type.</p>
*/
inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
/**
* <p>A long description for the Qualification type. On the Amazon Mechanical Turk
* website, the long description is displayed when a Worker examines a
* Qualification type.</p>
*/
inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
/**
* <p>A long description for the Qualification type. On the Amazon Mechanical Turk
* website, the long description is displayed when a Worker examines a
* Qualification type.</p>
*/
inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
/**
* <p>A long description for the Qualification type. On the Amazon Mechanical Turk
* website, the long description is displayed when a Worker examines a
* Qualification type.</p>
*/
inline CreateQualificationTypeRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
/**
* <p>A long description for the Qualification type. On the Amazon Mechanical Turk
* website, the long description is displayed when a Worker examines a
* Qualification type.</p>
*/
inline CreateQualificationTypeRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
/**
* <p>A long description for the Qualification type. On the Amazon Mechanical Turk
* website, the long description is displayed when a Worker examines a
* Qualification type.</p>
*/
inline CreateQualificationTypeRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
/**
* <p>The initial status of the Qualification type.</p> <p>Constraints: Valid
* values are: Active | Inactive</p>
*/
inline const QualificationTypeStatus& GetQualificationTypeStatus() const{ return m_qualificationTypeStatus; }
/**
* <p>The initial status of the Qualification type.</p> <p>Constraints: Valid
* values are: Active | Inactive</p>
*/
inline bool QualificationTypeStatusHasBeenSet() const { return m_qualificationTypeStatusHasBeenSet; }
/**
* <p>The initial status of the Qualification type.</p> <p>Constraints: Valid
* values are: Active | Inactive</p>
*/
inline void SetQualificationTypeStatus(const QualificationTypeStatus& value) { m_qualificationTypeStatusHasBeenSet = true; m_qualificationTypeStatus = value; }
/**
* <p>The initial status of the Qualification type.</p> <p>Constraints: Valid
* values are: Active | Inactive</p>
*/
inline void SetQualificationTypeStatus(QualificationTypeStatus&& value) { m_qualificationTypeStatusHasBeenSet = true; m_qualificationTypeStatus = std::move(value); }
/**
* <p>The initial status of the Qualification type.</p> <p>Constraints: Valid
* values are: Active | Inactive</p>
*/
inline CreateQualificationTypeRequest& WithQualificationTypeStatus(const QualificationTypeStatus& value) { SetQualificationTypeStatus(value); return *this;}
/**
* <p>The initial status of the Qualification type.</p> <p>Constraints: Valid
* values are: Active | Inactive</p>
*/
inline CreateQualificationTypeRequest& WithQualificationTypeStatus(QualificationTypeStatus&& value) { SetQualificationTypeStatus(std::move(value)); return *this;}
/**
* <p>The number of seconds that a Worker must wait after requesting a
* Qualification of the Qualification type before the worker can retry the
* Qualification request.</p> <p>Constraints: None. If not specified, retries are
* disabled and Workers can request a Qualification of this type only once, even if
* the Worker has not been granted the Qualification. It is not possible to disable
* retries for a Qualification type after it has been created with retries enabled.
* If you want to disable retries, you must delete existing retry-enabled
* Qualification type and then create a new Qualification type with retries
* disabled.</p>
*/
inline long long GetRetryDelayInSeconds() const{ return m_retryDelayInSeconds; }
/**
* <p>The number of seconds that a Worker must wait after requesting a
* Qualification of the Qualification type before the worker can retry the
* Qualification request.</p> <p>Constraints: None. If not specified, retries are
* disabled and Workers can request a Qualification of this type only once, even if
* the Worker has not been granted the Qualification. It is not possible to disable
* retries for a Qualification type after it has been created with retries enabled.
* If you want to disable retries, you must delete existing retry-enabled
* Qualification type and then create a new Qualification type with retries
* disabled.</p>
*/
inline bool RetryDelayInSecondsHasBeenSet() const { return m_retryDelayInSecondsHasBeenSet; }
/**
* <p>The number of seconds that a Worker must wait after requesting a
* Qualification of the Qualification type before the worker can retry the
* Qualification request.</p> <p>Constraints: None. If not specified, retries are
* disabled and Workers can request a Qualification of this type only once, even if
* the Worker has not been granted the Qualification. It is not possible to disable
* retries for a Qualification type after it has been created with retries enabled.
* If you want to disable retries, you must delete existing retry-enabled
* Qualification type and then create a new Qualification type with retries
* disabled.</p>
*/
inline void SetRetryDelayInSeconds(long long value) { m_retryDelayInSecondsHasBeenSet = true; m_retryDelayInSeconds = value; }
/**
* <p>The number of seconds that a Worker must wait after requesting a
* Qualification of the Qualification type before the worker can retry the
* Qualification request.</p> <p>Constraints: None. If not specified, retries are
* disabled and Workers can request a Qualification of this type only once, even if
* the Worker has not been granted the Qualification. It is not possible to disable
* retries for a Qualification type after it has been created with retries enabled.
* If you want to disable retries, you must delete existing retry-enabled
* Qualification type and then create a new Qualification type with retries
* disabled.</p>
*/
inline CreateQualificationTypeRequest& WithRetryDelayInSeconds(long long value) { SetRetryDelayInSeconds(value); return *this;}
/**
* <p> The questions for the Qualification test a Worker must answer correctly to
* obtain a Qualification of this type. If this parameter is specified,
* <code>TestDurationInSeconds</code> must also be specified. </p> <p>Constraints:
* Must not be longer than 65535 bytes. Must be a QuestionForm data structure. This
* parameter cannot be specified if AutoGranted is true.</p> <p>Constraints: None.
* If not specified, the Worker may request the Qualification without answering any
* questions.</p>
*/
inline const Aws::String& GetTest() const{ return m_test; }
/**
* <p> The questions for the Qualification test a Worker must answer correctly to
* obtain a Qualification of this type. If this parameter is specified,
* <code>TestDurationInSeconds</code> must also be specified. </p> <p>Constraints:
* Must not be longer than 65535 bytes. Must be a QuestionForm data structure. This
* parameter cannot be specified if AutoGranted is true.</p> <p>Constraints: None.
* If not specified, the Worker may request the Qualification without answering any
* questions.</p>
*/
inline bool TestHasBeenSet() const { return m_testHasBeenSet; }
/**
* <p> The questions for the Qualification test a Worker must answer correctly to
* obtain a Qualification of this type. If this parameter is specified,
* <code>TestDurationInSeconds</code> must also be specified. </p> <p>Constraints:
* Must not be longer than 65535 bytes. Must be a QuestionForm data structure. This
* parameter cannot be specified if AutoGranted is true.</p> <p>Constraints: None.
* If not specified, the Worker may request the Qualification without answering any
* questions.</p>
*/
inline void SetTest(const Aws::String& value) { m_testHasBeenSet = true; m_test = value; }
/**
* <p> The questions for the Qualification test a Worker must answer correctly to
* obtain a Qualification of this type. If this parameter is specified,
* <code>TestDurationInSeconds</code> must also be specified. </p> <p>Constraints:
* Must not be longer than 65535 bytes. Must be a QuestionForm data structure. This
* parameter cannot be specified if AutoGranted is true.</p> <p>Constraints: None.
* If not specified, the Worker may request the Qualification without answering any
* questions.</p>
*/
inline void SetTest(Aws::String&& value) { m_testHasBeenSet = true; m_test = std::move(value); }
/**
* <p> The questions for the Qualification test a Worker must answer correctly to
* obtain a Qualification of this type. If this parameter is specified,
* <code>TestDurationInSeconds</code> must also be specified. </p> <p>Constraints:
* Must not be longer than 65535 bytes. Must be a QuestionForm data structure. This
* parameter cannot be specified if AutoGranted is true.</p> <p>Constraints: None.
* If not specified, the Worker may request the Qualification without answering any
* questions.</p>
*/
inline void SetTest(const char* value) { m_testHasBeenSet = true; m_test.assign(value); }
/**
* <p> The questions for the Qualification test a Worker must answer correctly to
* obtain a Qualification of this type. If this parameter is specified,
* <code>TestDurationInSeconds</code> must also be specified. </p> <p>Constraints:
* Must not be longer than 65535 bytes. Must be a QuestionForm data structure. This
* parameter cannot be specified if AutoGranted is true.</p> <p>Constraints: None.
* If not specified, the Worker may request the Qualification without answering any
* questions.</p>
*/
inline CreateQualificationTypeRequest& WithTest(const Aws::String& value) { SetTest(value); return *this;}
/**
* <p> The questions for the Qualification test a Worker must answer correctly to
* obtain a Qualification of this type. If this parameter is specified,
* <code>TestDurationInSeconds</code> must also be specified. </p> <p>Constraints:
* Must not be longer than 65535 bytes. Must be a QuestionForm data structure. This
* parameter cannot be specified if AutoGranted is true.</p> <p>Constraints: None.
* If not specified, the Worker may request the Qualification without answering any
* questions.</p>
*/
inline CreateQualificationTypeRequest& WithTest(Aws::String&& value) { SetTest(std::move(value)); return *this;}
/**
* <p> The questions for the Qualification test a Worker must answer correctly to
* obtain a Qualification of this type. If this parameter is specified,
* <code>TestDurationInSeconds</code> must also be specified. </p> <p>Constraints:
* Must not be longer than 65535 bytes. Must be a QuestionForm data structure. This
* parameter cannot be specified if AutoGranted is true.</p> <p>Constraints: None.
* If not specified, the Worker may request the Qualification without answering any
* questions.</p>
*/
inline CreateQualificationTypeRequest& WithTest(const char* value) { SetTest(value); return *this;}
/**
* <p>The answers to the Qualification test specified in the Test parameter, in the
* form of an AnswerKey data structure.</p> <p>Constraints: Must not be longer than
* 65535 bytes.</p> <p>Constraints: None. If not specified, you must process
* Qualification requests manually.</p>
*/
inline const Aws::String& GetAnswerKey() const{ return m_answerKey; }
/**
* <p>The answers to the Qualification test specified in the Test parameter, in the
* form of an AnswerKey data structure.</p> <p>Constraints: Must not be longer than
* 65535 bytes.</p> <p>Constraints: None. If not specified, you must process
* Qualification requests manually.</p>
*/
inline bool AnswerKeyHasBeenSet() const { return m_answerKeyHasBeenSet; }
/**
* <p>The answers to the Qualification test specified in the Test parameter, in the
* form of an AnswerKey data structure.</p> <p>Constraints: Must not be longer than
* 65535 bytes.</p> <p>Constraints: None. If not specified, you must process
* Qualification requests manually.</p>
*/
inline void SetAnswerKey(const Aws::String& value) { m_answerKeyHasBeenSet = true; m_answerKey = value; }
/**
* <p>The answers to the Qualification test specified in the Test parameter, in the
* form of an AnswerKey data structure.</p> <p>Constraints: Must not be longer than
* 65535 bytes.</p> <p>Constraints: None. If not specified, you must process
* Qualification requests manually.</p>
*/
inline void SetAnswerKey(Aws::String&& value) { m_answerKeyHasBeenSet = true; m_answerKey = std::move(value); }
/**
* <p>The answers to the Qualification test specified in the Test parameter, in the
* form of an AnswerKey data structure.</p> <p>Constraints: Must not be longer than
* 65535 bytes.</p> <p>Constraints: None. If not specified, you must process
* Qualification requests manually.</p>
*/
inline void SetAnswerKey(const char* value) { m_answerKeyHasBeenSet = true; m_answerKey.assign(value); }
/**
* <p>The answers to the Qualification test specified in the Test parameter, in the
* form of an AnswerKey data structure.</p> <p>Constraints: Must not be longer than
* 65535 bytes.</p> <p>Constraints: None. If not specified, you must process
* Qualification requests manually.</p>
*/
inline CreateQualificationTypeRequest& WithAnswerKey(const Aws::String& value) { SetAnswerKey(value); return *this;}
/**
* <p>The answers to the Qualification test specified in the Test parameter, in the
* form of an AnswerKey data structure.</p> <p>Constraints: Must not be longer than
* 65535 bytes.</p> <p>Constraints: None. If not specified, you must process
* Qualification requests manually.</p>
*/
inline CreateQualificationTypeRequest& WithAnswerKey(Aws::String&& value) { SetAnswerKey(std::move(value)); return *this;}
/**
* <p>The answers to the Qualification test specified in the Test parameter, in the
* form of an AnswerKey data structure.</p> <p>Constraints: Must not be longer than
* 65535 bytes.</p> <p>Constraints: None. If not specified, you must process
* Qualification requests manually.</p>
*/
inline CreateQualificationTypeRequest& WithAnswerKey(const char* value) { SetAnswerKey(value); return *this;}
/**
* <p>The number of seconds the Worker has to complete the Qualification test,
* starting from the time the Worker requests the Qualification.</p>
*/
inline long long GetTestDurationInSeconds() const{ return m_testDurationInSeconds; }
/**
* <p>The number of seconds the Worker has to complete the Qualification test,
* starting from the time the Worker requests the Qualification.</p>
*/
inline bool TestDurationInSecondsHasBeenSet() const { return m_testDurationInSecondsHasBeenSet; }
/**
* <p>The number of seconds the Worker has to complete the Qualification test,
* starting from the time the Worker requests the Qualification.</p>
*/
inline void SetTestDurationInSeconds(long long value) { m_testDurationInSecondsHasBeenSet = true; m_testDurationInSeconds = value; }
/**
* <p>The number of seconds the Worker has to complete the Qualification test,
* starting from the time the Worker requests the Qualification.</p>
*/
inline CreateQualificationTypeRequest& WithTestDurationInSeconds(long long value) { SetTestDurationInSeconds(value); return *this;}
/**
* <p>Specifies whether requests for the Qualification type are granted
* immediately, without prompting the Worker with a Qualification test.</p>
* <p>Constraints: If the Test parameter is specified, this parameter cannot be
* true.</p>
*/
inline bool GetAutoGranted() const{ return m_autoGranted; }
/**
* <p>Specifies whether requests for the Qualification type are granted
* immediately, without prompting the Worker with a Qualification test.</p>
* <p>Constraints: If the Test parameter is specified, this parameter cannot be
* true.</p>
*/
inline bool AutoGrantedHasBeenSet() const { return m_autoGrantedHasBeenSet; }
/**
* <p>Specifies whether requests for the Qualification type are granted
* immediately, without prompting the Worker with a Qualification test.</p>
* <p>Constraints: If the Test parameter is specified, this parameter cannot be
* true.</p>
*/
inline void SetAutoGranted(bool value) { m_autoGrantedHasBeenSet = true; m_autoGranted = value; }
/**
* <p>Specifies whether requests for the Qualification type are granted
* immediately, without prompting the Worker with a Qualification test.</p>
* <p>Constraints: If the Test parameter is specified, this parameter cannot be
* true.</p>
*/
inline CreateQualificationTypeRequest& WithAutoGranted(bool value) { SetAutoGranted(value); return *this;}
/**
* <p>The Qualification value to use for automatically granted Qualifications. This
* parameter is used only if the AutoGranted parameter is true.</p>
*/
inline int GetAutoGrantedValue() const{ return m_autoGrantedValue; }
/**
* <p>The Qualification value to use for automatically granted Qualifications. This
* parameter is used only if the AutoGranted parameter is true.</p>
*/
inline bool AutoGrantedValueHasBeenSet() const { return m_autoGrantedValueHasBeenSet; }
/**
* <p>The Qualification value to use for automatically granted Qualifications. This
* parameter is used only if the AutoGranted parameter is true.</p>
*/
inline void SetAutoGrantedValue(int value) { m_autoGrantedValueHasBeenSet = true; m_autoGrantedValue = value; }
/**
* <p>The Qualification value to use for automatically granted Qualifications. This
* parameter is used only if the AutoGranted parameter is true.</p>
*/
inline CreateQualificationTypeRequest& WithAutoGrantedValue(int value) { SetAutoGrantedValue(value); return *this;}
private:
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::String m_keywords;
bool m_keywordsHasBeenSet;
Aws::String m_description;
bool m_descriptionHasBeenSet;
QualificationTypeStatus m_qualificationTypeStatus;
bool m_qualificationTypeStatusHasBeenSet;
long long m_retryDelayInSeconds;
bool m_retryDelayInSecondsHasBeenSet;
Aws::String m_test;
bool m_testHasBeenSet;
Aws::String m_answerKey;
bool m_answerKeyHasBeenSet;
long long m_testDurationInSeconds;
bool m_testDurationInSecondsHasBeenSet;
bool m_autoGranted;
bool m_autoGrantedHasBeenSet;
int m_autoGrantedValue;
bool m_autoGrantedValueHasBeenSet;
};
} // namespace Model
} // namespace MTurk
} // namespace Aws

View File

@@ -0,0 +1,72 @@
/**
* 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/model/QualificationType.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace MTurk
{
namespace Model
{
class AWS_MTURK_API CreateQualificationTypeResult
{
public:
CreateQualificationTypeResult();
CreateQualificationTypeResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateQualificationTypeResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The created Qualification type, returned as a QualificationType data
* structure.</p>
*/
inline const QualificationType& GetQualificationType() const{ return m_qualificationType; }
/**
* <p>The created Qualification type, returned as a QualificationType data
* structure.</p>
*/
inline void SetQualificationType(const QualificationType& value) { m_qualificationType = value; }
/**
* <p>The created Qualification type, returned as a QualificationType data
* structure.</p>
*/
inline void SetQualificationType(QualificationType&& value) { m_qualificationType = std::move(value); }
/**
* <p>The created Qualification type, returned as a QualificationType data
* structure.</p>
*/
inline CreateQualificationTypeResult& WithQualificationType(const QualificationType& value) { SetQualificationType(value); return *this;}
/**
* <p>The created Qualification type, returned as a QualificationType data
* structure.</p>
*/
inline CreateQualificationTypeResult& WithQualificationType(QualificationType&& value) { SetQualificationType(std::move(value)); return *this;}
private:
QualificationType m_qualificationType;
};
} // namespace Model
} // namespace MTurk
} // namespace Aws

View File

@@ -0,0 +1,145 @@
/**
* 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 CreateWorkerBlockRequest : public MTurkRequest
{
public:
CreateWorkerBlockRequest();
// 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 "CreateWorkerBlock"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The ID of the Worker to block.</p>
*/
inline const Aws::String& GetWorkerId() const{ return m_workerId; }
/**
* <p>The ID of the Worker to block.</p>
*/
inline bool WorkerIdHasBeenSet() const { return m_workerIdHasBeenSet; }
/**
* <p>The ID of the Worker to block.</p>
*/
inline void SetWorkerId(const Aws::String& value) { m_workerIdHasBeenSet = true; m_workerId = value; }
/**
* <p>The ID of the Worker to block.</p>
*/
inline void SetWorkerId(Aws::String&& value) { m_workerIdHasBeenSet = true; m_workerId = std::move(value); }
/**
* <p>The ID of the Worker to block.</p>
*/
inline void SetWorkerId(const char* value) { m_workerIdHasBeenSet = true; m_workerId.assign(value); }
/**
* <p>The ID of the Worker to block.</p>
*/
inline CreateWorkerBlockRequest& WithWorkerId(const Aws::String& value) { SetWorkerId(value); return *this;}
/**
* <p>The ID of the Worker to block.</p>
*/
inline CreateWorkerBlockRequest& WithWorkerId(Aws::String&& value) { SetWorkerId(std::move(value)); return *this;}
/**
* <p>The ID of the Worker to block.</p>
*/
inline CreateWorkerBlockRequest& WithWorkerId(const char* value) { SetWorkerId(value); return *this;}
/**
* <p>A message explaining the reason for blocking the Worker. This parameter
* enables you to keep track of your Workers. The Worker does not see this
* message.</p>
*/
inline const Aws::String& GetReason() const{ return m_reason; }
/**
* <p>A message explaining the reason for blocking the Worker. This parameter
* enables you to keep track of your Workers. The Worker does not see this
* message.</p>
*/
inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
/**
* <p>A message explaining the reason for blocking the Worker. This parameter
* enables you to keep track of your Workers. The Worker does not see this
* message.</p>
*/
inline void SetReason(const Aws::String& value) { m_reasonHasBeenSet = true; m_reason = value; }
/**
* <p>A message explaining the reason for blocking the Worker. This parameter
* enables you to keep track of your Workers. The Worker does not see this
* message.</p>
*/
inline void SetReason(Aws::String&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
/**
* <p>A message explaining the reason for blocking the Worker. This parameter
* enables you to keep track of your Workers. The Worker does not see this
* message.</p>
*/
inline void SetReason(const char* value) { m_reasonHasBeenSet = true; m_reason.assign(value); }
/**
* <p>A message explaining the reason for blocking the Worker. This parameter
* enables you to keep track of your Workers. The Worker does not see this
* message.</p>
*/
inline CreateWorkerBlockRequest& WithReason(const Aws::String& value) { SetReason(value); return *this;}
/**
* <p>A message explaining the reason for blocking the Worker. This parameter
* enables you to keep track of your Workers. The Worker does not see this
* message.</p>
*/
inline CreateWorkerBlockRequest& WithReason(Aws::String&& value) { SetReason(std::move(value)); return *this;}
/**
* <p>A message explaining the reason for blocking the Worker. This parameter
* enables you to keep track of your Workers. The Worker does not see this
* message.</p>
*/
inline CreateWorkerBlockRequest& WithReason(const char* value) { SetReason(value); return *this;}
private:
Aws::String m_workerId;
bool m_workerIdHasBeenSet;
Aws::String m_reason;
bool m_reasonHasBeenSet;
};
} // namespace Model
} // namespace MTurk
} // namespace Aws

View File

@@ -0,0 +1,36 @@
/**
* 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>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace MTurk
{
namespace Model
{
class AWS_MTURK_API CreateWorkerBlockResult
{
public:
CreateWorkerBlockResult();
CreateWorkerBlockResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateWorkerBlockResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace MTurk
} // namespace Aws

View File

@@ -0,0 +1,85 @@
/**
* 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 DeleteHITRequest : public MTurkRequest
{
public:
DeleteHITRequest();
// 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 "DeleteHIT"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The ID of the HIT to be deleted.</p>
*/
inline const Aws::String& GetHITId() const{ return m_hITId; }
/**
* <p>The ID of the HIT to be deleted.</p>
*/
inline bool HITIdHasBeenSet() const { return m_hITIdHasBeenSet; }
/**
* <p>The ID of the HIT to be deleted.</p>
*/
inline void SetHITId(const Aws::String& value) { m_hITIdHasBeenSet = true; m_hITId = value; }
/**
* <p>The ID of the HIT to be deleted.</p>
*/
inline void SetHITId(Aws::String&& value) { m_hITIdHasBeenSet = true; m_hITId = std::move(value); }
/**
* <p>The ID of the HIT to be deleted.</p>
*/
inline void SetHITId(const char* value) { m_hITIdHasBeenSet = true; m_hITId.assign(value); }
/**
* <p>The ID of the HIT to be deleted.</p>
*/
inline DeleteHITRequest& WithHITId(const Aws::String& value) { SetHITId(value); return *this;}
/**
* <p>The ID of the HIT to be deleted.</p>
*/
inline DeleteHITRequest& WithHITId(Aws::String&& value) { SetHITId(std::move(value)); return *this;}
/**
* <p>The ID of the HIT to be deleted.</p>
*/
inline DeleteHITRequest& WithHITId(const char* value) { SetHITId(value); return *this;}
private:
Aws::String m_hITId;
bool m_hITIdHasBeenSet;
};
} // namespace Model
} // namespace MTurk
} // namespace Aws

View File

@@ -0,0 +1,36 @@
/**
* 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>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace MTurk
{
namespace Model
{
class AWS_MTURK_API DeleteHITResult
{
public:
DeleteHITResult();
DeleteHITResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DeleteHITResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace MTurk
} // namespace Aws

View File

@@ -0,0 +1,85 @@
/**
* 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 DeleteQualificationTypeRequest : public MTurkRequest
{
public:
DeleteQualificationTypeRequest();
// 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 "DeleteQualificationType"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The ID of the QualificationType to dispose.</p>
*/
inline const Aws::String& GetQualificationTypeId() const{ return m_qualificationTypeId; }
/**
* <p>The ID of the QualificationType to dispose.</p>
*/
inline bool QualificationTypeIdHasBeenSet() const { return m_qualificationTypeIdHasBeenSet; }
/**
* <p>The ID of the QualificationType to dispose.</p>
*/
inline void SetQualificationTypeId(const Aws::String& value) { m_qualificationTypeIdHasBeenSet = true; m_qualificationTypeId = value; }
/**
* <p>The ID of the QualificationType to dispose.</p>
*/
inline void SetQualificationTypeId(Aws::String&& value) { m_qualificationTypeIdHasBeenSet = true; m_qualificationTypeId = std::move(value); }
/**
* <p>The ID of the QualificationType to dispose.</p>
*/
inline void SetQualificationTypeId(const char* value) { m_qualificationTypeIdHasBeenSet = true; m_qualificationTypeId.assign(value); }
/**
* <p>The ID of the QualificationType to dispose.</p>
*/
inline DeleteQualificationTypeRequest& WithQualificationTypeId(const Aws::String& value) { SetQualificationTypeId(value); return *this;}
/**
* <p>The ID of the QualificationType to dispose.</p>
*/
inline DeleteQualificationTypeRequest& WithQualificationTypeId(Aws::String&& value) { SetQualificationTypeId(std::move(value)); return *this;}
/**
* <p>The ID of the QualificationType to dispose.</p>
*/
inline DeleteQualificationTypeRequest& WithQualificationTypeId(const char* value) { SetQualificationTypeId(value); return *this;}
private:
Aws::String m_qualificationTypeId;
bool m_qualificationTypeIdHasBeenSet;
};
} // namespace Model
} // namespace MTurk
} // namespace Aws

View File

@@ -0,0 +1,36 @@
/**
* 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>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace MTurk
{
namespace Model
{
class AWS_MTURK_API DeleteQualificationTypeResult
{
public:
DeleteQualificationTypeResult();
DeleteQualificationTypeResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DeleteQualificationTypeResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace MTurk
} // namespace Aws

View File

@@ -0,0 +1,137 @@
/**
* 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 DeleteWorkerBlockRequest : public MTurkRequest
{
public:
DeleteWorkerBlockRequest();
// 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 "DeleteWorkerBlock"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The ID of the Worker to unblock.</p>
*/
inline const Aws::String& GetWorkerId() const{ return m_workerId; }
/**
* <p>The ID of the Worker to unblock.</p>
*/
inline bool WorkerIdHasBeenSet() const { return m_workerIdHasBeenSet; }
/**
* <p>The ID of the Worker to unblock.</p>
*/
inline void SetWorkerId(const Aws::String& value) { m_workerIdHasBeenSet = true; m_workerId = value; }
/**
* <p>The ID of the Worker to unblock.</p>
*/
inline void SetWorkerId(Aws::String&& value) { m_workerIdHasBeenSet = true; m_workerId = std::move(value); }
/**
* <p>The ID of the Worker to unblock.</p>
*/
inline void SetWorkerId(const char* value) { m_workerIdHasBeenSet = true; m_workerId.assign(value); }
/**
* <p>The ID of the Worker to unblock.</p>
*/
inline DeleteWorkerBlockRequest& WithWorkerId(const Aws::String& value) { SetWorkerId(value); return *this;}
/**
* <p>The ID of the Worker to unblock.</p>
*/
inline DeleteWorkerBlockRequest& WithWorkerId(Aws::String&& value) { SetWorkerId(std::move(value)); return *this;}
/**
* <p>The ID of the Worker to unblock.</p>
*/
inline DeleteWorkerBlockRequest& WithWorkerId(const char* value) { SetWorkerId(value); return *this;}
/**
* <p>A message that explains the reason for unblocking the Worker. The Worker does
* not see this message.</p>
*/
inline const Aws::String& GetReason() const{ return m_reason; }
/**
* <p>A message that explains the reason for unblocking the Worker. The Worker does
* not see this message.</p>
*/
inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
/**
* <p>A message that explains the reason for unblocking the Worker. The Worker does
* not see this message.</p>
*/
inline void SetReason(const Aws::String& value) { m_reasonHasBeenSet = true; m_reason = value; }
/**
* <p>A message that explains the reason for unblocking the Worker. The Worker does
* not see this message.</p>
*/
inline void SetReason(Aws::String&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
/**
* <p>A message that explains the reason for unblocking the Worker. The Worker does
* not see this message.</p>
*/
inline void SetReason(const char* value) { m_reasonHasBeenSet = true; m_reason.assign(value); }
/**
* <p>A message that explains the reason for unblocking the Worker. The Worker does
* not see this message.</p>
*/
inline DeleteWorkerBlockRequest& WithReason(const Aws::String& value) { SetReason(value); return *this;}
/**
* <p>A message that explains the reason for unblocking the Worker. The Worker does
* not see this message.</p>
*/
inline DeleteWorkerBlockRequest& WithReason(Aws::String&& value) { SetReason(std::move(value)); return *this;}
/**
* <p>A message that explains the reason for unblocking the Worker. The Worker does
* not see this message.</p>
*/
inline DeleteWorkerBlockRequest& WithReason(const char* value) { SetReason(value); return *this;}
private:
Aws::String m_workerId;
bool m_workerIdHasBeenSet;
Aws::String m_reason;
bool m_reasonHasBeenSet;
};
} // namespace Model
} // namespace MTurk
} // namespace Aws

View File

@@ -0,0 +1,36 @@
/**
* 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>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace MTurk
{
namespace Model
{
class AWS_MTURK_API DeleteWorkerBlockResult
{
public:
DeleteWorkerBlockResult();
DeleteWorkerBlockResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DeleteWorkerBlockResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace MTurk
} // namespace Aws

View File

@@ -0,0 +1,181 @@
/**
* 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 DisassociateQualificationFromWorkerRequest : public MTurkRequest
{
public:
DisassociateQualificationFromWorkerRequest();
// 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 "DisassociateQualificationFromWorker"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The ID of the Worker who possesses the Qualification to be revoked.</p>
*/
inline const Aws::String& GetWorkerId() const{ return m_workerId; }
/**
* <p>The ID of the Worker who possesses the Qualification to be revoked.</p>
*/
inline bool WorkerIdHasBeenSet() const { return m_workerIdHasBeenSet; }
/**
* <p>The ID of the Worker who possesses the Qualification to be revoked.</p>
*/
inline void SetWorkerId(const Aws::String& value) { m_workerIdHasBeenSet = true; m_workerId = value; }
/**
* <p>The ID of the Worker who possesses the Qualification to be revoked.</p>
*/
inline void SetWorkerId(Aws::String&& value) { m_workerIdHasBeenSet = true; m_workerId = std::move(value); }
/**
* <p>The ID of the Worker who possesses the Qualification to be revoked.</p>
*/
inline void SetWorkerId(const char* value) { m_workerIdHasBeenSet = true; m_workerId.assign(value); }
/**
* <p>The ID of the Worker who possesses the Qualification to be revoked.</p>
*/
inline DisassociateQualificationFromWorkerRequest& WithWorkerId(const Aws::String& value) { SetWorkerId(value); return *this;}
/**
* <p>The ID of the Worker who possesses the Qualification to be revoked.</p>
*/
inline DisassociateQualificationFromWorkerRequest& WithWorkerId(Aws::String&& value) { SetWorkerId(std::move(value)); return *this;}
/**
* <p>The ID of the Worker who possesses the Qualification to be revoked.</p>
*/
inline DisassociateQualificationFromWorkerRequest& WithWorkerId(const char* value) { SetWorkerId(value); return *this;}
/**
* <p>The ID of the Qualification type of the Qualification to be revoked.</p>
*/
inline const Aws::String& GetQualificationTypeId() const{ return m_qualificationTypeId; }
/**
* <p>The ID of the Qualification type of the Qualification to be revoked.</p>
*/
inline bool QualificationTypeIdHasBeenSet() const { return m_qualificationTypeIdHasBeenSet; }
/**
* <p>The ID of the Qualification type of the Qualification to be revoked.</p>
*/
inline void SetQualificationTypeId(const Aws::String& value) { m_qualificationTypeIdHasBeenSet = true; m_qualificationTypeId = value; }
/**
* <p>The ID of the Qualification type of the Qualification to be revoked.</p>
*/
inline void SetQualificationTypeId(Aws::String&& value) { m_qualificationTypeIdHasBeenSet = true; m_qualificationTypeId = std::move(value); }
/**
* <p>The ID of the Qualification type of the Qualification to be revoked.</p>
*/
inline void SetQualificationTypeId(const char* value) { m_qualificationTypeIdHasBeenSet = true; m_qualificationTypeId.assign(value); }
/**
* <p>The ID of the Qualification type of the Qualification to be revoked.</p>
*/
inline DisassociateQualificationFromWorkerRequest& WithQualificationTypeId(const Aws::String& value) { SetQualificationTypeId(value); return *this;}
/**
* <p>The ID of the Qualification type of the Qualification to be revoked.</p>
*/
inline DisassociateQualificationFromWorkerRequest& WithQualificationTypeId(Aws::String&& value) { SetQualificationTypeId(std::move(value)); return *this;}
/**
* <p>The ID of the Qualification type of the Qualification to be revoked.</p>
*/
inline DisassociateQualificationFromWorkerRequest& WithQualificationTypeId(const char* value) { SetQualificationTypeId(value); return *this;}
/**
* <p>A text message that explains why the Qualification was revoked. The user who
* had the Qualification sees this message.</p>
*/
inline const Aws::String& GetReason() const{ return m_reason; }
/**
* <p>A text message that explains why the Qualification was revoked. The user who
* had the Qualification sees this message.</p>
*/
inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
/**
* <p>A text message that explains why the Qualification was revoked. The user who
* had the Qualification sees this message.</p>
*/
inline void SetReason(const Aws::String& value) { m_reasonHasBeenSet = true; m_reason = value; }
/**
* <p>A text message that explains why the Qualification was revoked. The user who
* had the Qualification sees this message.</p>
*/
inline void SetReason(Aws::String&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
/**
* <p>A text message that explains why the Qualification was revoked. The user who
* had the Qualification sees this message.</p>
*/
inline void SetReason(const char* value) { m_reasonHasBeenSet = true; m_reason.assign(value); }
/**
* <p>A text message that explains why the Qualification was revoked. The user who
* had the Qualification sees this message.</p>
*/
inline DisassociateQualificationFromWorkerRequest& WithReason(const Aws::String& value) { SetReason(value); return *this;}
/**
* <p>A text message that explains why the Qualification was revoked. The user who
* had the Qualification sees this message.</p>
*/
inline DisassociateQualificationFromWorkerRequest& WithReason(Aws::String&& value) { SetReason(std::move(value)); return *this;}
/**
* <p>A text message that explains why the Qualification was revoked. The user who
* had the Qualification sees this message.</p>
*/
inline DisassociateQualificationFromWorkerRequest& WithReason(const char* value) { SetReason(value); return *this;}
private:
Aws::String m_workerId;
bool m_workerIdHasBeenSet;
Aws::String m_qualificationTypeId;
bool m_qualificationTypeIdHasBeenSet;
Aws::String m_reason;
bool m_reasonHasBeenSet;
};
} // namespace Model
} // namespace MTurk
} // namespace Aws

View File

@@ -0,0 +1,36 @@
/**
* 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>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace MTurk
{
namespace Model
{
class AWS_MTURK_API DisassociateQualificationFromWorkerResult
{
public:
DisassociateQualificationFromWorkerResult();
DisassociateQualificationFromWorkerResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DisassociateQualificationFromWorkerResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace MTurk
} // namespace Aws

View File

@@ -0,0 +1,41 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace MTurk
{
namespace Model
{
enum class EventType
{
NOT_SET,
AssignmentAccepted,
AssignmentAbandoned,
AssignmentReturned,
AssignmentSubmitted,
AssignmentRejected,
AssignmentApproved,
HITCreated,
HITExpired,
HITReviewable,
HITExtended,
HITDisposed,
Ping
};
namespace EventTypeMapper
{
AWS_MTURK_API EventType GetEventTypeForName(const Aws::String& name);
AWS_MTURK_API Aws::String GetNameForEventType(EventType value);
} // namespace EventTypeMapper
} // namespace Model
} // namespace MTurk
} // namespace Aws

View File

@@ -0,0 +1,38 @@
/**
* 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>
namespace Aws
{
namespace MTurk
{
namespace Model
{
/**
*/
class AWS_MTURK_API GetAccountBalanceRequest : public MTurkRequest
{
public:
GetAccountBalanceRequest();
// 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 "GetAccountBalance"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
};
} // namespace Model
} // namespace MTurk
} // namespace Aws

View File

@@ -0,0 +1,87 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace MTurk
{
namespace Model
{
class AWS_MTURK_API GetAccountBalanceResult
{
public:
GetAccountBalanceResult();
GetAccountBalanceResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
GetAccountBalanceResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
inline const Aws::String& GetAvailableBalance() const{ return m_availableBalance; }
inline void SetAvailableBalance(const Aws::String& value) { m_availableBalance = value; }
inline void SetAvailableBalance(Aws::String&& value) { m_availableBalance = std::move(value); }
inline void SetAvailableBalance(const char* value) { m_availableBalance.assign(value); }
inline GetAccountBalanceResult& WithAvailableBalance(const Aws::String& value) { SetAvailableBalance(value); return *this;}
inline GetAccountBalanceResult& WithAvailableBalance(Aws::String&& value) { SetAvailableBalance(std::move(value)); return *this;}
inline GetAccountBalanceResult& WithAvailableBalance(const char* value) { SetAvailableBalance(value); return *this;}
inline const Aws::String& GetOnHoldBalance() const{ return m_onHoldBalance; }
inline void SetOnHoldBalance(const Aws::String& value) { m_onHoldBalance = value; }
inline void SetOnHoldBalance(Aws::String&& value) { m_onHoldBalance = std::move(value); }
inline void SetOnHoldBalance(const char* value) { m_onHoldBalance.assign(value); }
inline GetAccountBalanceResult& WithOnHoldBalance(const Aws::String& value) { SetOnHoldBalance(value); return *this;}
inline GetAccountBalanceResult& WithOnHoldBalance(Aws::String&& value) { SetOnHoldBalance(std::move(value)); return *this;}
inline GetAccountBalanceResult& WithOnHoldBalance(const char* value) { SetOnHoldBalance(value); return *this;}
private:
Aws::String m_availableBalance;
Aws::String m_onHoldBalance;
};
} // namespace Model
} // namespace MTurk
} // namespace Aws

View File

@@ -0,0 +1,85 @@
/**
* 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 GetAssignmentRequest : public MTurkRequest
{
public:
GetAssignmentRequest();
// 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 "GetAssignment"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The ID of the Assignment to be retrieved.</p>
*/
inline const Aws::String& GetAssignmentId() const{ return m_assignmentId; }
/**
* <p>The ID of the Assignment to be retrieved.</p>
*/
inline bool AssignmentIdHasBeenSet() const { return m_assignmentIdHasBeenSet; }
/**
* <p>The ID of the Assignment to be retrieved.</p>
*/
inline void SetAssignmentId(const Aws::String& value) { m_assignmentIdHasBeenSet = true; m_assignmentId = value; }
/**
* <p>The ID of the Assignment to be retrieved.</p>
*/
inline void SetAssignmentId(Aws::String&& value) { m_assignmentIdHasBeenSet = true; m_assignmentId = std::move(value); }
/**
* <p>The ID of the Assignment to be retrieved.</p>
*/
inline void SetAssignmentId(const char* value) { m_assignmentIdHasBeenSet = true; m_assignmentId.assign(value); }
/**
* <p>The ID of the Assignment to be retrieved.</p>
*/
inline GetAssignmentRequest& WithAssignmentId(const Aws::String& value) { SetAssignmentId(value); return *this;}
/**
* <p>The ID of the Assignment to be retrieved.</p>
*/
inline GetAssignmentRequest& WithAssignmentId(Aws::String&& value) { SetAssignmentId(std::move(value)); return *this;}
/**
* <p>The ID of the Assignment to be retrieved.</p>
*/
inline GetAssignmentRequest& WithAssignmentId(const char* value) { SetAssignmentId(value); return *this;}
private:
Aws::String m_assignmentId;
bool m_assignmentIdHasBeenSet;
};
} // namespace Model
} // namespace MTurk
} // namespace Aws

View File

@@ -0,0 +1,101 @@
/**
* 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/model/Assignment.h>
#include <aws/mturk-requester/model/HIT.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace MTurk
{
namespace Model
{
class AWS_MTURK_API GetAssignmentResult
{
public:
GetAssignmentResult();
GetAssignmentResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
GetAssignmentResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p> The assignment. The response includes one Assignment element. </p>
*/
inline const Assignment& GetAssignment() const{ return m_assignment; }
/**
* <p> The assignment. The response includes one Assignment element. </p>
*/
inline void SetAssignment(const Assignment& value) { m_assignment = value; }
/**
* <p> The assignment. The response includes one Assignment element. </p>
*/
inline void SetAssignment(Assignment&& value) { m_assignment = std::move(value); }
/**
* <p> The assignment. The response includes one Assignment element. </p>
*/
inline GetAssignmentResult& WithAssignment(const Assignment& value) { SetAssignment(value); return *this;}
/**
* <p> The assignment. The response includes one Assignment element. </p>
*/
inline GetAssignmentResult& WithAssignment(Assignment&& value) { SetAssignment(std::move(value)); return *this;}
/**
* <p> The HIT associated with this assignment. The response includes one HIT
* element.</p>
*/
inline const HIT& GetHIT() const{ return m_hIT; }
/**
* <p> The HIT associated with this assignment. The response includes one HIT
* element.</p>
*/
inline void SetHIT(const HIT& value) { m_hIT = value; }
/**
* <p> The HIT associated with this assignment. The response includes one HIT
* element.</p>
*/
inline void SetHIT(HIT&& value) { m_hIT = std::move(value); }
/**
* <p> The HIT associated with this assignment. The response includes one HIT
* element.</p>
*/
inline GetAssignmentResult& WithHIT(const HIT& value) { SetHIT(value); return *this;}
/**
* <p> The HIT associated with this assignment. The response includes one HIT
* element.</p>
*/
inline GetAssignmentResult& WithHIT(HIT&& value) { SetHIT(std::move(value)); return *this;}
private:
Assignment m_assignment;
HIT m_hIT;
};
} // namespace Model
} // namespace MTurk
} // namespace Aws

View File

@@ -0,0 +1,145 @@
/**
* 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 GetFileUploadURLRequest : public MTurkRequest
{
public:
GetFileUploadURLRequest();
// 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 "GetFileUploadURL"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The ID of the assignment that contains the question with a
* FileUploadAnswer.</p>
*/
inline const Aws::String& GetAssignmentId() const{ return m_assignmentId; }
/**
* <p>The ID of the assignment that contains the question with a
* FileUploadAnswer.</p>
*/
inline bool AssignmentIdHasBeenSet() const { return m_assignmentIdHasBeenSet; }
/**
* <p>The ID of the assignment that contains the question with a
* FileUploadAnswer.</p>
*/
inline void SetAssignmentId(const Aws::String& value) { m_assignmentIdHasBeenSet = true; m_assignmentId = value; }
/**
* <p>The ID of the assignment that contains the question with a
* FileUploadAnswer.</p>
*/
inline void SetAssignmentId(Aws::String&& value) { m_assignmentIdHasBeenSet = true; m_assignmentId = std::move(value); }
/**
* <p>The ID of the assignment that contains the question with a
* FileUploadAnswer.</p>
*/
inline void SetAssignmentId(const char* value) { m_assignmentIdHasBeenSet = true; m_assignmentId.assign(value); }
/**
* <p>The ID of the assignment that contains the question with a
* FileUploadAnswer.</p>
*/
inline GetFileUploadURLRequest& WithAssignmentId(const Aws::String& value) { SetAssignmentId(value); return *this;}
/**
* <p>The ID of the assignment that contains the question with a
* FileUploadAnswer.</p>
*/
inline GetFileUploadURLRequest& WithAssignmentId(Aws::String&& value) { SetAssignmentId(std::move(value)); return *this;}
/**
* <p>The ID of the assignment that contains the question with a
* FileUploadAnswer.</p>
*/
inline GetFileUploadURLRequest& WithAssignmentId(const char* value) { SetAssignmentId(value); return *this;}
/**
* <p>The identifier of the question with a FileUploadAnswer, as specified in the
* QuestionForm of the HIT.</p>
*/
inline const Aws::String& GetQuestionIdentifier() const{ return m_questionIdentifier; }
/**
* <p>The identifier of the question with a FileUploadAnswer, as specified in the
* QuestionForm of the HIT.</p>
*/
inline bool QuestionIdentifierHasBeenSet() const { return m_questionIdentifierHasBeenSet; }
/**
* <p>The identifier of the question with a FileUploadAnswer, as specified in the
* QuestionForm of the HIT.</p>
*/
inline void SetQuestionIdentifier(const Aws::String& value) { m_questionIdentifierHasBeenSet = true; m_questionIdentifier = value; }
/**
* <p>The identifier of the question with a FileUploadAnswer, as specified in the
* QuestionForm of the HIT.</p>
*/
inline void SetQuestionIdentifier(Aws::String&& value) { m_questionIdentifierHasBeenSet = true; m_questionIdentifier = std::move(value); }
/**
* <p>The identifier of the question with a FileUploadAnswer, as specified in the
* QuestionForm of the HIT.</p>
*/
inline void SetQuestionIdentifier(const char* value) { m_questionIdentifierHasBeenSet = true; m_questionIdentifier.assign(value); }
/**
* <p>The identifier of the question with a FileUploadAnswer, as specified in the
* QuestionForm of the HIT.</p>
*/
inline GetFileUploadURLRequest& WithQuestionIdentifier(const Aws::String& value) { SetQuestionIdentifier(value); return *this;}
/**
* <p>The identifier of the question with a FileUploadAnswer, as specified in the
* QuestionForm of the HIT.</p>
*/
inline GetFileUploadURLRequest& WithQuestionIdentifier(Aws::String&& value) { SetQuestionIdentifier(std::move(value)); return *this;}
/**
* <p>The identifier of the question with a FileUploadAnswer, as specified in the
* QuestionForm of the HIT.</p>
*/
inline GetFileUploadURLRequest& WithQuestionIdentifier(const char* value) { SetQuestionIdentifier(value); return *this;}
private:
Aws::String m_assignmentId;
bool m_assignmentIdHasBeenSet;
Aws::String m_questionIdentifier;
bool m_questionIdentifierHasBeenSet;
};
} // namespace Model
} // namespace MTurk
} // namespace Aws

View File

@@ -0,0 +1,77 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace MTurk
{
namespace Model
{
class AWS_MTURK_API GetFileUploadURLResult
{
public:
GetFileUploadURLResult();
GetFileUploadURLResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
GetFileUploadURLResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p> A temporary URL for the file that the Worker uploaded for the answer. </p>
*/
inline const Aws::String& GetFileUploadURL() const{ return m_fileUploadURL; }
/**
* <p> A temporary URL for the file that the Worker uploaded for the answer. </p>
*/
inline void SetFileUploadURL(const Aws::String& value) { m_fileUploadURL = value; }
/**
* <p> A temporary URL for the file that the Worker uploaded for the answer. </p>
*/
inline void SetFileUploadURL(Aws::String&& value) { m_fileUploadURL = std::move(value); }
/**
* <p> A temporary URL for the file that the Worker uploaded for the answer. </p>
*/
inline void SetFileUploadURL(const char* value) { m_fileUploadURL.assign(value); }
/**
* <p> A temporary URL for the file that the Worker uploaded for the answer. </p>
*/
inline GetFileUploadURLResult& WithFileUploadURL(const Aws::String& value) { SetFileUploadURL(value); return *this;}
/**
* <p> A temporary URL for the file that the Worker uploaded for the answer. </p>
*/
inline GetFileUploadURLResult& WithFileUploadURL(Aws::String&& value) { SetFileUploadURL(std::move(value)); return *this;}
/**
* <p> A temporary URL for the file that the Worker uploaded for the answer. </p>
*/
inline GetFileUploadURLResult& WithFileUploadURL(const char* value) { SetFileUploadURL(value); return *this;}
private:
Aws::String m_fileUploadURL;
};
} // namespace Model
} // namespace MTurk
} // namespace Aws

View File

@@ -0,0 +1,85 @@
/**
* 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 GetHITRequest : public MTurkRequest
{
public:
GetHITRequest();
// 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 "GetHIT"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The ID of the HIT to be retrieved.</p>
*/
inline const Aws::String& GetHITId() const{ return m_hITId; }
/**
* <p>The ID of the HIT to be retrieved.</p>
*/
inline bool HITIdHasBeenSet() const { return m_hITIdHasBeenSet; }
/**
* <p>The ID of the HIT to be retrieved.</p>
*/
inline void SetHITId(const Aws::String& value) { m_hITIdHasBeenSet = true; m_hITId = value; }
/**
* <p>The ID of the HIT to be retrieved.</p>
*/
inline void SetHITId(Aws::String&& value) { m_hITIdHasBeenSet = true; m_hITId = std::move(value); }
/**
* <p>The ID of the HIT to be retrieved.</p>
*/
inline void SetHITId(const char* value) { m_hITIdHasBeenSet = true; m_hITId.assign(value); }
/**
* <p>The ID of the HIT to be retrieved.</p>
*/
inline GetHITRequest& WithHITId(const Aws::String& value) { SetHITId(value); return *this;}
/**
* <p>The ID of the HIT to be retrieved.</p>
*/
inline GetHITRequest& WithHITId(Aws::String&& value) { SetHITId(std::move(value)); return *this;}
/**
* <p>The ID of the HIT to be retrieved.</p>
*/
inline GetHITRequest& WithHITId(const char* value) { SetHITId(value); return *this;}
private:
Aws::String m_hITId;
bool m_hITIdHasBeenSet;
};
} // namespace Model
} // namespace MTurk
} // namespace Aws

View File

@@ -0,0 +1,67 @@
/**
* 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/model/HIT.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace MTurk
{
namespace Model
{
class AWS_MTURK_API GetHITResult
{
public:
GetHITResult();
GetHITResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
GetHITResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p> Contains the requested HIT data.</p>
*/
inline const HIT& GetHIT() const{ return m_hIT; }
/**
* <p> Contains the requested HIT data.</p>
*/
inline void SetHIT(const HIT& value) { m_hIT = value; }
/**
* <p> Contains the requested HIT data.</p>
*/
inline void SetHIT(HIT&& value) { m_hIT = std::move(value); }
/**
* <p> Contains the requested HIT data.</p>
*/
inline GetHITResult& WithHIT(const HIT& value) { SetHIT(value); return *this;}
/**
* <p> Contains the requested HIT data.</p>
*/
inline GetHITResult& WithHIT(HIT&& value) { SetHIT(std::move(value)); return *this;}
private:
HIT m_hIT;
};
} // namespace Model
} // namespace MTurk
} // namespace Aws

View File

@@ -0,0 +1,129 @@
/**
* 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 GetQualificationScoreRequest : public MTurkRequest
{
public:
GetQualificationScoreRequest();
// 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 "GetQualificationScore"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The ID of the QualificationType.</p>
*/
inline const Aws::String& GetQualificationTypeId() const{ return m_qualificationTypeId; }
/**
* <p>The ID of the QualificationType.</p>
*/
inline bool QualificationTypeIdHasBeenSet() const { return m_qualificationTypeIdHasBeenSet; }
/**
* <p>The ID of the QualificationType.</p>
*/
inline void SetQualificationTypeId(const Aws::String& value) { m_qualificationTypeIdHasBeenSet = true; m_qualificationTypeId = value; }
/**
* <p>The ID of the QualificationType.</p>
*/
inline void SetQualificationTypeId(Aws::String&& value) { m_qualificationTypeIdHasBeenSet = true; m_qualificationTypeId = std::move(value); }
/**
* <p>The ID of the QualificationType.</p>
*/
inline void SetQualificationTypeId(const char* value) { m_qualificationTypeIdHasBeenSet = true; m_qualificationTypeId.assign(value); }
/**
* <p>The ID of the QualificationType.</p>
*/
inline GetQualificationScoreRequest& WithQualificationTypeId(const Aws::String& value) { SetQualificationTypeId(value); return *this;}
/**
* <p>The ID of the QualificationType.</p>
*/
inline GetQualificationScoreRequest& WithQualificationTypeId(Aws::String&& value) { SetQualificationTypeId(std::move(value)); return *this;}
/**
* <p>The ID of the QualificationType.</p>
*/
inline GetQualificationScoreRequest& WithQualificationTypeId(const char* value) { SetQualificationTypeId(value); return *this;}
/**
* <p>The ID of the Worker whose Qualification is being updated.</p>
*/
inline const Aws::String& GetWorkerId() const{ return m_workerId; }
/**
* <p>The ID of the Worker whose Qualification is being updated.</p>
*/
inline bool WorkerIdHasBeenSet() const { return m_workerIdHasBeenSet; }
/**
* <p>The ID of the Worker whose Qualification is being updated.</p>
*/
inline void SetWorkerId(const Aws::String& value) { m_workerIdHasBeenSet = true; m_workerId = value; }
/**
* <p>The ID of the Worker whose Qualification is being updated.</p>
*/
inline void SetWorkerId(Aws::String&& value) { m_workerIdHasBeenSet = true; m_workerId = std::move(value); }
/**
* <p>The ID of the Worker whose Qualification is being updated.</p>
*/
inline void SetWorkerId(const char* value) { m_workerIdHasBeenSet = true; m_workerId.assign(value); }
/**
* <p>The ID of the Worker whose Qualification is being updated.</p>
*/
inline GetQualificationScoreRequest& WithWorkerId(const Aws::String& value) { SetWorkerId(value); return *this;}
/**
* <p>The ID of the Worker whose Qualification is being updated.</p>
*/
inline GetQualificationScoreRequest& WithWorkerId(Aws::String&& value) { SetWorkerId(std::move(value)); return *this;}
/**
* <p>The ID of the Worker whose Qualification is being updated.</p>
*/
inline GetQualificationScoreRequest& WithWorkerId(const char* value) { SetWorkerId(value); return *this;}
private:
Aws::String m_qualificationTypeId;
bool m_qualificationTypeIdHasBeenSet;
Aws::String m_workerId;
bool m_workerIdHasBeenSet;
};
} // namespace Model
} // namespace MTurk
} // namespace Aws

View File

@@ -0,0 +1,72 @@
/**
* 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/model/Qualification.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace MTurk
{
namespace Model
{
class AWS_MTURK_API GetQualificationScoreResult
{
public:
GetQualificationScoreResult();
GetQualificationScoreResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
GetQualificationScoreResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p> The Qualification data structure of the Qualification assigned to a user,
* including the Qualification type and the value (score). </p>
*/
inline const Qualification& GetQualification() const{ return m_qualification; }
/**
* <p> The Qualification data structure of the Qualification assigned to a user,
* including the Qualification type and the value (score). </p>
*/
inline void SetQualification(const Qualification& value) { m_qualification = value; }
/**
* <p> The Qualification data structure of the Qualification assigned to a user,
* including the Qualification type and the value (score). </p>
*/
inline void SetQualification(Qualification&& value) { m_qualification = std::move(value); }
/**
* <p> The Qualification data structure of the Qualification assigned to a user,
* including the Qualification type and the value (score). </p>
*/
inline GetQualificationScoreResult& WithQualification(const Qualification& value) { SetQualification(value); return *this;}
/**
* <p> The Qualification data structure of the Qualification assigned to a user,
* including the Qualification type and the value (score). </p>
*/
inline GetQualificationScoreResult& WithQualification(Qualification&& value) { SetQualification(std::move(value)); return *this;}
private:
Qualification m_qualification;
};
} // namespace Model
} // namespace MTurk
} // namespace Aws

View File

@@ -0,0 +1,85 @@
/**
* 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 GetQualificationTypeRequest : public MTurkRequest
{
public:
GetQualificationTypeRequest();
// 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 "GetQualificationType"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The ID of the QualificationType.</p>
*/
inline const Aws::String& GetQualificationTypeId() const{ return m_qualificationTypeId; }
/**
* <p>The ID of the QualificationType.</p>
*/
inline bool QualificationTypeIdHasBeenSet() const { return m_qualificationTypeIdHasBeenSet; }
/**
* <p>The ID of the QualificationType.</p>
*/
inline void SetQualificationTypeId(const Aws::String& value) { m_qualificationTypeIdHasBeenSet = true; m_qualificationTypeId = value; }
/**
* <p>The ID of the QualificationType.</p>
*/
inline void SetQualificationTypeId(Aws::String&& value) { m_qualificationTypeIdHasBeenSet = true; m_qualificationTypeId = std::move(value); }
/**
* <p>The ID of the QualificationType.</p>
*/
inline void SetQualificationTypeId(const char* value) { m_qualificationTypeIdHasBeenSet = true; m_qualificationTypeId.assign(value); }
/**
* <p>The ID of the QualificationType.</p>
*/
inline GetQualificationTypeRequest& WithQualificationTypeId(const Aws::String& value) { SetQualificationTypeId(value); return *this;}
/**
* <p>The ID of the QualificationType.</p>
*/
inline GetQualificationTypeRequest& WithQualificationTypeId(Aws::String&& value) { SetQualificationTypeId(std::move(value)); return *this;}
/**
* <p>The ID of the QualificationType.</p>
*/
inline GetQualificationTypeRequest& WithQualificationTypeId(const char* value) { SetQualificationTypeId(value); return *this;}
private:
Aws::String m_qualificationTypeId;
bool m_qualificationTypeIdHasBeenSet;
};
} // namespace Model
} // namespace MTurk
} // namespace Aws

View File

@@ -0,0 +1,67 @@
/**
* 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/model/QualificationType.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace MTurk
{
namespace Model
{
class AWS_MTURK_API GetQualificationTypeResult
{
public:
GetQualificationTypeResult();
GetQualificationTypeResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
GetQualificationTypeResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p> The returned Qualification Type</p>
*/
inline const QualificationType& GetQualificationType() const{ return m_qualificationType; }
/**
* <p> The returned Qualification Type</p>
*/
inline void SetQualificationType(const QualificationType& value) { m_qualificationType = value; }
/**
* <p> The returned Qualification Type</p>
*/
inline void SetQualificationType(QualificationType&& value) { m_qualificationType = std::move(value); }
/**
* <p> The returned Qualification Type</p>
*/
inline GetQualificationTypeResult& WithQualificationType(const QualificationType& value) { SetQualificationType(value); return *this;}
/**
* <p> The returned Qualification Type</p>
*/
inline GetQualificationTypeResult& WithQualificationType(QualificationType&& value) { SetQualificationType(std::move(value)); return *this;}
private:
QualificationType m_qualificationType;
};
} // namespace Model
} // namespace MTurk
} // namespace Aws

View File

@@ -0,0 +1,919 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/DateTime.h>
#include <aws/mturk-requester/model/HITStatus.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/mturk-requester/model/HITReviewStatus.h>
#include <aws/mturk-requester/model/QualificationRequirement.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace MTurk
{
namespace Model
{
/**
* <p> The HIT data structure represents a single HIT, including all the
* information necessary for a Worker to accept and complete the HIT.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/HIT">AWS
* API Reference</a></p>
*/
class AWS_MTURK_API HIT
{
public:
HIT();
HIT(Aws::Utils::Json::JsonView jsonValue);
HIT& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p> A unique identifier for the HIT.</p>
*/
inline const Aws::String& GetHITId() const{ return m_hITId; }
/**
* <p> A unique identifier for the HIT.</p>
*/
inline bool HITIdHasBeenSet() const { return m_hITIdHasBeenSet; }
/**
* <p> A unique identifier for the HIT.</p>
*/
inline void SetHITId(const Aws::String& value) { m_hITIdHasBeenSet = true; m_hITId = value; }
/**
* <p> A unique identifier for the HIT.</p>
*/
inline void SetHITId(Aws::String&& value) { m_hITIdHasBeenSet = true; m_hITId = std::move(value); }
/**
* <p> A unique identifier for the HIT.</p>
*/
inline void SetHITId(const char* value) { m_hITIdHasBeenSet = true; m_hITId.assign(value); }
/**
* <p> A unique identifier for the HIT.</p>
*/
inline HIT& WithHITId(const Aws::String& value) { SetHITId(value); return *this;}
/**
* <p> A unique identifier for the HIT.</p>
*/
inline HIT& WithHITId(Aws::String&& value) { SetHITId(std::move(value)); return *this;}
/**
* <p> A unique identifier for the HIT.</p>
*/
inline HIT& WithHITId(const char* value) { SetHITId(value); return *this;}
/**
* <p>The ID of the HIT type of this HIT</p>
*/
inline const Aws::String& GetHITTypeId() const{ return m_hITTypeId; }
/**
* <p>The ID of the HIT type of this HIT</p>
*/
inline bool HITTypeIdHasBeenSet() const { return m_hITTypeIdHasBeenSet; }
/**
* <p>The ID of the HIT type of this HIT</p>
*/
inline void SetHITTypeId(const Aws::String& value) { m_hITTypeIdHasBeenSet = true; m_hITTypeId = value; }
/**
* <p>The ID of the HIT type of this HIT</p>
*/
inline void SetHITTypeId(Aws::String&& value) { m_hITTypeIdHasBeenSet = true; m_hITTypeId = std::move(value); }
/**
* <p>The ID of the HIT type of this HIT</p>
*/
inline void SetHITTypeId(const char* value) { m_hITTypeIdHasBeenSet = true; m_hITTypeId.assign(value); }
/**
* <p>The ID of the HIT type of this HIT</p>
*/
inline HIT& WithHITTypeId(const Aws::String& value) { SetHITTypeId(value); return *this;}
/**
* <p>The ID of the HIT type of this HIT</p>
*/
inline HIT& WithHITTypeId(Aws::String&& value) { SetHITTypeId(std::move(value)); return *this;}
/**
* <p>The ID of the HIT type of this HIT</p>
*/
inline HIT& WithHITTypeId(const char* value) { SetHITTypeId(value); return *this;}
/**
* <p> The ID of the HIT Group of this HIT.</p>
*/
inline const Aws::String& GetHITGroupId() const{ return m_hITGroupId; }
/**
* <p> The ID of the HIT Group of this HIT.</p>
*/
inline bool HITGroupIdHasBeenSet() const { return m_hITGroupIdHasBeenSet; }
/**
* <p> The ID of the HIT Group of this HIT.</p>
*/
inline void SetHITGroupId(const Aws::String& value) { m_hITGroupIdHasBeenSet = true; m_hITGroupId = value; }
/**
* <p> The ID of the HIT Group of this HIT.</p>
*/
inline void SetHITGroupId(Aws::String&& value) { m_hITGroupIdHasBeenSet = true; m_hITGroupId = std::move(value); }
/**
* <p> The ID of the HIT Group of this HIT.</p>
*/
inline void SetHITGroupId(const char* value) { m_hITGroupIdHasBeenSet = true; m_hITGroupId.assign(value); }
/**
* <p> The ID of the HIT Group of this HIT.</p>
*/
inline HIT& WithHITGroupId(const Aws::String& value) { SetHITGroupId(value); return *this;}
/**
* <p> The ID of the HIT Group of this HIT.</p>
*/
inline HIT& WithHITGroupId(Aws::String&& value) { SetHITGroupId(std::move(value)); return *this;}
/**
* <p> The ID of the HIT Group of this HIT.</p>
*/
inline HIT& WithHITGroupId(const char* value) { SetHITGroupId(value); return *this;}
/**
* <p> The ID of the HIT Layout of this HIT.</p>
*/
inline const Aws::String& GetHITLayoutId() const{ return m_hITLayoutId; }
/**
* <p> The ID of the HIT Layout of this HIT.</p>
*/
inline bool HITLayoutIdHasBeenSet() const { return m_hITLayoutIdHasBeenSet; }
/**
* <p> The ID of the HIT Layout of this HIT.</p>
*/
inline void SetHITLayoutId(const Aws::String& value) { m_hITLayoutIdHasBeenSet = true; m_hITLayoutId = value; }
/**
* <p> The ID of the HIT Layout of this HIT.</p>
*/
inline void SetHITLayoutId(Aws::String&& value) { m_hITLayoutIdHasBeenSet = true; m_hITLayoutId = std::move(value); }
/**
* <p> The ID of the HIT Layout of this HIT.</p>
*/
inline void SetHITLayoutId(const char* value) { m_hITLayoutIdHasBeenSet = true; m_hITLayoutId.assign(value); }
/**
* <p> The ID of the HIT Layout of this HIT.</p>
*/
inline HIT& WithHITLayoutId(const Aws::String& value) { SetHITLayoutId(value); return *this;}
/**
* <p> The ID of the HIT Layout of this HIT.</p>
*/
inline HIT& WithHITLayoutId(Aws::String&& value) { SetHITLayoutId(std::move(value)); return *this;}
/**
* <p> The ID of the HIT Layout of this HIT.</p>
*/
inline HIT& WithHITLayoutId(const char* value) { SetHITLayoutId(value); return *this;}
/**
* <p> The date and time the HIT was created.</p>
*/
inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
/**
* <p> The date and time the HIT was created.</p>
*/
inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
/**
* <p> The date and time the HIT was created.</p>
*/
inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
/**
* <p> The date and time the HIT was created.</p>
*/
inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
/**
* <p> The date and time the HIT was created.</p>
*/
inline HIT& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
/**
* <p> The date and time the HIT was created.</p>
*/
inline HIT& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
/**
* <p> The title of the HIT.</p>
*/
inline const Aws::String& GetTitle() const{ return m_title; }
/**
* <p> The title of the HIT.</p>
*/
inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
/**
* <p> The title of the HIT.</p>
*/
inline void SetTitle(const Aws::String& value) { m_titleHasBeenSet = true; m_title = value; }
/**
* <p> The title of the HIT.</p>
*/
inline void SetTitle(Aws::String&& value) { m_titleHasBeenSet = true; m_title = std::move(value); }
/**
* <p> The title of the HIT.</p>
*/
inline void SetTitle(const char* value) { m_titleHasBeenSet = true; m_title.assign(value); }
/**
* <p> The title of the HIT.</p>
*/
inline HIT& WithTitle(const Aws::String& value) { SetTitle(value); return *this;}
/**
* <p> The title of the HIT.</p>
*/
inline HIT& WithTitle(Aws::String&& value) { SetTitle(std::move(value)); return *this;}
/**
* <p> The title of the HIT.</p>
*/
inline HIT& WithTitle(const char* value) { SetTitle(value); return *this;}
/**
* <p> A general description of the HIT.</p>
*/
inline const Aws::String& GetDescription() const{ return m_description; }
/**
* <p> A general description of the HIT.</p>
*/
inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
/**
* <p> A general description of the HIT.</p>
*/
inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
/**
* <p> A general description of the HIT.</p>
*/
inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
/**
* <p> A general description of the HIT.</p>
*/
inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
/**
* <p> A general description of the HIT.</p>
*/
inline HIT& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
/**
* <p> A general description of the HIT.</p>
*/
inline HIT& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
/**
* <p> A general description of the HIT.</p>
*/
inline HIT& WithDescription(const char* value) { SetDescription(value); return *this;}
/**
* <p> The data the Worker completing the HIT uses produce the results. This is
* either either a QuestionForm, HTMLQuestion or an ExternalQuestion data
* structure.</p>
*/
inline const Aws::String& GetQuestion() const{ return m_question; }
/**
* <p> The data the Worker completing the HIT uses produce the results. This is
* either either a QuestionForm, HTMLQuestion or an ExternalQuestion data
* structure.</p>
*/
inline bool QuestionHasBeenSet() const { return m_questionHasBeenSet; }
/**
* <p> The data the Worker completing the HIT uses produce the results. This is
* either either a QuestionForm, HTMLQuestion or an ExternalQuestion data
* structure.</p>
*/
inline void SetQuestion(const Aws::String& value) { m_questionHasBeenSet = true; m_question = value; }
/**
* <p> The data the Worker completing the HIT uses produce the results. This is
* either either a QuestionForm, HTMLQuestion or an ExternalQuestion data
* structure.</p>
*/
inline void SetQuestion(Aws::String&& value) { m_questionHasBeenSet = true; m_question = std::move(value); }
/**
* <p> The data the Worker completing the HIT uses produce the results. This is
* either either a QuestionForm, HTMLQuestion or an ExternalQuestion data
* structure.</p>
*/
inline void SetQuestion(const char* value) { m_questionHasBeenSet = true; m_question.assign(value); }
/**
* <p> The data the Worker completing the HIT uses produce the results. This is
* either either a QuestionForm, HTMLQuestion or an ExternalQuestion data
* structure.</p>
*/
inline HIT& WithQuestion(const Aws::String& value) { SetQuestion(value); return *this;}
/**
* <p> The data the Worker completing the HIT uses produce the results. This is
* either either a QuestionForm, HTMLQuestion or an ExternalQuestion data
* structure.</p>
*/
inline HIT& WithQuestion(Aws::String&& value) { SetQuestion(std::move(value)); return *this;}
/**
* <p> The data the Worker completing the HIT uses produce the results. This is
* either either a QuestionForm, HTMLQuestion or an ExternalQuestion data
* structure.</p>
*/
inline HIT& WithQuestion(const char* value) { SetQuestion(value); return *this;}
/**
* <p> One or more words or phrases that describe the HIT, separated by commas.
* Search terms similar to the keywords of a HIT are more likely to have the HIT in
* the search results.</p>
*/
inline const Aws::String& GetKeywords() const{ return m_keywords; }
/**
* <p> One or more words or phrases that describe the HIT, separated by commas.
* Search terms similar to the keywords of a HIT are more likely to have the HIT in
* the search results.</p>
*/
inline bool KeywordsHasBeenSet() const { return m_keywordsHasBeenSet; }
/**
* <p> One or more words or phrases that describe the HIT, separated by commas.
* Search terms similar to the keywords of a HIT are more likely to have the HIT in
* the search results.</p>
*/
inline void SetKeywords(const Aws::String& value) { m_keywordsHasBeenSet = true; m_keywords = value; }
/**
* <p> One or more words or phrases that describe the HIT, separated by commas.
* Search terms similar to the keywords of a HIT are more likely to have the HIT in
* the search results.</p>
*/
inline void SetKeywords(Aws::String&& value) { m_keywordsHasBeenSet = true; m_keywords = std::move(value); }
/**
* <p> One or more words or phrases that describe the HIT, separated by commas.
* Search terms similar to the keywords of a HIT are more likely to have the HIT in
* the search results.</p>
*/
inline void SetKeywords(const char* value) { m_keywordsHasBeenSet = true; m_keywords.assign(value); }
/**
* <p> One or more words or phrases that describe the HIT, separated by commas.
* Search terms similar to the keywords of a HIT are more likely to have the HIT in
* the search results.</p>
*/
inline HIT& WithKeywords(const Aws::String& value) { SetKeywords(value); return *this;}
/**
* <p> One or more words or phrases that describe the HIT, separated by commas.
* Search terms similar to the keywords of a HIT are more likely to have the HIT in
* the search results.</p>
*/
inline HIT& WithKeywords(Aws::String&& value) { SetKeywords(std::move(value)); return *this;}
/**
* <p> One or more words or phrases that describe the HIT, separated by commas.
* Search terms similar to the keywords of a HIT are more likely to have the HIT in
* the search results.</p>
*/
inline HIT& WithKeywords(const char* value) { SetKeywords(value); return *this;}
/**
* <p>The status of the HIT and its assignments. Valid Values are Assignable |
* Unassignable | Reviewable | Reviewing | Disposed. </p>
*/
inline const HITStatus& GetHITStatus() const{ return m_hITStatus; }
/**
* <p>The status of the HIT and its assignments. Valid Values are Assignable |
* Unassignable | Reviewable | Reviewing | Disposed. </p>
*/
inline bool HITStatusHasBeenSet() const { return m_hITStatusHasBeenSet; }
/**
* <p>The status of the HIT and its assignments. Valid Values are Assignable |
* Unassignable | Reviewable | Reviewing | Disposed. </p>
*/
inline void SetHITStatus(const HITStatus& value) { m_hITStatusHasBeenSet = true; m_hITStatus = value; }
/**
* <p>The status of the HIT and its assignments. Valid Values are Assignable |
* Unassignable | Reviewable | Reviewing | Disposed. </p>
*/
inline void SetHITStatus(HITStatus&& value) { m_hITStatusHasBeenSet = true; m_hITStatus = std::move(value); }
/**
* <p>The status of the HIT and its assignments. Valid Values are Assignable |
* Unassignable | Reviewable | Reviewing | Disposed. </p>
*/
inline HIT& WithHITStatus(const HITStatus& value) { SetHITStatus(value); return *this;}
/**
* <p>The status of the HIT and its assignments. Valid Values are Assignable |
* Unassignable | Reviewable | Reviewing | Disposed. </p>
*/
inline HIT& WithHITStatus(HITStatus&& value) { SetHITStatus(std::move(value)); return *this;}
/**
* <p>The number of times the HIT can be accepted and completed before the HIT
* becomes unavailable. </p>
*/
inline int GetMaxAssignments() const{ return m_maxAssignments; }
/**
* <p>The number of times the HIT can be accepted and completed before the HIT
* becomes unavailable. </p>
*/
inline bool MaxAssignmentsHasBeenSet() const { return m_maxAssignmentsHasBeenSet; }
/**
* <p>The number of times the HIT can be accepted and completed before the HIT
* becomes unavailable. </p>
*/
inline void SetMaxAssignments(int value) { m_maxAssignmentsHasBeenSet = true; m_maxAssignments = value; }
/**
* <p>The number of times the HIT can be accepted and completed before the HIT
* becomes unavailable. </p>
*/
inline HIT& WithMaxAssignments(int value) { SetMaxAssignments(value); return *this;}
inline const Aws::String& GetReward() const{ return m_reward; }
inline bool RewardHasBeenSet() const { return m_rewardHasBeenSet; }
inline void SetReward(const Aws::String& value) { m_rewardHasBeenSet = true; m_reward = value; }
inline void SetReward(Aws::String&& value) { m_rewardHasBeenSet = true; m_reward = std::move(value); }
inline void SetReward(const char* value) { m_rewardHasBeenSet = true; m_reward.assign(value); }
inline HIT& WithReward(const Aws::String& value) { SetReward(value); return *this;}
inline HIT& WithReward(Aws::String&& value) { SetReward(std::move(value)); return *this;}
inline HIT& WithReward(const char* value) { SetReward(value); return *this;}
/**
* <p>The amount of time, in seconds, after the Worker submits an assignment for
* the HIT that the results are automatically approved by Amazon Mechanical Turk.
* This is the amount of time the Requester has to reject an assignment submitted
* by a Worker before the assignment is auto-approved and the Worker is paid. </p>
*/
inline long long GetAutoApprovalDelayInSeconds() const{ return m_autoApprovalDelayInSeconds; }
/**
* <p>The amount of time, in seconds, after the Worker submits an assignment for
* the HIT that the results are automatically approved by Amazon Mechanical Turk.
* This is the amount of time the Requester has to reject an assignment submitted
* by a Worker before the assignment is auto-approved and the Worker is paid. </p>
*/
inline bool AutoApprovalDelayInSecondsHasBeenSet() const { return m_autoApprovalDelayInSecondsHasBeenSet; }
/**
* <p>The amount of time, in seconds, after the Worker submits an assignment for
* the HIT that the results are automatically approved by Amazon Mechanical Turk.
* This is the amount of time the Requester has to reject an assignment submitted
* by a Worker before the assignment is auto-approved and the Worker is paid. </p>
*/
inline void SetAutoApprovalDelayInSeconds(long long value) { m_autoApprovalDelayInSecondsHasBeenSet = true; m_autoApprovalDelayInSeconds = value; }
/**
* <p>The amount of time, in seconds, after the Worker submits an assignment for
* the HIT that the results are automatically approved by Amazon Mechanical Turk.
* This is the amount of time the Requester has to reject an assignment submitted
* by a Worker before the assignment is auto-approved and the Worker is paid. </p>
*/
inline HIT& WithAutoApprovalDelayInSeconds(long long value) { SetAutoApprovalDelayInSeconds(value); return *this;}
/**
* <p>The date and time the HIT expires.</p>
*/
inline const Aws::Utils::DateTime& GetExpiration() const{ return m_expiration; }
/**
* <p>The date and time the HIT expires.</p>
*/
inline bool ExpirationHasBeenSet() const { return m_expirationHasBeenSet; }
/**
* <p>The date and time the HIT expires.</p>
*/
inline void SetExpiration(const Aws::Utils::DateTime& value) { m_expirationHasBeenSet = true; m_expiration = value; }
/**
* <p>The date and time the HIT expires.</p>
*/
inline void SetExpiration(Aws::Utils::DateTime&& value) { m_expirationHasBeenSet = true; m_expiration = std::move(value); }
/**
* <p>The date and time the HIT expires.</p>
*/
inline HIT& WithExpiration(const Aws::Utils::DateTime& value) { SetExpiration(value); return *this;}
/**
* <p>The date and time the HIT expires.</p>
*/
inline HIT& WithExpiration(Aws::Utils::DateTime&& value) { SetExpiration(std::move(value)); return *this;}
/**
* <p> The length of time, in seconds, that a Worker has to complete the HIT after
* accepting it.</p>
*/
inline long long GetAssignmentDurationInSeconds() const{ return m_assignmentDurationInSeconds; }
/**
* <p> The length of time, in seconds, that a Worker has to complete the HIT after
* accepting it.</p>
*/
inline bool AssignmentDurationInSecondsHasBeenSet() const { return m_assignmentDurationInSecondsHasBeenSet; }
/**
* <p> The length of time, in seconds, that a Worker has to complete the HIT after
* accepting it.</p>
*/
inline void SetAssignmentDurationInSeconds(long long value) { m_assignmentDurationInSecondsHasBeenSet = true; m_assignmentDurationInSeconds = value; }
/**
* <p> The length of time, in seconds, that a Worker has to complete the HIT after
* accepting it.</p>
*/
inline HIT& WithAssignmentDurationInSeconds(long long value) { SetAssignmentDurationInSeconds(value); return *this;}
/**
* <p> An arbitrary data field the Requester who created the HIT can use. This
* field is visible only to the creator of the HIT.</p>
*/
inline const Aws::String& GetRequesterAnnotation() const{ return m_requesterAnnotation; }
/**
* <p> An arbitrary data field the Requester who created the HIT can use. This
* field is visible only to the creator of the HIT.</p>
*/
inline bool RequesterAnnotationHasBeenSet() const { return m_requesterAnnotationHasBeenSet; }
/**
* <p> An arbitrary data field the Requester who created the HIT can use. This
* field is visible only to the creator of the HIT.</p>
*/
inline void SetRequesterAnnotation(const Aws::String& value) { m_requesterAnnotationHasBeenSet = true; m_requesterAnnotation = value; }
/**
* <p> An arbitrary data field the Requester who created the HIT can use. This
* field is visible only to the creator of the HIT.</p>
*/
inline void SetRequesterAnnotation(Aws::String&& value) { m_requesterAnnotationHasBeenSet = true; m_requesterAnnotation = std::move(value); }
/**
* <p> An arbitrary data field the Requester who created the HIT can use. This
* field is visible only to the creator of the HIT.</p>
*/
inline void SetRequesterAnnotation(const char* value) { m_requesterAnnotationHasBeenSet = true; m_requesterAnnotation.assign(value); }
/**
* <p> An arbitrary data field the Requester who created the HIT can use. This
* field is visible only to the creator of the HIT.</p>
*/
inline HIT& WithRequesterAnnotation(const Aws::String& value) { SetRequesterAnnotation(value); return *this;}
/**
* <p> An arbitrary data field the Requester who created the HIT can use. This
* field is visible only to the creator of the HIT.</p>
*/
inline HIT& WithRequesterAnnotation(Aws::String&& value) { SetRequesterAnnotation(std::move(value)); return *this;}
/**
* <p> An arbitrary data field the Requester who created the HIT can use. This
* field is visible only to the creator of the HIT.</p>
*/
inline HIT& WithRequesterAnnotation(const char* value) { SetRequesterAnnotation(value); return *this;}
/**
* <p> Conditions that a Worker's Qualifications must meet in order to accept the
* HIT. A HIT can have between zero and ten Qualification requirements. All
* requirements must be met in order for a Worker to accept the HIT. Additionally,
* other actions can be restricted using the <code>ActionsGuarded</code> field on
* each <code>QualificationRequirement</code> structure. </p>
*/
inline const Aws::Vector<QualificationRequirement>& GetQualificationRequirements() const{ return m_qualificationRequirements; }
/**
* <p> Conditions that a Worker's Qualifications must meet in order to accept the
* HIT. A HIT can have between zero and ten Qualification requirements. All
* requirements must be met in order for a Worker to accept the HIT. Additionally,
* other actions can be restricted using the <code>ActionsGuarded</code> field on
* each <code>QualificationRequirement</code> structure. </p>
*/
inline bool QualificationRequirementsHasBeenSet() const { return m_qualificationRequirementsHasBeenSet; }
/**
* <p> Conditions that a Worker's Qualifications must meet in order to accept the
* HIT. A HIT can have between zero and ten Qualification requirements. All
* requirements must be met in order for a Worker to accept the HIT. Additionally,
* other actions can be restricted using the <code>ActionsGuarded</code> field on
* each <code>QualificationRequirement</code> structure. </p>
*/
inline void SetQualificationRequirements(const Aws::Vector<QualificationRequirement>& value) { m_qualificationRequirementsHasBeenSet = true; m_qualificationRequirements = value; }
/**
* <p> Conditions that a Worker's Qualifications must meet in order to accept the
* HIT. A HIT can have between zero and ten Qualification requirements. All
* requirements must be met in order for a Worker to accept the HIT. Additionally,
* other actions can be restricted using the <code>ActionsGuarded</code> field on
* each <code>QualificationRequirement</code> structure. </p>
*/
inline void SetQualificationRequirements(Aws::Vector<QualificationRequirement>&& value) { m_qualificationRequirementsHasBeenSet = true; m_qualificationRequirements = std::move(value); }
/**
* <p> Conditions that a Worker's Qualifications must meet in order to accept the
* HIT. A HIT can have between zero and ten Qualification requirements. All
* requirements must be met in order for a Worker to accept the HIT. Additionally,
* other actions can be restricted using the <code>ActionsGuarded</code> field on
* each <code>QualificationRequirement</code> structure. </p>
*/
inline HIT& WithQualificationRequirements(const Aws::Vector<QualificationRequirement>& value) { SetQualificationRequirements(value); return *this;}
/**
* <p> Conditions that a Worker's Qualifications must meet in order to accept the
* HIT. A HIT can have between zero and ten Qualification requirements. All
* requirements must be met in order for a Worker to accept the HIT. Additionally,
* other actions can be restricted using the <code>ActionsGuarded</code> field on
* each <code>QualificationRequirement</code> structure. </p>
*/
inline HIT& WithQualificationRequirements(Aws::Vector<QualificationRequirement>&& value) { SetQualificationRequirements(std::move(value)); return *this;}
/**
* <p> Conditions that a Worker's Qualifications must meet in order to accept the
* HIT. A HIT can have between zero and ten Qualification requirements. All
* requirements must be met in order for a Worker to accept the HIT. Additionally,
* other actions can be restricted using the <code>ActionsGuarded</code> field on
* each <code>QualificationRequirement</code> structure. </p>
*/
inline HIT& AddQualificationRequirements(const QualificationRequirement& value) { m_qualificationRequirementsHasBeenSet = true; m_qualificationRequirements.push_back(value); return *this; }
/**
* <p> Conditions that a Worker's Qualifications must meet in order to accept the
* HIT. A HIT can have between zero and ten Qualification requirements. All
* requirements must be met in order for a Worker to accept the HIT. Additionally,
* other actions can be restricted using the <code>ActionsGuarded</code> field on
* each <code>QualificationRequirement</code> structure. </p>
*/
inline HIT& AddQualificationRequirements(QualificationRequirement&& value) { m_qualificationRequirementsHasBeenSet = true; m_qualificationRequirements.push_back(std::move(value)); return *this; }
/**
* <p> Indicates the review status of the HIT. Valid Values are NotReviewed |
* MarkedForReview | ReviewedAppropriate | ReviewedInappropriate.</p>
*/
inline const HITReviewStatus& GetHITReviewStatus() const{ return m_hITReviewStatus; }
/**
* <p> Indicates the review status of the HIT. Valid Values are NotReviewed |
* MarkedForReview | ReviewedAppropriate | ReviewedInappropriate.</p>
*/
inline bool HITReviewStatusHasBeenSet() const { return m_hITReviewStatusHasBeenSet; }
/**
* <p> Indicates the review status of the HIT. Valid Values are NotReviewed |
* MarkedForReview | ReviewedAppropriate | ReviewedInappropriate.</p>
*/
inline void SetHITReviewStatus(const HITReviewStatus& value) { m_hITReviewStatusHasBeenSet = true; m_hITReviewStatus = value; }
/**
* <p> Indicates the review status of the HIT. Valid Values are NotReviewed |
* MarkedForReview | ReviewedAppropriate | ReviewedInappropriate.</p>
*/
inline void SetHITReviewStatus(HITReviewStatus&& value) { m_hITReviewStatusHasBeenSet = true; m_hITReviewStatus = std::move(value); }
/**
* <p> Indicates the review status of the HIT. Valid Values are NotReviewed |
* MarkedForReview | ReviewedAppropriate | ReviewedInappropriate.</p>
*/
inline HIT& WithHITReviewStatus(const HITReviewStatus& value) { SetHITReviewStatus(value); return *this;}
/**
* <p> Indicates the review status of the HIT. Valid Values are NotReviewed |
* MarkedForReview | ReviewedAppropriate | ReviewedInappropriate.</p>
*/
inline HIT& WithHITReviewStatus(HITReviewStatus&& value) { SetHITReviewStatus(std::move(value)); return *this;}
/**
* <p> The number of assignments for this HIT that are being previewed or have been
* accepted by Workers, but have not yet been submitted, returned, or
* abandoned.</p>
*/
inline int GetNumberOfAssignmentsPending() const{ return m_numberOfAssignmentsPending; }
/**
* <p> The number of assignments for this HIT that are being previewed or have been
* accepted by Workers, but have not yet been submitted, returned, or
* abandoned.</p>
*/
inline bool NumberOfAssignmentsPendingHasBeenSet() const { return m_numberOfAssignmentsPendingHasBeenSet; }
/**
* <p> The number of assignments for this HIT that are being previewed or have been
* accepted by Workers, but have not yet been submitted, returned, or
* abandoned.</p>
*/
inline void SetNumberOfAssignmentsPending(int value) { m_numberOfAssignmentsPendingHasBeenSet = true; m_numberOfAssignmentsPending = value; }
/**
* <p> The number of assignments for this HIT that are being previewed or have been
* accepted by Workers, but have not yet been submitted, returned, or
* abandoned.</p>
*/
inline HIT& WithNumberOfAssignmentsPending(int value) { SetNumberOfAssignmentsPending(value); return *this;}
/**
* <p> The number of assignments for this HIT that are available for Workers to
* accept.</p>
*/
inline int GetNumberOfAssignmentsAvailable() const{ return m_numberOfAssignmentsAvailable; }
/**
* <p> The number of assignments for this HIT that are available for Workers to
* accept.</p>
*/
inline bool NumberOfAssignmentsAvailableHasBeenSet() const { return m_numberOfAssignmentsAvailableHasBeenSet; }
/**
* <p> The number of assignments for this HIT that are available for Workers to
* accept.</p>
*/
inline void SetNumberOfAssignmentsAvailable(int value) { m_numberOfAssignmentsAvailableHasBeenSet = true; m_numberOfAssignmentsAvailable = value; }
/**
* <p> The number of assignments for this HIT that are available for Workers to
* accept.</p>
*/
inline HIT& WithNumberOfAssignmentsAvailable(int value) { SetNumberOfAssignmentsAvailable(value); return *this;}
/**
* <p> The number of assignments for this HIT that have been approved or
* rejected.</p>
*/
inline int GetNumberOfAssignmentsCompleted() const{ return m_numberOfAssignmentsCompleted; }
/**
* <p> The number of assignments for this HIT that have been approved or
* rejected.</p>
*/
inline bool NumberOfAssignmentsCompletedHasBeenSet() const { return m_numberOfAssignmentsCompletedHasBeenSet; }
/**
* <p> The number of assignments for this HIT that have been approved or
* rejected.</p>
*/
inline void SetNumberOfAssignmentsCompleted(int value) { m_numberOfAssignmentsCompletedHasBeenSet = true; m_numberOfAssignmentsCompleted = value; }
/**
* <p> The number of assignments for this HIT that have been approved or
* rejected.</p>
*/
inline HIT& WithNumberOfAssignmentsCompleted(int value) { SetNumberOfAssignmentsCompleted(value); return *this;}
private:
Aws::String m_hITId;
bool m_hITIdHasBeenSet;
Aws::String m_hITTypeId;
bool m_hITTypeIdHasBeenSet;
Aws::String m_hITGroupId;
bool m_hITGroupIdHasBeenSet;
Aws::String m_hITLayoutId;
bool m_hITLayoutIdHasBeenSet;
Aws::Utils::DateTime m_creationTime;
bool m_creationTimeHasBeenSet;
Aws::String m_title;
bool m_titleHasBeenSet;
Aws::String m_description;
bool m_descriptionHasBeenSet;
Aws::String m_question;
bool m_questionHasBeenSet;
Aws::String m_keywords;
bool m_keywordsHasBeenSet;
HITStatus m_hITStatus;
bool m_hITStatusHasBeenSet;
int m_maxAssignments;
bool m_maxAssignmentsHasBeenSet;
Aws::String m_reward;
bool m_rewardHasBeenSet;
long long m_autoApprovalDelayInSeconds;
bool m_autoApprovalDelayInSecondsHasBeenSet;
Aws::Utils::DateTime m_expiration;
bool m_expirationHasBeenSet;
long long m_assignmentDurationInSeconds;
bool m_assignmentDurationInSecondsHasBeenSet;
Aws::String m_requesterAnnotation;
bool m_requesterAnnotationHasBeenSet;
Aws::Vector<QualificationRequirement> m_qualificationRequirements;
bool m_qualificationRequirementsHasBeenSet;
HITReviewStatus m_hITReviewStatus;
bool m_hITReviewStatusHasBeenSet;
int m_numberOfAssignmentsPending;
bool m_numberOfAssignmentsPendingHasBeenSet;
int m_numberOfAssignmentsAvailable;
bool m_numberOfAssignmentsAvailableHasBeenSet;
int m_numberOfAssignmentsCompleted;
bool m_numberOfAssignmentsCompletedHasBeenSet;
};
} // namespace Model
} // namespace MTurk
} // namespace Aws

View File

@@ -0,0 +1,32 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace MTurk
{
namespace Model
{
enum class HITAccessActions
{
NOT_SET,
Accept,
PreviewAndAccept,
DiscoverPreviewAndAccept
};
namespace HITAccessActionsMapper
{
AWS_MTURK_API HITAccessActions GetHITAccessActionsForName(const Aws::String& name);
AWS_MTURK_API Aws::String GetNameForHITAccessActions(HITAccessActions value);
} // namespace HITAccessActionsMapper
} // namespace Model
} // namespace MTurk
} // namespace Aws

View File

@@ -0,0 +1,135 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace MTurk
{
namespace Model
{
/**
* <p> The HITLayoutParameter data structure defines parameter values used with a
* HITLayout. A HITLayout is a reusable Amazon Mechanical Turk project template
* used to provide Human Intelligence Task (HIT) question data for CreateHIT.
* </p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/HITLayoutParameter">AWS
* API Reference</a></p>
*/
class AWS_MTURK_API HITLayoutParameter
{
public:
HITLayoutParameter();
HITLayoutParameter(Aws::Utils::Json::JsonView jsonValue);
HITLayoutParameter& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p> The name of the parameter in the HITLayout. </p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p> The name of the parameter in the HITLayout. </p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p> The name of the parameter in the HITLayout. </p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p> The name of the parameter in the HITLayout. </p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p> The name of the parameter in the HITLayout. </p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p> The name of the parameter in the HITLayout. </p>
*/
inline HITLayoutParameter& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p> The name of the parameter in the HITLayout. </p>
*/
inline HITLayoutParameter& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p> The name of the parameter in the HITLayout. </p>
*/
inline HITLayoutParameter& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>The value substituted for the parameter referenced in the HITLayout. </p>
*/
inline const Aws::String& GetValue() const{ return m_value; }
/**
* <p>The value substituted for the parameter referenced in the HITLayout. </p>
*/
inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
/**
* <p>The value substituted for the parameter referenced in the HITLayout. </p>
*/
inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
/**
* <p>The value substituted for the parameter referenced in the HITLayout. </p>
*/
inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
/**
* <p>The value substituted for the parameter referenced in the HITLayout. </p>
*/
inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
/**
* <p>The value substituted for the parameter referenced in the HITLayout. </p>
*/
inline HITLayoutParameter& WithValue(const Aws::String& value) { SetValue(value); return *this;}
/**
* <p>The value substituted for the parameter referenced in the HITLayout. </p>
*/
inline HITLayoutParameter& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
/**
* <p>The value substituted for the parameter referenced in the HITLayout. </p>
*/
inline HITLayoutParameter& WithValue(const char* value) { SetValue(value); return *this;}
private:
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::String m_value;
bool m_valueHasBeenSet;
};
} // namespace Model
} // namespace MTurk
} // namespace Aws

View File

@@ -0,0 +1,33 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace MTurk
{
namespace Model
{
enum class HITReviewStatus
{
NOT_SET,
NotReviewed,
MarkedForReview,
ReviewedAppropriate,
ReviewedInappropriate
};
namespace HITReviewStatusMapper
{
AWS_MTURK_API HITReviewStatus GetHITReviewStatusForName(const Aws::String& name);
AWS_MTURK_API Aws::String GetNameForHITReviewStatus(HITReviewStatus value);
} // namespace HITReviewStatusMapper
} // namespace Model
} // namespace MTurk
} // namespace Aws

View File

@@ -0,0 +1,34 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace MTurk
{
namespace Model
{
enum class HITStatus
{
NOT_SET,
Assignable,
Unassignable,
Reviewable,
Reviewing,
Disposed
};
namespace HITStatusMapper
{
AWS_MTURK_API HITStatus GetHITStatusForName(const Aws::String& name);
AWS_MTURK_API Aws::String GetNameForHITStatus(HITStatus value);
} // namespace HITStatusMapper
} // namespace Model
} // namespace MTurk
} // namespace Aws

View File

@@ -0,0 +1,191 @@
/**
* 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 <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/mturk-requester/model/AssignmentStatus.h>
#include <utility>
namespace Aws
{
namespace MTurk
{
namespace Model
{
/**
*/
class AWS_MTURK_API ListAssignmentsForHITRequest : public MTurkRequest
{
public:
ListAssignmentsForHITRequest();
// 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 "ListAssignmentsForHIT"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The ID of the HIT.</p>
*/
inline const Aws::String& GetHITId() const{ return m_hITId; }
/**
* <p>The ID of the HIT.</p>
*/
inline bool HITIdHasBeenSet() const { return m_hITIdHasBeenSet; }
/**
* <p>The ID of the HIT.</p>
*/
inline void SetHITId(const Aws::String& value) { m_hITIdHasBeenSet = true; m_hITId = value; }
/**
* <p>The ID of the HIT.</p>
*/
inline void SetHITId(Aws::String&& value) { m_hITIdHasBeenSet = true; m_hITId = std::move(value); }
/**
* <p>The ID of the HIT.</p>
*/
inline void SetHITId(const char* value) { m_hITIdHasBeenSet = true; m_hITId.assign(value); }
/**
* <p>The ID of the HIT.</p>
*/
inline ListAssignmentsForHITRequest& WithHITId(const Aws::String& value) { SetHITId(value); return *this;}
/**
* <p>The ID of the HIT.</p>
*/
inline ListAssignmentsForHITRequest& WithHITId(Aws::String&& value) { SetHITId(std::move(value)); return *this;}
/**
* <p>The ID of the HIT.</p>
*/
inline ListAssignmentsForHITRequest& WithHITId(const char* value) { SetHITId(value); return *this;}
/**
* <p>Pagination token</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>Pagination token</p>
*/
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
/**
* <p>Pagination token</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
/**
* <p>Pagination token</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
/**
* <p>Pagination token</p>
*/
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
/**
* <p>Pagination token</p>
*/
inline ListAssignmentsForHITRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>Pagination token</p>
*/
inline ListAssignmentsForHITRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>Pagination token</p>
*/
inline ListAssignmentsForHITRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
inline int GetMaxResults() const{ return m_maxResults; }
inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
inline ListAssignmentsForHITRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
/**
* <p>The status of the assignments to return: Submitted | Approved | Rejected</p>
*/
inline const Aws::Vector<AssignmentStatus>& GetAssignmentStatuses() const{ return m_assignmentStatuses; }
/**
* <p>The status of the assignments to return: Submitted | Approved | Rejected</p>
*/
inline bool AssignmentStatusesHasBeenSet() const { return m_assignmentStatusesHasBeenSet; }
/**
* <p>The status of the assignments to return: Submitted | Approved | Rejected</p>
*/
inline void SetAssignmentStatuses(const Aws::Vector<AssignmentStatus>& value) { m_assignmentStatusesHasBeenSet = true; m_assignmentStatuses = value; }
/**
* <p>The status of the assignments to return: Submitted | Approved | Rejected</p>
*/
inline void SetAssignmentStatuses(Aws::Vector<AssignmentStatus>&& value) { m_assignmentStatusesHasBeenSet = true; m_assignmentStatuses = std::move(value); }
/**
* <p>The status of the assignments to return: Submitted | Approved | Rejected</p>
*/
inline ListAssignmentsForHITRequest& WithAssignmentStatuses(const Aws::Vector<AssignmentStatus>& value) { SetAssignmentStatuses(value); return *this;}
/**
* <p>The status of the assignments to return: Submitted | Approved | Rejected</p>
*/
inline ListAssignmentsForHITRequest& WithAssignmentStatuses(Aws::Vector<AssignmentStatus>&& value) { SetAssignmentStatuses(std::move(value)); return *this;}
/**
* <p>The status of the assignments to return: Submitted | Approved | Rejected</p>
*/
inline ListAssignmentsForHITRequest& AddAssignmentStatuses(const AssignmentStatus& value) { m_assignmentStatusesHasBeenSet = true; m_assignmentStatuses.push_back(value); return *this; }
/**
* <p>The status of the assignments to return: Submitted | Approved | Rejected</p>
*/
inline ListAssignmentsForHITRequest& AddAssignmentStatuses(AssignmentStatus&& value) { m_assignmentStatusesHasBeenSet = true; m_assignmentStatuses.push_back(std::move(value)); return *this; }
private:
Aws::String m_hITId;
bool m_hITIdHasBeenSet;
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
int m_maxResults;
bool m_maxResultsHasBeenSet;
Aws::Vector<AssignmentStatus> m_assignmentStatuses;
bool m_assignmentStatusesHasBeenSet;
};
} // namespace Model
} // namespace MTurk
} // namespace Aws

View File

@@ -0,0 +1,124 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/mturk-requester/model/Assignment.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace MTurk
{
namespace Model
{
class AWS_MTURK_API ListAssignmentsForHITResult
{
public:
ListAssignmentsForHITResult();
ListAssignmentsForHITResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ListAssignmentsForHITResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
inline ListAssignmentsForHITResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
inline ListAssignmentsForHITResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
inline ListAssignmentsForHITResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
/**
* <p> The number of assignments on the page in the filtered results list,
* equivalent to the number of assignments returned by this call.</p>
*/
inline int GetNumResults() const{ return m_numResults; }
/**
* <p> The number of assignments on the page in the filtered results list,
* equivalent to the number of assignments returned by this call.</p>
*/
inline void SetNumResults(int value) { m_numResults = value; }
/**
* <p> The number of assignments on the page in the filtered results list,
* equivalent to the number of assignments returned by this call.</p>
*/
inline ListAssignmentsForHITResult& WithNumResults(int value) { SetNumResults(value); return *this;}
/**
* <p> The collection of Assignment data structures returned by this call.</p>
*/
inline const Aws::Vector<Assignment>& GetAssignments() const{ return m_assignments; }
/**
* <p> The collection of Assignment data structures returned by this call.</p>
*/
inline void SetAssignments(const Aws::Vector<Assignment>& value) { m_assignments = value; }
/**
* <p> The collection of Assignment data structures returned by this call.</p>
*/
inline void SetAssignments(Aws::Vector<Assignment>&& value) { m_assignments = std::move(value); }
/**
* <p> The collection of Assignment data structures returned by this call.</p>
*/
inline ListAssignmentsForHITResult& WithAssignments(const Aws::Vector<Assignment>& value) { SetAssignments(value); return *this;}
/**
* <p> The collection of Assignment data structures returned by this call.</p>
*/
inline ListAssignmentsForHITResult& WithAssignments(Aws::Vector<Assignment>&& value) { SetAssignments(std::move(value)); return *this;}
/**
* <p> The collection of Assignment data structures returned by this call.</p>
*/
inline ListAssignmentsForHITResult& AddAssignments(const Assignment& value) { m_assignments.push_back(value); return *this; }
/**
* <p> The collection of Assignment data structures returned by this call.</p>
*/
inline ListAssignmentsForHITResult& AddAssignments(Assignment&& value) { m_assignments.push_back(std::move(value)); return *this; }
private:
Aws::String m_nextToken;
int m_numResults;
Aws::Vector<Assignment> m_assignments;
};
} // namespace Model
} // namespace MTurk
} // namespace Aws

View File

@@ -0,0 +1,229 @@
/**
* 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 ListBonusPaymentsRequest : public MTurkRequest
{
public:
ListBonusPaymentsRequest();
// 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 "ListBonusPayments"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The ID of the HIT associated with the bonus payments to retrieve. If not
* specified, all bonus payments for all assignments for the given HIT are
* returned. Either the HITId parameter or the AssignmentId parameter must be
* specified</p>
*/
inline const Aws::String& GetHITId() const{ return m_hITId; }
/**
* <p>The ID of the HIT associated with the bonus payments to retrieve. If not
* specified, all bonus payments for all assignments for the given HIT are
* returned. Either the HITId parameter or the AssignmentId parameter must be
* specified</p>
*/
inline bool HITIdHasBeenSet() const { return m_hITIdHasBeenSet; }
/**
* <p>The ID of the HIT associated with the bonus payments to retrieve. If not
* specified, all bonus payments for all assignments for the given HIT are
* returned. Either the HITId parameter or the AssignmentId parameter must be
* specified</p>
*/
inline void SetHITId(const Aws::String& value) { m_hITIdHasBeenSet = true; m_hITId = value; }
/**
* <p>The ID of the HIT associated with the bonus payments to retrieve. If not
* specified, all bonus payments for all assignments for the given HIT are
* returned. Either the HITId parameter or the AssignmentId parameter must be
* specified</p>
*/
inline void SetHITId(Aws::String&& value) { m_hITIdHasBeenSet = true; m_hITId = std::move(value); }
/**
* <p>The ID of the HIT associated with the bonus payments to retrieve. If not
* specified, all bonus payments for all assignments for the given HIT are
* returned. Either the HITId parameter or the AssignmentId parameter must be
* specified</p>
*/
inline void SetHITId(const char* value) { m_hITIdHasBeenSet = true; m_hITId.assign(value); }
/**
* <p>The ID of the HIT associated with the bonus payments to retrieve. If not
* specified, all bonus payments for all assignments for the given HIT are
* returned. Either the HITId parameter or the AssignmentId parameter must be
* specified</p>
*/
inline ListBonusPaymentsRequest& WithHITId(const Aws::String& value) { SetHITId(value); return *this;}
/**
* <p>The ID of the HIT associated with the bonus payments to retrieve. If not
* specified, all bonus payments for all assignments for the given HIT are
* returned. Either the HITId parameter or the AssignmentId parameter must be
* specified</p>
*/
inline ListBonusPaymentsRequest& WithHITId(Aws::String&& value) { SetHITId(std::move(value)); return *this;}
/**
* <p>The ID of the HIT associated with the bonus payments to retrieve. If not
* specified, all bonus payments for all assignments for the given HIT are
* returned. Either the HITId parameter or the AssignmentId parameter must be
* specified</p>
*/
inline ListBonusPaymentsRequest& WithHITId(const char* value) { SetHITId(value); return *this;}
/**
* <p>The ID of the assignment associated with the bonus payments to retrieve. If
* specified, only bonus payments for the given assignment are returned. Either the
* HITId parameter or the AssignmentId parameter must be specified</p>
*/
inline const Aws::String& GetAssignmentId() const{ return m_assignmentId; }
/**
* <p>The ID of the assignment associated with the bonus payments to retrieve. If
* specified, only bonus payments for the given assignment are returned. Either the
* HITId parameter or the AssignmentId parameter must be specified</p>
*/
inline bool AssignmentIdHasBeenSet() const { return m_assignmentIdHasBeenSet; }
/**
* <p>The ID of the assignment associated with the bonus payments to retrieve. If
* specified, only bonus payments for the given assignment are returned. Either the
* HITId parameter or the AssignmentId parameter must be specified</p>
*/
inline void SetAssignmentId(const Aws::String& value) { m_assignmentIdHasBeenSet = true; m_assignmentId = value; }
/**
* <p>The ID of the assignment associated with the bonus payments to retrieve. If
* specified, only bonus payments for the given assignment are returned. Either the
* HITId parameter or the AssignmentId parameter must be specified</p>
*/
inline void SetAssignmentId(Aws::String&& value) { m_assignmentIdHasBeenSet = true; m_assignmentId = std::move(value); }
/**
* <p>The ID of the assignment associated with the bonus payments to retrieve. If
* specified, only bonus payments for the given assignment are returned. Either the
* HITId parameter or the AssignmentId parameter must be specified</p>
*/
inline void SetAssignmentId(const char* value) { m_assignmentIdHasBeenSet = true; m_assignmentId.assign(value); }
/**
* <p>The ID of the assignment associated with the bonus payments to retrieve. If
* specified, only bonus payments for the given assignment are returned. Either the
* HITId parameter or the AssignmentId parameter must be specified</p>
*/
inline ListBonusPaymentsRequest& WithAssignmentId(const Aws::String& value) { SetAssignmentId(value); return *this;}
/**
* <p>The ID of the assignment associated with the bonus payments to retrieve. If
* specified, only bonus payments for the given assignment are returned. Either the
* HITId parameter or the AssignmentId parameter must be specified</p>
*/
inline ListBonusPaymentsRequest& WithAssignmentId(Aws::String&& value) { SetAssignmentId(std::move(value)); return *this;}
/**
* <p>The ID of the assignment associated with the bonus payments to retrieve. If
* specified, only bonus payments for the given assignment are returned. Either the
* HITId parameter or the AssignmentId parameter must be specified</p>
*/
inline ListBonusPaymentsRequest& WithAssignmentId(const char* value) { SetAssignmentId(value); return *this;}
/**
* <p>Pagination token</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>Pagination token</p>
*/
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
/**
* <p>Pagination token</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
/**
* <p>Pagination token</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
/**
* <p>Pagination token</p>
*/
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
/**
* <p>Pagination token</p>
*/
inline ListBonusPaymentsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>Pagination token</p>
*/
inline ListBonusPaymentsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>Pagination token</p>
*/
inline ListBonusPaymentsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
inline int GetMaxResults() const{ return m_maxResults; }
inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
inline ListBonusPaymentsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
private:
Aws::String m_hITId;
bool m_hITIdHasBeenSet;
Aws::String m_assignmentId;
bool m_assignmentIdHasBeenSet;
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
int m_maxResults;
bool m_maxResultsHasBeenSet;
};
} // namespace Model
} // namespace MTurk
} // namespace Aws

View File

@@ -0,0 +1,131 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/mturk-requester/model/BonusPayment.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace MTurk
{
namespace Model
{
class AWS_MTURK_API ListBonusPaymentsResult
{
public:
ListBonusPaymentsResult();
ListBonusPaymentsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ListBonusPaymentsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The number of bonus payments on this page in the filtered results list,
* equivalent to the number of bonus payments being returned by this call. </p>
*/
inline int GetNumResults() const{ return m_numResults; }
/**
* <p>The number of bonus payments on this page in the filtered results list,
* equivalent to the number of bonus payments being returned by this call. </p>
*/
inline void SetNumResults(int value) { m_numResults = value; }
/**
* <p>The number of bonus payments on this page in the filtered results list,
* equivalent to the number of bonus payments being returned by this call. </p>
*/
inline ListBonusPaymentsResult& WithNumResults(int value) { SetNumResults(value); return *this;}
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
inline ListBonusPaymentsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
inline ListBonusPaymentsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
inline ListBonusPaymentsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
/**
* <p>A successful request to the ListBonusPayments operation returns a list of
* BonusPayment objects. </p>
*/
inline const Aws::Vector<BonusPayment>& GetBonusPayments() const{ return m_bonusPayments; }
/**
* <p>A successful request to the ListBonusPayments operation returns a list of
* BonusPayment objects. </p>
*/
inline void SetBonusPayments(const Aws::Vector<BonusPayment>& value) { m_bonusPayments = value; }
/**
* <p>A successful request to the ListBonusPayments operation returns a list of
* BonusPayment objects. </p>
*/
inline void SetBonusPayments(Aws::Vector<BonusPayment>&& value) { m_bonusPayments = std::move(value); }
/**
* <p>A successful request to the ListBonusPayments operation returns a list of
* BonusPayment objects. </p>
*/
inline ListBonusPaymentsResult& WithBonusPayments(const Aws::Vector<BonusPayment>& value) { SetBonusPayments(value); return *this;}
/**
* <p>A successful request to the ListBonusPayments operation returns a list of
* BonusPayment objects. </p>
*/
inline ListBonusPaymentsResult& WithBonusPayments(Aws::Vector<BonusPayment>&& value) { SetBonusPayments(std::move(value)); return *this;}
/**
* <p>A successful request to the ListBonusPayments operation returns a list of
* BonusPayment objects. </p>
*/
inline ListBonusPaymentsResult& AddBonusPayments(const BonusPayment& value) { m_bonusPayments.push_back(value); return *this; }
/**
* <p>A successful request to the ListBonusPayments operation returns a list of
* BonusPayment objects. </p>
*/
inline ListBonusPaymentsResult& AddBonusPayments(BonusPayment&& value) { m_bonusPayments.push_back(std::move(value)); return *this; }
private:
int m_numResults;
Aws::String m_nextToken;
Aws::Vector<BonusPayment> m_bonusPayments;
};
} // namespace Model
} // namespace MTurk
} // namespace Aws

View File

@@ -0,0 +1,153 @@
/**
* 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 ListHITsForQualificationTypeRequest : public MTurkRequest
{
public:
ListHITsForQualificationTypeRequest();
// 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 "ListHITsForQualificationType"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p> The ID of the Qualification type to use when querying HITs. </p>
*/
inline const Aws::String& GetQualificationTypeId() const{ return m_qualificationTypeId; }
/**
* <p> The ID of the Qualification type to use when querying HITs. </p>
*/
inline bool QualificationTypeIdHasBeenSet() const { return m_qualificationTypeIdHasBeenSet; }
/**
* <p> The ID of the Qualification type to use when querying HITs. </p>
*/
inline void SetQualificationTypeId(const Aws::String& value) { m_qualificationTypeIdHasBeenSet = true; m_qualificationTypeId = value; }
/**
* <p> The ID of the Qualification type to use when querying HITs. </p>
*/
inline void SetQualificationTypeId(Aws::String&& value) { m_qualificationTypeIdHasBeenSet = true; m_qualificationTypeId = std::move(value); }
/**
* <p> The ID of the Qualification type to use when querying HITs. </p>
*/
inline void SetQualificationTypeId(const char* value) { m_qualificationTypeIdHasBeenSet = true; m_qualificationTypeId.assign(value); }
/**
* <p> The ID of the Qualification type to use when querying HITs. </p>
*/
inline ListHITsForQualificationTypeRequest& WithQualificationTypeId(const Aws::String& value) { SetQualificationTypeId(value); return *this;}
/**
* <p> The ID of the Qualification type to use when querying HITs. </p>
*/
inline ListHITsForQualificationTypeRequest& WithQualificationTypeId(Aws::String&& value) { SetQualificationTypeId(std::move(value)); return *this;}
/**
* <p> The ID of the Qualification type to use when querying HITs. </p>
*/
inline ListHITsForQualificationTypeRequest& WithQualificationTypeId(const char* value) { SetQualificationTypeId(value); return *this;}
/**
* <p>Pagination Token</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>Pagination Token</p>
*/
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
/**
* <p>Pagination Token</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
/**
* <p>Pagination Token</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
/**
* <p>Pagination Token</p>
*/
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
/**
* <p>Pagination Token</p>
*/
inline ListHITsForQualificationTypeRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>Pagination Token</p>
*/
inline ListHITsForQualificationTypeRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>Pagination Token</p>
*/
inline ListHITsForQualificationTypeRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
/**
* <p> Limit the number of results returned. </p>
*/
inline int GetMaxResults() const{ return m_maxResults; }
/**
* <p> Limit the number of results returned. </p>
*/
inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
/**
* <p> Limit the number of results returned. </p>
*/
inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
/**
* <p> Limit the number of results returned. </p>
*/
inline ListHITsForQualificationTypeRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
private:
Aws::String m_qualificationTypeId;
bool m_qualificationTypeIdHasBeenSet;
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
int m_maxResults;
bool m_maxResultsHasBeenSet;
};
} // namespace Model
} // namespace MTurk
} // namespace Aws

View File

@@ -0,0 +1,124 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/mturk-requester/model/HIT.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace MTurk
{
namespace Model
{
class AWS_MTURK_API ListHITsForQualificationTypeResult
{
public:
ListHITsForQualificationTypeResult();
ListHITsForQualificationTypeResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ListHITsForQualificationTypeResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
inline ListHITsForQualificationTypeResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
inline ListHITsForQualificationTypeResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
inline ListHITsForQualificationTypeResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
/**
* <p> The number of HITs on this page in the filtered results list, equivalent to
* the number of HITs being returned by this call. </p>
*/
inline int GetNumResults() const{ return m_numResults; }
/**
* <p> The number of HITs on this page in the filtered results list, equivalent to
* the number of HITs being returned by this call. </p>
*/
inline void SetNumResults(int value) { m_numResults = value; }
/**
* <p> The number of HITs on this page in the filtered results list, equivalent to
* the number of HITs being returned by this call. </p>
*/
inline ListHITsForQualificationTypeResult& WithNumResults(int value) { SetNumResults(value); return *this;}
/**
* <p> The list of HIT elements returned by the query.</p>
*/
inline const Aws::Vector<HIT>& GetHITs() const{ return m_hITs; }
/**
* <p> The list of HIT elements returned by the query.</p>
*/
inline void SetHITs(const Aws::Vector<HIT>& value) { m_hITs = value; }
/**
* <p> The list of HIT elements returned by the query.</p>
*/
inline void SetHITs(Aws::Vector<HIT>&& value) { m_hITs = std::move(value); }
/**
* <p> The list of HIT elements returned by the query.</p>
*/
inline ListHITsForQualificationTypeResult& WithHITs(const Aws::Vector<HIT>& value) { SetHITs(value); return *this;}
/**
* <p> The list of HIT elements returned by the query.</p>
*/
inline ListHITsForQualificationTypeResult& WithHITs(Aws::Vector<HIT>&& value) { SetHITs(std::move(value)); return *this;}
/**
* <p> The list of HIT elements returned by the query.</p>
*/
inline ListHITsForQualificationTypeResult& AddHITs(const HIT& value) { m_hITs.push_back(value); return *this; }
/**
* <p> The list of HIT elements returned by the query.</p>
*/
inline ListHITsForQualificationTypeResult& AddHITs(HIT&& value) { m_hITs.push_back(std::move(value)); return *this; }
private:
Aws::String m_nextToken;
int m_numResults;
Aws::Vector<HIT> m_hITs;
};
} // namespace Model
} // namespace MTurk
} // namespace Aws

View File

@@ -0,0 +1,101 @@
/**
* 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 ListHITsRequest : public MTurkRequest
{
public:
ListHITsRequest();
// 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 "ListHITs"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>Pagination token</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>Pagination token</p>
*/
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
/**
* <p>Pagination token</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
/**
* <p>Pagination token</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
/**
* <p>Pagination token</p>
*/
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
/**
* <p>Pagination token</p>
*/
inline ListHITsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>Pagination token</p>
*/
inline ListHITsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>Pagination token</p>
*/
inline ListHITsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
inline int GetMaxResults() const{ return m_maxResults; }
inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
inline ListHITsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
private:
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
int m_maxResults;
bool m_maxResultsHasBeenSet;
};
} // namespace Model
} // namespace MTurk
} // namespace Aws

View File

@@ -0,0 +1,124 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/mturk-requester/model/HIT.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace MTurk
{
namespace Model
{
class AWS_MTURK_API ListHITsResult
{
public:
ListHITsResult();
ListHITsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ListHITsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
inline ListHITsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
inline ListHITsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
inline ListHITsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
/**
* <p>The number of HITs on this page in the filtered results list, equivalent to
* the number of HITs being returned by this call.</p>
*/
inline int GetNumResults() const{ return m_numResults; }
/**
* <p>The number of HITs on this page in the filtered results list, equivalent to
* the number of HITs being returned by this call.</p>
*/
inline void SetNumResults(int value) { m_numResults = value; }
/**
* <p>The number of HITs on this page in the filtered results list, equivalent to
* the number of HITs being returned by this call.</p>
*/
inline ListHITsResult& WithNumResults(int value) { SetNumResults(value); return *this;}
/**
* <p> The list of HIT elements returned by the query.</p>
*/
inline const Aws::Vector<HIT>& GetHITs() const{ return m_hITs; }
/**
* <p> The list of HIT elements returned by the query.</p>
*/
inline void SetHITs(const Aws::Vector<HIT>& value) { m_hITs = value; }
/**
* <p> The list of HIT elements returned by the query.</p>
*/
inline void SetHITs(Aws::Vector<HIT>&& value) { m_hITs = std::move(value); }
/**
* <p> The list of HIT elements returned by the query.</p>
*/
inline ListHITsResult& WithHITs(const Aws::Vector<HIT>& value) { SetHITs(value); return *this;}
/**
* <p> The list of HIT elements returned by the query.</p>
*/
inline ListHITsResult& WithHITs(Aws::Vector<HIT>&& value) { SetHITs(std::move(value)); return *this;}
/**
* <p> The list of HIT elements returned by the query.</p>
*/
inline ListHITsResult& AddHITs(const HIT& value) { m_hITs.push_back(value); return *this; }
/**
* <p> The list of HIT elements returned by the query.</p>
*/
inline ListHITsResult& AddHITs(HIT&& value) { m_hITs.push_back(std::move(value)); return *this; }
private:
Aws::String m_nextToken;
int m_numResults;
Aws::Vector<HIT> m_hITs;
};
} // namespace Model
} // namespace MTurk
} // namespace Aws

View File

@@ -0,0 +1,137 @@
/**
* 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 ListQualificationRequestsRequest : public MTurkRequest
{
public:
ListQualificationRequestsRequest();
// 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 "ListQualificationRequests"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The ID of the QualificationType.</p>
*/
inline const Aws::String& GetQualificationTypeId() const{ return m_qualificationTypeId; }
/**
* <p>The ID of the QualificationType.</p>
*/
inline bool QualificationTypeIdHasBeenSet() const { return m_qualificationTypeIdHasBeenSet; }
/**
* <p>The ID of the QualificationType.</p>
*/
inline void SetQualificationTypeId(const Aws::String& value) { m_qualificationTypeIdHasBeenSet = true; m_qualificationTypeId = value; }
/**
* <p>The ID of the QualificationType.</p>
*/
inline void SetQualificationTypeId(Aws::String&& value) { m_qualificationTypeIdHasBeenSet = true; m_qualificationTypeId = std::move(value); }
/**
* <p>The ID of the QualificationType.</p>
*/
inline void SetQualificationTypeId(const char* value) { m_qualificationTypeIdHasBeenSet = true; m_qualificationTypeId.assign(value); }
/**
* <p>The ID of the QualificationType.</p>
*/
inline ListQualificationRequestsRequest& WithQualificationTypeId(const Aws::String& value) { SetQualificationTypeId(value); return *this;}
/**
* <p>The ID of the QualificationType.</p>
*/
inline ListQualificationRequestsRequest& WithQualificationTypeId(Aws::String&& value) { SetQualificationTypeId(std::move(value)); return *this;}
/**
* <p>The ID of the QualificationType.</p>
*/
inline ListQualificationRequestsRequest& WithQualificationTypeId(const char* value) { SetQualificationTypeId(value); return *this;}
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
inline ListQualificationRequestsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
inline ListQualificationRequestsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
inline ListQualificationRequestsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
/**
* <p> The maximum number of results to return in a single call. </p>
*/
inline int GetMaxResults() const{ return m_maxResults; }
/**
* <p> The maximum number of results to return in a single call. </p>
*/
inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
/**
* <p> The maximum number of results to return in a single call. </p>
*/
inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
/**
* <p> The maximum number of results to return in a single call. </p>
*/
inline ListQualificationRequestsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
private:
Aws::String m_qualificationTypeId;
bool m_qualificationTypeIdHasBeenSet;
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
int m_maxResults;
bool m_maxResultsHasBeenSet;
};
} // namespace Model
} // namespace MTurk
} // namespace Aws

View File

@@ -0,0 +1,134 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/mturk-requester/model/QualificationRequest.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace MTurk
{
namespace Model
{
class AWS_MTURK_API ListQualificationRequestsResult
{
public:
ListQualificationRequestsResult();
ListQualificationRequestsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ListQualificationRequestsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The number of Qualification requests on this page in the filtered results
* list, equivalent to the number of Qualification requests being returned by this
* call.</p>
*/
inline int GetNumResults() const{ return m_numResults; }
/**
* <p>The number of Qualification requests on this page in the filtered results
* list, equivalent to the number of Qualification requests being returned by this
* call.</p>
*/
inline void SetNumResults(int value) { m_numResults = value; }
/**
* <p>The number of Qualification requests on this page in the filtered results
* list, equivalent to the number of Qualification requests being returned by this
* call.</p>
*/
inline ListQualificationRequestsResult& WithNumResults(int value) { SetNumResults(value); return *this;}
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
inline ListQualificationRequestsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
inline ListQualificationRequestsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
inline ListQualificationRequestsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
/**
* <p>The Qualification request. The response includes one QualificationRequest
* element for each Qualification request returned by the query.</p>
*/
inline const Aws::Vector<QualificationRequest>& GetQualificationRequests() const{ return m_qualificationRequests; }
/**
* <p>The Qualification request. The response includes one QualificationRequest
* element for each Qualification request returned by the query.</p>
*/
inline void SetQualificationRequests(const Aws::Vector<QualificationRequest>& value) { m_qualificationRequests = value; }
/**
* <p>The Qualification request. The response includes one QualificationRequest
* element for each Qualification request returned by the query.</p>
*/
inline void SetQualificationRequests(Aws::Vector<QualificationRequest>&& value) { m_qualificationRequests = std::move(value); }
/**
* <p>The Qualification request. The response includes one QualificationRequest
* element for each Qualification request returned by the query.</p>
*/
inline ListQualificationRequestsResult& WithQualificationRequests(const Aws::Vector<QualificationRequest>& value) { SetQualificationRequests(value); return *this;}
/**
* <p>The Qualification request. The response includes one QualificationRequest
* element for each Qualification request returned by the query.</p>
*/
inline ListQualificationRequestsResult& WithQualificationRequests(Aws::Vector<QualificationRequest>&& value) { SetQualificationRequests(std::move(value)); return *this;}
/**
* <p>The Qualification request. The response includes one QualificationRequest
* element for each Qualification request returned by the query.</p>
*/
inline ListQualificationRequestsResult& AddQualificationRequests(const QualificationRequest& value) { m_qualificationRequests.push_back(value); return *this; }
/**
* <p>The Qualification request. The response includes one QualificationRequest
* element for each Qualification request returned by the query.</p>
*/
inline ListQualificationRequestsResult& AddQualificationRequests(QualificationRequest&& value) { m_qualificationRequests.push_back(std::move(value)); return *this; }
private:
int m_numResults;
Aws::String m_nextToken;
Aws::Vector<QualificationRequest> m_qualificationRequests;
};
} // namespace Model
} // namespace MTurk
} // namespace Aws

View File

@@ -0,0 +1,217 @@
/**
* 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 ListQualificationTypesRequest : public MTurkRequest
{
public:
ListQualificationTypesRequest();
// 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 "ListQualificationTypes"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p> A text query against all of the searchable attributes of Qualification
* types. </p>
*/
inline const Aws::String& GetQuery() const{ return m_query; }
/**
* <p> A text query against all of the searchable attributes of Qualification
* types. </p>
*/
inline bool QueryHasBeenSet() const { return m_queryHasBeenSet; }
/**
* <p> A text query against all of the searchable attributes of Qualification
* types. </p>
*/
inline void SetQuery(const Aws::String& value) { m_queryHasBeenSet = true; m_query = value; }
/**
* <p> A text query against all of the searchable attributes of Qualification
* types. </p>
*/
inline void SetQuery(Aws::String&& value) { m_queryHasBeenSet = true; m_query = std::move(value); }
/**
* <p> A text query against all of the searchable attributes of Qualification
* types. </p>
*/
inline void SetQuery(const char* value) { m_queryHasBeenSet = true; m_query.assign(value); }
/**
* <p> A text query against all of the searchable attributes of Qualification
* types. </p>
*/
inline ListQualificationTypesRequest& WithQuery(const Aws::String& value) { SetQuery(value); return *this;}
/**
* <p> A text query against all of the searchable attributes of Qualification
* types. </p>
*/
inline ListQualificationTypesRequest& WithQuery(Aws::String&& value) { SetQuery(std::move(value)); return *this;}
/**
* <p> A text query against all of the searchable attributes of Qualification
* types. </p>
*/
inline ListQualificationTypesRequest& WithQuery(const char* value) { SetQuery(value); return *this;}
/**
* <p>Specifies that only Qualification types that a user can request through the
* Amazon Mechanical Turk web site, such as by taking a Qualification test, are
* returned as results of the search. Some Qualification types, such as those
* assigned automatically by the system, cannot be requested directly by users. If
* false, all Qualification types, including those managed by the system, are
* considered. Valid values are True | False. </p>
*/
inline bool GetMustBeRequestable() const{ return m_mustBeRequestable; }
/**
* <p>Specifies that only Qualification types that a user can request through the
* Amazon Mechanical Turk web site, such as by taking a Qualification test, are
* returned as results of the search. Some Qualification types, such as those
* assigned automatically by the system, cannot be requested directly by users. If
* false, all Qualification types, including those managed by the system, are
* considered. Valid values are True | False. </p>
*/
inline bool MustBeRequestableHasBeenSet() const { return m_mustBeRequestableHasBeenSet; }
/**
* <p>Specifies that only Qualification types that a user can request through the
* Amazon Mechanical Turk web site, such as by taking a Qualification test, are
* returned as results of the search. Some Qualification types, such as those
* assigned automatically by the system, cannot be requested directly by users. If
* false, all Qualification types, including those managed by the system, are
* considered. Valid values are True | False. </p>
*/
inline void SetMustBeRequestable(bool value) { m_mustBeRequestableHasBeenSet = true; m_mustBeRequestable = value; }
/**
* <p>Specifies that only Qualification types that a user can request through the
* Amazon Mechanical Turk web site, such as by taking a Qualification test, are
* returned as results of the search. Some Qualification types, such as those
* assigned automatically by the system, cannot be requested directly by users. If
* false, all Qualification types, including those managed by the system, are
* considered. Valid values are True | False. </p>
*/
inline ListQualificationTypesRequest& WithMustBeRequestable(bool value) { SetMustBeRequestable(value); return *this;}
/**
* <p> Specifies that only Qualification types that the Requester created are
* returned. If false, the operation returns all Qualification types. </p>
*/
inline bool GetMustBeOwnedByCaller() const{ return m_mustBeOwnedByCaller; }
/**
* <p> Specifies that only Qualification types that the Requester created are
* returned. If false, the operation returns all Qualification types. </p>
*/
inline bool MustBeOwnedByCallerHasBeenSet() const { return m_mustBeOwnedByCallerHasBeenSet; }
/**
* <p> Specifies that only Qualification types that the Requester created are
* returned. If false, the operation returns all Qualification types. </p>
*/
inline void SetMustBeOwnedByCaller(bool value) { m_mustBeOwnedByCallerHasBeenSet = true; m_mustBeOwnedByCaller = value; }
/**
* <p> Specifies that only Qualification types that the Requester created are
* returned. If false, the operation returns all Qualification types. </p>
*/
inline ListQualificationTypesRequest& WithMustBeOwnedByCaller(bool value) { SetMustBeOwnedByCaller(value); return *this;}
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
inline ListQualificationTypesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
inline ListQualificationTypesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
inline ListQualificationTypesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
/**
* <p> The maximum number of results to return in a single call. </p>
*/
inline int GetMaxResults() const{ return m_maxResults; }
/**
* <p> The maximum number of results to return in a single call. </p>
*/
inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
/**
* <p> The maximum number of results to return in a single call. </p>
*/
inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
/**
* <p> The maximum number of results to return in a single call. </p>
*/
inline ListQualificationTypesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
private:
Aws::String m_query;
bool m_queryHasBeenSet;
bool m_mustBeRequestable;
bool m_mustBeRequestableHasBeenSet;
bool m_mustBeOwnedByCaller;
bool m_mustBeOwnedByCallerHasBeenSet;
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
int m_maxResults;
bool m_maxResultsHasBeenSet;
};
} // namespace Model
} // namespace MTurk
} // namespace Aws

View File

@@ -0,0 +1,124 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/mturk-requester/model/QualificationType.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace MTurk
{
namespace Model
{
class AWS_MTURK_API ListQualificationTypesResult
{
public:
ListQualificationTypesResult();
ListQualificationTypesResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ListQualificationTypesResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p> The number of Qualification types on this page in the filtered results list,
* equivalent to the number of types this operation returns. </p>
*/
inline int GetNumResults() const{ return m_numResults; }
/**
* <p> The number of Qualification types on this page in the filtered results list,
* equivalent to the number of types this operation returns. </p>
*/
inline void SetNumResults(int value) { m_numResults = value; }
/**
* <p> The number of Qualification types on this page in the filtered results list,
* equivalent to the number of types this operation returns. </p>
*/
inline ListQualificationTypesResult& WithNumResults(int value) { SetNumResults(value); return *this;}
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
inline ListQualificationTypesResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
inline ListQualificationTypesResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
inline ListQualificationTypesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
/**
* <p> The list of QualificationType elements returned by the query. </p>
*/
inline const Aws::Vector<QualificationType>& GetQualificationTypes() const{ return m_qualificationTypes; }
/**
* <p> The list of QualificationType elements returned by the query. </p>
*/
inline void SetQualificationTypes(const Aws::Vector<QualificationType>& value) { m_qualificationTypes = value; }
/**
* <p> The list of QualificationType elements returned by the query. </p>
*/
inline void SetQualificationTypes(Aws::Vector<QualificationType>&& value) { m_qualificationTypes = std::move(value); }
/**
* <p> The list of QualificationType elements returned by the query. </p>
*/
inline ListQualificationTypesResult& WithQualificationTypes(const Aws::Vector<QualificationType>& value) { SetQualificationTypes(value); return *this;}
/**
* <p> The list of QualificationType elements returned by the query. </p>
*/
inline ListQualificationTypesResult& WithQualificationTypes(Aws::Vector<QualificationType>&& value) { SetQualificationTypes(std::move(value)); return *this;}
/**
* <p> The list of QualificationType elements returned by the query. </p>
*/
inline ListQualificationTypesResult& AddQualificationTypes(const QualificationType& value) { m_qualificationTypes.push_back(value); return *this; }
/**
* <p> The list of QualificationType elements returned by the query. </p>
*/
inline ListQualificationTypesResult& AddQualificationTypes(QualificationType&& value) { m_qualificationTypes.push_back(std::move(value)); return *this; }
private:
int m_numResults;
Aws::String m_nextToken;
Aws::Vector<QualificationType> m_qualificationTypes;
};
} // namespace Model
} // namespace MTurk
} // namespace Aws

View File

@@ -0,0 +1,271 @@
/**
* 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 <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/mturk-requester/model/ReviewPolicyLevel.h>
#include <utility>
namespace Aws
{
namespace MTurk
{
namespace Model
{
/**
*/
class AWS_MTURK_API ListReviewPolicyResultsForHITRequest : public MTurkRequest
{
public:
ListReviewPolicyResultsForHITRequest();
// 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 "ListReviewPolicyResultsForHIT"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The unique identifier of the HIT to retrieve review results for.</p>
*/
inline const Aws::String& GetHITId() const{ return m_hITId; }
/**
* <p>The unique identifier of the HIT to retrieve review results for.</p>
*/
inline bool HITIdHasBeenSet() const { return m_hITIdHasBeenSet; }
/**
* <p>The unique identifier of the HIT to retrieve review results for.</p>
*/
inline void SetHITId(const Aws::String& value) { m_hITIdHasBeenSet = true; m_hITId = value; }
/**
* <p>The unique identifier of the HIT to retrieve review results for.</p>
*/
inline void SetHITId(Aws::String&& value) { m_hITIdHasBeenSet = true; m_hITId = std::move(value); }
/**
* <p>The unique identifier of the HIT to retrieve review results for.</p>
*/
inline void SetHITId(const char* value) { m_hITIdHasBeenSet = true; m_hITId.assign(value); }
/**
* <p>The unique identifier of the HIT to retrieve review results for.</p>
*/
inline ListReviewPolicyResultsForHITRequest& WithHITId(const Aws::String& value) { SetHITId(value); return *this;}
/**
* <p>The unique identifier of the HIT to retrieve review results for.</p>
*/
inline ListReviewPolicyResultsForHITRequest& WithHITId(Aws::String&& value) { SetHITId(std::move(value)); return *this;}
/**
* <p>The unique identifier of the HIT to retrieve review results for.</p>
*/
inline ListReviewPolicyResultsForHITRequest& WithHITId(const char* value) { SetHITId(value); return *this;}
/**
* <p> The Policy Level(s) to retrieve review results for - HIT or Assignment. If
* omitted, the default behavior is to retrieve all data for both policy levels.
* For a list of all the described policies, see Review Policies. </p>
*/
inline const Aws::Vector<ReviewPolicyLevel>& GetPolicyLevels() const{ return m_policyLevels; }
/**
* <p> The Policy Level(s) to retrieve review results for - HIT or Assignment. If
* omitted, the default behavior is to retrieve all data for both policy levels.
* For a list of all the described policies, see Review Policies. </p>
*/
inline bool PolicyLevelsHasBeenSet() const { return m_policyLevelsHasBeenSet; }
/**
* <p> The Policy Level(s) to retrieve review results for - HIT or Assignment. If
* omitted, the default behavior is to retrieve all data for both policy levels.
* For a list of all the described policies, see Review Policies. </p>
*/
inline void SetPolicyLevels(const Aws::Vector<ReviewPolicyLevel>& value) { m_policyLevelsHasBeenSet = true; m_policyLevels = value; }
/**
* <p> The Policy Level(s) to retrieve review results for - HIT or Assignment. If
* omitted, the default behavior is to retrieve all data for both policy levels.
* For a list of all the described policies, see Review Policies. </p>
*/
inline void SetPolicyLevels(Aws::Vector<ReviewPolicyLevel>&& value) { m_policyLevelsHasBeenSet = true; m_policyLevels = std::move(value); }
/**
* <p> The Policy Level(s) to retrieve review results for - HIT or Assignment. If
* omitted, the default behavior is to retrieve all data for both policy levels.
* For a list of all the described policies, see Review Policies. </p>
*/
inline ListReviewPolicyResultsForHITRequest& WithPolicyLevels(const Aws::Vector<ReviewPolicyLevel>& value) { SetPolicyLevels(value); return *this;}
/**
* <p> The Policy Level(s) to retrieve review results for - HIT or Assignment. If
* omitted, the default behavior is to retrieve all data for both policy levels.
* For a list of all the described policies, see Review Policies. </p>
*/
inline ListReviewPolicyResultsForHITRequest& WithPolicyLevels(Aws::Vector<ReviewPolicyLevel>&& value) { SetPolicyLevels(std::move(value)); return *this;}
/**
* <p> The Policy Level(s) to retrieve review results for - HIT or Assignment. If
* omitted, the default behavior is to retrieve all data for both policy levels.
* For a list of all the described policies, see Review Policies. </p>
*/
inline ListReviewPolicyResultsForHITRequest& AddPolicyLevels(const ReviewPolicyLevel& value) { m_policyLevelsHasBeenSet = true; m_policyLevels.push_back(value); return *this; }
/**
* <p> The Policy Level(s) to retrieve review results for - HIT or Assignment. If
* omitted, the default behavior is to retrieve all data for both policy levels.
* For a list of all the described policies, see Review Policies. </p>
*/
inline ListReviewPolicyResultsForHITRequest& AddPolicyLevels(ReviewPolicyLevel&& value) { m_policyLevelsHasBeenSet = true; m_policyLevels.push_back(std::move(value)); return *this; }
/**
* <p> Specify if the operation should retrieve a list of the actions taken
* executing the Review Policies and their outcomes. </p>
*/
inline bool GetRetrieveActions() const{ return m_retrieveActions; }
/**
* <p> Specify if the operation should retrieve a list of the actions taken
* executing the Review Policies and their outcomes. </p>
*/
inline bool RetrieveActionsHasBeenSet() const { return m_retrieveActionsHasBeenSet; }
/**
* <p> Specify if the operation should retrieve a list of the actions taken
* executing the Review Policies and their outcomes. </p>
*/
inline void SetRetrieveActions(bool value) { m_retrieveActionsHasBeenSet = true; m_retrieveActions = value; }
/**
* <p> Specify if the operation should retrieve a list of the actions taken
* executing the Review Policies and their outcomes. </p>
*/
inline ListReviewPolicyResultsForHITRequest& WithRetrieveActions(bool value) { SetRetrieveActions(value); return *this;}
/**
* <p> Specify if the operation should retrieve a list of the results computed by
* the Review Policies. </p>
*/
inline bool GetRetrieveResults() const{ return m_retrieveResults; }
/**
* <p> Specify if the operation should retrieve a list of the results computed by
* the Review Policies. </p>
*/
inline bool RetrieveResultsHasBeenSet() const { return m_retrieveResultsHasBeenSet; }
/**
* <p> Specify if the operation should retrieve a list of the results computed by
* the Review Policies. </p>
*/
inline void SetRetrieveResults(bool value) { m_retrieveResultsHasBeenSet = true; m_retrieveResults = value; }
/**
* <p> Specify if the operation should retrieve a list of the results computed by
* the Review Policies. </p>
*/
inline ListReviewPolicyResultsForHITRequest& WithRetrieveResults(bool value) { SetRetrieveResults(value); return *this;}
/**
* <p>Pagination token</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>Pagination token</p>
*/
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
/**
* <p>Pagination token</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
/**
* <p>Pagination token</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
/**
* <p>Pagination token</p>
*/
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
/**
* <p>Pagination token</p>
*/
inline ListReviewPolicyResultsForHITRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>Pagination token</p>
*/
inline ListReviewPolicyResultsForHITRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>Pagination token</p>
*/
inline ListReviewPolicyResultsForHITRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
/**
* <p>Limit the number of results returned.</p>
*/
inline int GetMaxResults() const{ return m_maxResults; }
/**
* <p>Limit the number of results returned.</p>
*/
inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
/**
* <p>Limit the number of results returned.</p>
*/
inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
/**
* <p>Limit the number of results returned.</p>
*/
inline ListReviewPolicyResultsForHITRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
private:
Aws::String m_hITId;
bool m_hITIdHasBeenSet;
Aws::Vector<ReviewPolicyLevel> m_policyLevels;
bool m_policyLevelsHasBeenSet;
bool m_retrieveActions;
bool m_retrieveActionsHasBeenSet;
bool m_retrieveResults;
bool m_retrieveResultsHasBeenSet;
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
int m_maxResults;
bool m_maxResultsHasBeenSet;
};
} // namespace Model
} // namespace MTurk
} // namespace Aws

View File

@@ -0,0 +1,230 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
#include <aws/mturk-requester/model/ReviewPolicy.h>
#include <aws/mturk-requester/model/ReviewReport.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace MTurk
{
namespace Model
{
class AWS_MTURK_API ListReviewPolicyResultsForHITResult
{
public:
ListReviewPolicyResultsForHITResult();
ListReviewPolicyResultsForHITResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ListReviewPolicyResultsForHITResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The HITId of the HIT for which results have been returned.</p>
*/
inline const Aws::String& GetHITId() const{ return m_hITId; }
/**
* <p>The HITId of the HIT for which results have been returned.</p>
*/
inline void SetHITId(const Aws::String& value) { m_hITId = value; }
/**
* <p>The HITId of the HIT for which results have been returned.</p>
*/
inline void SetHITId(Aws::String&& value) { m_hITId = std::move(value); }
/**
* <p>The HITId of the HIT for which results have been returned.</p>
*/
inline void SetHITId(const char* value) { m_hITId.assign(value); }
/**
* <p>The HITId of the HIT for which results have been returned.</p>
*/
inline ListReviewPolicyResultsForHITResult& WithHITId(const Aws::String& value) { SetHITId(value); return *this;}
/**
* <p>The HITId of the HIT for which results have been returned.</p>
*/
inline ListReviewPolicyResultsForHITResult& WithHITId(Aws::String&& value) { SetHITId(std::move(value)); return *this;}
/**
* <p>The HITId of the HIT for which results have been returned.</p>
*/
inline ListReviewPolicyResultsForHITResult& WithHITId(const char* value) { SetHITId(value); return *this;}
/**
* <p> The name of the Assignment-level Review Policy. This contains only the
* PolicyName element. </p>
*/
inline const ReviewPolicy& GetAssignmentReviewPolicy() const{ return m_assignmentReviewPolicy; }
/**
* <p> The name of the Assignment-level Review Policy. This contains only the
* PolicyName element. </p>
*/
inline void SetAssignmentReviewPolicy(const ReviewPolicy& value) { m_assignmentReviewPolicy = value; }
/**
* <p> The name of the Assignment-level Review Policy. This contains only the
* PolicyName element. </p>
*/
inline void SetAssignmentReviewPolicy(ReviewPolicy&& value) { m_assignmentReviewPolicy = std::move(value); }
/**
* <p> The name of the Assignment-level Review Policy. This contains only the
* PolicyName element. </p>
*/
inline ListReviewPolicyResultsForHITResult& WithAssignmentReviewPolicy(const ReviewPolicy& value) { SetAssignmentReviewPolicy(value); return *this;}
/**
* <p> The name of the Assignment-level Review Policy. This contains only the
* PolicyName element. </p>
*/
inline ListReviewPolicyResultsForHITResult& WithAssignmentReviewPolicy(ReviewPolicy&& value) { SetAssignmentReviewPolicy(std::move(value)); return *this;}
/**
* <p>The name of the HIT-level Review Policy. This contains only the PolicyName
* element.</p>
*/
inline const ReviewPolicy& GetHITReviewPolicy() const{ return m_hITReviewPolicy; }
/**
* <p>The name of the HIT-level Review Policy. This contains only the PolicyName
* element.</p>
*/
inline void SetHITReviewPolicy(const ReviewPolicy& value) { m_hITReviewPolicy = value; }
/**
* <p>The name of the HIT-level Review Policy. This contains only the PolicyName
* element.</p>
*/
inline void SetHITReviewPolicy(ReviewPolicy&& value) { m_hITReviewPolicy = std::move(value); }
/**
* <p>The name of the HIT-level Review Policy. This contains only the PolicyName
* element.</p>
*/
inline ListReviewPolicyResultsForHITResult& WithHITReviewPolicy(const ReviewPolicy& value) { SetHITReviewPolicy(value); return *this;}
/**
* <p>The name of the HIT-level Review Policy. This contains only the PolicyName
* element.</p>
*/
inline ListReviewPolicyResultsForHITResult& WithHITReviewPolicy(ReviewPolicy&& value) { SetHITReviewPolicy(std::move(value)); return *this;}
/**
* <p> Contains both ReviewResult and ReviewAction elements for an Assignment. </p>
*/
inline const ReviewReport& GetAssignmentReviewReport() const{ return m_assignmentReviewReport; }
/**
* <p> Contains both ReviewResult and ReviewAction elements for an Assignment. </p>
*/
inline void SetAssignmentReviewReport(const ReviewReport& value) { m_assignmentReviewReport = value; }
/**
* <p> Contains both ReviewResult and ReviewAction elements for an Assignment. </p>
*/
inline void SetAssignmentReviewReport(ReviewReport&& value) { m_assignmentReviewReport = std::move(value); }
/**
* <p> Contains both ReviewResult and ReviewAction elements for an Assignment. </p>
*/
inline ListReviewPolicyResultsForHITResult& WithAssignmentReviewReport(const ReviewReport& value) { SetAssignmentReviewReport(value); return *this;}
/**
* <p> Contains both ReviewResult and ReviewAction elements for an Assignment. </p>
*/
inline ListReviewPolicyResultsForHITResult& WithAssignmentReviewReport(ReviewReport&& value) { SetAssignmentReviewReport(std::move(value)); return *this;}
/**
* <p>Contains both ReviewResult and ReviewAction elements for a particular HIT.
* </p>
*/
inline const ReviewReport& GetHITReviewReport() const{ return m_hITReviewReport; }
/**
* <p>Contains both ReviewResult and ReviewAction elements for a particular HIT.
* </p>
*/
inline void SetHITReviewReport(const ReviewReport& value) { m_hITReviewReport = value; }
/**
* <p>Contains both ReviewResult and ReviewAction elements for a particular HIT.
* </p>
*/
inline void SetHITReviewReport(ReviewReport&& value) { m_hITReviewReport = std::move(value); }
/**
* <p>Contains both ReviewResult and ReviewAction elements for a particular HIT.
* </p>
*/
inline ListReviewPolicyResultsForHITResult& WithHITReviewReport(const ReviewReport& value) { SetHITReviewReport(value); return *this;}
/**
* <p>Contains both ReviewResult and ReviewAction elements for a particular HIT.
* </p>
*/
inline ListReviewPolicyResultsForHITResult& WithHITReviewReport(ReviewReport&& value) { SetHITReviewReport(std::move(value)); return *this;}
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
inline ListReviewPolicyResultsForHITResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
inline ListReviewPolicyResultsForHITResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
inline ListReviewPolicyResultsForHITResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::String m_hITId;
ReviewPolicy m_assignmentReviewPolicy;
ReviewPolicy m_hITReviewPolicy;
ReviewReport m_assignmentReviewReport;
ReviewReport m_hITReviewReport;
Aws::String m_nextToken;
};
} // namespace Model
} // namespace MTurk
} // namespace Aws

View File

@@ -0,0 +1,202 @@
/**
* 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 <aws/mturk-requester/model/ReviewableHITStatus.h>
#include <utility>
namespace Aws
{
namespace MTurk
{
namespace Model
{
/**
*/
class AWS_MTURK_API ListReviewableHITsRequest : public MTurkRequest
{
public:
ListReviewableHITsRequest();
// 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 "ListReviewableHITs"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p> The ID of the HIT type of the HITs to consider for the query. If not
* specified, all HITs for the Reviewer are considered </p>
*/
inline const Aws::String& GetHITTypeId() const{ return m_hITTypeId; }
/**
* <p> The ID of the HIT type of the HITs to consider for the query. If not
* specified, all HITs for the Reviewer are considered </p>
*/
inline bool HITTypeIdHasBeenSet() const { return m_hITTypeIdHasBeenSet; }
/**
* <p> The ID of the HIT type of the HITs to consider for the query. If not
* specified, all HITs for the Reviewer are considered </p>
*/
inline void SetHITTypeId(const Aws::String& value) { m_hITTypeIdHasBeenSet = true; m_hITTypeId = value; }
/**
* <p> The ID of the HIT type of the HITs to consider for the query. If not
* specified, all HITs for the Reviewer are considered </p>
*/
inline void SetHITTypeId(Aws::String&& value) { m_hITTypeIdHasBeenSet = true; m_hITTypeId = std::move(value); }
/**
* <p> The ID of the HIT type of the HITs to consider for the query. If not
* specified, all HITs for the Reviewer are considered </p>
*/
inline void SetHITTypeId(const char* value) { m_hITTypeIdHasBeenSet = true; m_hITTypeId.assign(value); }
/**
* <p> The ID of the HIT type of the HITs to consider for the query. If not
* specified, all HITs for the Reviewer are considered </p>
*/
inline ListReviewableHITsRequest& WithHITTypeId(const Aws::String& value) { SetHITTypeId(value); return *this;}
/**
* <p> The ID of the HIT type of the HITs to consider for the query. If not
* specified, all HITs for the Reviewer are considered </p>
*/
inline ListReviewableHITsRequest& WithHITTypeId(Aws::String&& value) { SetHITTypeId(std::move(value)); return *this;}
/**
* <p> The ID of the HIT type of the HITs to consider for the query. If not
* specified, all HITs for the Reviewer are considered </p>
*/
inline ListReviewableHITsRequest& WithHITTypeId(const char* value) { SetHITTypeId(value); return *this;}
/**
* <p> Can be either <code>Reviewable</code> or <code>Reviewing</code>. Reviewable
* is the default value. </p>
*/
inline const ReviewableHITStatus& GetStatus() const{ return m_status; }
/**
* <p> Can be either <code>Reviewable</code> or <code>Reviewing</code>. Reviewable
* is the default value. </p>
*/
inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
/**
* <p> Can be either <code>Reviewable</code> or <code>Reviewing</code>. Reviewable
* is the default value. </p>
*/
inline void SetStatus(const ReviewableHITStatus& value) { m_statusHasBeenSet = true; m_status = value; }
/**
* <p> Can be either <code>Reviewable</code> or <code>Reviewing</code>. Reviewable
* is the default value. </p>
*/
inline void SetStatus(ReviewableHITStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
/**
* <p> Can be either <code>Reviewable</code> or <code>Reviewing</code>. Reviewable
* is the default value. </p>
*/
inline ListReviewableHITsRequest& WithStatus(const ReviewableHITStatus& value) { SetStatus(value); return *this;}
/**
* <p> Can be either <code>Reviewable</code> or <code>Reviewing</code>. Reviewable
* is the default value. </p>
*/
inline ListReviewableHITsRequest& WithStatus(ReviewableHITStatus&& value) { SetStatus(std::move(value)); return *this;}
/**
* <p>Pagination Token</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>Pagination Token</p>
*/
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
/**
* <p>Pagination Token</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
/**
* <p>Pagination Token</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
/**
* <p>Pagination Token</p>
*/
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
/**
* <p>Pagination Token</p>
*/
inline ListReviewableHITsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>Pagination Token</p>
*/
inline ListReviewableHITsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>Pagination Token</p>
*/
inline ListReviewableHITsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
/**
* <p> Limit the number of results returned. </p>
*/
inline int GetMaxResults() const{ return m_maxResults; }
/**
* <p> Limit the number of results returned. </p>
*/
inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
/**
* <p> Limit the number of results returned. </p>
*/
inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
/**
* <p> Limit the number of results returned. </p>
*/
inline ListReviewableHITsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
private:
Aws::String m_hITTypeId;
bool m_hITTypeIdHasBeenSet;
ReviewableHITStatus m_status;
bool m_statusHasBeenSet;
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
int m_maxResults;
bool m_maxResultsHasBeenSet;
};
} // namespace Model
} // namespace MTurk
} // namespace Aws

View File

@@ -0,0 +1,124 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/mturk-requester/model/HIT.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace MTurk
{
namespace Model
{
class AWS_MTURK_API ListReviewableHITsResult
{
public:
ListReviewableHITsResult();
ListReviewableHITsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ListReviewableHITsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
inline ListReviewableHITsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
inline ListReviewableHITsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
inline ListReviewableHITsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
/**
* <p> The number of HITs on this page in the filtered results list, equivalent to
* the number of HITs being returned by this call. </p>
*/
inline int GetNumResults() const{ return m_numResults; }
/**
* <p> The number of HITs on this page in the filtered results list, equivalent to
* the number of HITs being returned by this call. </p>
*/
inline void SetNumResults(int value) { m_numResults = value; }
/**
* <p> The number of HITs on this page in the filtered results list, equivalent to
* the number of HITs being returned by this call. </p>
*/
inline ListReviewableHITsResult& WithNumResults(int value) { SetNumResults(value); return *this;}
/**
* <p> The list of HIT elements returned by the query.</p>
*/
inline const Aws::Vector<HIT>& GetHITs() const{ return m_hITs; }
/**
* <p> The list of HIT elements returned by the query.</p>
*/
inline void SetHITs(const Aws::Vector<HIT>& value) { m_hITs = value; }
/**
* <p> The list of HIT elements returned by the query.</p>
*/
inline void SetHITs(Aws::Vector<HIT>&& value) { m_hITs = std::move(value); }
/**
* <p> The list of HIT elements returned by the query.</p>
*/
inline ListReviewableHITsResult& WithHITs(const Aws::Vector<HIT>& value) { SetHITs(value); return *this;}
/**
* <p> The list of HIT elements returned by the query.</p>
*/
inline ListReviewableHITsResult& WithHITs(Aws::Vector<HIT>&& value) { SetHITs(std::move(value)); return *this;}
/**
* <p> The list of HIT elements returned by the query.</p>
*/
inline ListReviewableHITsResult& AddHITs(const HIT& value) { m_hITs.push_back(value); return *this; }
/**
* <p> The list of HIT elements returned by the query.</p>
*/
inline ListReviewableHITsResult& AddHITs(HIT&& value) { m_hITs.push_back(std::move(value)); return *this; }
private:
Aws::String m_nextToken;
int m_numResults;
Aws::Vector<HIT> m_hITs;
};
} // namespace Model
} // namespace MTurk
} // namespace Aws

View File

@@ -0,0 +1,101 @@
/**
* 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 ListWorkerBlocksRequest : public MTurkRequest
{
public:
ListWorkerBlocksRequest();
// 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 "ListWorkerBlocks"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>Pagination token</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>Pagination token</p>
*/
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
/**
* <p>Pagination token</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
/**
* <p>Pagination token</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
/**
* <p>Pagination token</p>
*/
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
/**
* <p>Pagination token</p>
*/
inline ListWorkerBlocksRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>Pagination token</p>
*/
inline ListWorkerBlocksRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>Pagination token</p>
*/
inline ListWorkerBlocksRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
inline int GetMaxResults() const{ return m_maxResults; }
inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
inline ListWorkerBlocksRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
private:
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
int m_maxResults;
bool m_maxResultsHasBeenSet;
};
} // namespace Model
} // namespace MTurk
} // namespace Aws

View File

@@ -0,0 +1,131 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/mturk-requester/model/WorkerBlock.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace MTurk
{
namespace Model
{
class AWS_MTURK_API ListWorkerBlocksResult
{
public:
ListWorkerBlocksResult();
ListWorkerBlocksResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ListWorkerBlocksResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
inline ListWorkerBlocksResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
inline ListWorkerBlocksResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
inline ListWorkerBlocksResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
/**
* <p> The number of assignments on the page in the filtered results list,
* equivalent to the number of assignments returned by this call.</p>
*/
inline int GetNumResults() const{ return m_numResults; }
/**
* <p> The number of assignments on the page in the filtered results list,
* equivalent to the number of assignments returned by this call.</p>
*/
inline void SetNumResults(int value) { m_numResults = value; }
/**
* <p> The number of assignments on the page in the filtered results list,
* equivalent to the number of assignments returned by this call.</p>
*/
inline ListWorkerBlocksResult& WithNumResults(int value) { SetNumResults(value); return *this;}
/**
* <p> The list of WorkerBlocks, containing the collection of Worker IDs and
* reasons for blocking.</p>
*/
inline const Aws::Vector<WorkerBlock>& GetWorkerBlocks() const{ return m_workerBlocks; }
/**
* <p> The list of WorkerBlocks, containing the collection of Worker IDs and
* reasons for blocking.</p>
*/
inline void SetWorkerBlocks(const Aws::Vector<WorkerBlock>& value) { m_workerBlocks = value; }
/**
* <p> The list of WorkerBlocks, containing the collection of Worker IDs and
* reasons for blocking.</p>
*/
inline void SetWorkerBlocks(Aws::Vector<WorkerBlock>&& value) { m_workerBlocks = std::move(value); }
/**
* <p> The list of WorkerBlocks, containing the collection of Worker IDs and
* reasons for blocking.</p>
*/
inline ListWorkerBlocksResult& WithWorkerBlocks(const Aws::Vector<WorkerBlock>& value) { SetWorkerBlocks(value); return *this;}
/**
* <p> The list of WorkerBlocks, containing the collection of Worker IDs and
* reasons for blocking.</p>
*/
inline ListWorkerBlocksResult& WithWorkerBlocks(Aws::Vector<WorkerBlock>&& value) { SetWorkerBlocks(std::move(value)); return *this;}
/**
* <p> The list of WorkerBlocks, containing the collection of Worker IDs and
* reasons for blocking.</p>
*/
inline ListWorkerBlocksResult& AddWorkerBlocks(const WorkerBlock& value) { m_workerBlocks.push_back(value); return *this; }
/**
* <p> The list of WorkerBlocks, containing the collection of Worker IDs and
* reasons for blocking.</p>
*/
inline ListWorkerBlocksResult& AddWorkerBlocks(WorkerBlock&& value) { m_workerBlocks.push_back(std::move(value)); return *this; }
private:
Aws::String m_nextToken;
int m_numResults;
Aws::Vector<WorkerBlock> m_workerBlocks;
};
} // namespace Model
} // namespace MTurk
} // namespace Aws

View File

@@ -0,0 +1,194 @@
/**
* 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 <aws/mturk-requester/model/QualificationStatus.h>
#include <utility>
namespace Aws
{
namespace MTurk
{
namespace Model
{
/**
*/
class AWS_MTURK_API ListWorkersWithQualificationTypeRequest : public MTurkRequest
{
public:
ListWorkersWithQualificationTypeRequest();
// 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 "ListWorkersWithQualificationType"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The ID of the Qualification type of the Qualifications to return.</p>
*/
inline const Aws::String& GetQualificationTypeId() const{ return m_qualificationTypeId; }
/**
* <p>The ID of the Qualification type of the Qualifications to return.</p>
*/
inline bool QualificationTypeIdHasBeenSet() const { return m_qualificationTypeIdHasBeenSet; }
/**
* <p>The ID of the Qualification type of the Qualifications to return.</p>
*/
inline void SetQualificationTypeId(const Aws::String& value) { m_qualificationTypeIdHasBeenSet = true; m_qualificationTypeId = value; }
/**
* <p>The ID of the Qualification type of the Qualifications to return.</p>
*/
inline void SetQualificationTypeId(Aws::String&& value) { m_qualificationTypeIdHasBeenSet = true; m_qualificationTypeId = std::move(value); }
/**
* <p>The ID of the Qualification type of the Qualifications to return.</p>
*/
inline void SetQualificationTypeId(const char* value) { m_qualificationTypeIdHasBeenSet = true; m_qualificationTypeId.assign(value); }
/**
* <p>The ID of the Qualification type of the Qualifications to return.</p>
*/
inline ListWorkersWithQualificationTypeRequest& WithQualificationTypeId(const Aws::String& value) { SetQualificationTypeId(value); return *this;}
/**
* <p>The ID of the Qualification type of the Qualifications to return.</p>
*/
inline ListWorkersWithQualificationTypeRequest& WithQualificationTypeId(Aws::String&& value) { SetQualificationTypeId(std::move(value)); return *this;}
/**
* <p>The ID of the Qualification type of the Qualifications to return.</p>
*/
inline ListWorkersWithQualificationTypeRequest& WithQualificationTypeId(const char* value) { SetQualificationTypeId(value); return *this;}
/**
* <p> The status of the Qualifications to return. Can be <code>Granted |
* Revoked</code>. </p>
*/
inline const QualificationStatus& GetStatus() const{ return m_status; }
/**
* <p> The status of the Qualifications to return. Can be <code>Granted |
* Revoked</code>. </p>
*/
inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
/**
* <p> The status of the Qualifications to return. Can be <code>Granted |
* Revoked</code>. </p>
*/
inline void SetStatus(const QualificationStatus& value) { m_statusHasBeenSet = true; m_status = value; }
/**
* <p> The status of the Qualifications to return. Can be <code>Granted |
* Revoked</code>. </p>
*/
inline void SetStatus(QualificationStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
/**
* <p> The status of the Qualifications to return. Can be <code>Granted |
* Revoked</code>. </p>
*/
inline ListWorkersWithQualificationTypeRequest& WithStatus(const QualificationStatus& value) { SetStatus(value); return *this;}
/**
* <p> The status of the Qualifications to return. Can be <code>Granted |
* Revoked</code>. </p>
*/
inline ListWorkersWithQualificationTypeRequest& WithStatus(QualificationStatus&& value) { SetStatus(std::move(value)); return *this;}
/**
* <p>Pagination Token</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>Pagination Token</p>
*/
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
/**
* <p>Pagination Token</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
/**
* <p>Pagination Token</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
/**
* <p>Pagination Token</p>
*/
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
/**
* <p>Pagination Token</p>
*/
inline ListWorkersWithQualificationTypeRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>Pagination Token</p>
*/
inline ListWorkersWithQualificationTypeRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>Pagination Token</p>
*/
inline ListWorkersWithQualificationTypeRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
/**
* <p> Limit the number of results returned. </p>
*/
inline int GetMaxResults() const{ return m_maxResults; }
/**
* <p> Limit the number of results returned. </p>
*/
inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
/**
* <p> Limit the number of results returned. </p>
*/
inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
/**
* <p> Limit the number of results returned. </p>
*/
inline ListWorkersWithQualificationTypeRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
private:
Aws::String m_qualificationTypeId;
bool m_qualificationTypeIdHasBeenSet;
QualificationStatus m_status;
bool m_statusHasBeenSet;
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
int m_maxResults;
bool m_maxResultsHasBeenSet;
};
} // namespace Model
} // namespace MTurk
} // namespace Aws

View File

@@ -0,0 +1,124 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/mturk-requester/model/Qualification.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace MTurk
{
namespace Model
{
class AWS_MTURK_API ListWorkersWithQualificationTypeResult
{
public:
ListWorkersWithQualificationTypeResult();
ListWorkersWithQualificationTypeResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ListWorkersWithQualificationTypeResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
inline ListWorkersWithQualificationTypeResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
inline ListWorkersWithQualificationTypeResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
inline ListWorkersWithQualificationTypeResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
/**
* <p> The number of Qualifications on this page in the filtered results list,
* equivalent to the number of Qualifications being returned by this call.</p>
*/
inline int GetNumResults() const{ return m_numResults; }
/**
* <p> The number of Qualifications on this page in the filtered results list,
* equivalent to the number of Qualifications being returned by this call.</p>
*/
inline void SetNumResults(int value) { m_numResults = value; }
/**
* <p> The number of Qualifications on this page in the filtered results list,
* equivalent to the number of Qualifications being returned by this call.</p>
*/
inline ListWorkersWithQualificationTypeResult& WithNumResults(int value) { SetNumResults(value); return *this;}
/**
* <p> The list of Qualification elements returned by this call. </p>
*/
inline const Aws::Vector<Qualification>& GetQualifications() const{ return m_qualifications; }
/**
* <p> The list of Qualification elements returned by this call. </p>
*/
inline void SetQualifications(const Aws::Vector<Qualification>& value) { m_qualifications = value; }
/**
* <p> The list of Qualification elements returned by this call. </p>
*/
inline void SetQualifications(Aws::Vector<Qualification>&& value) { m_qualifications = std::move(value); }
/**
* <p> The list of Qualification elements returned by this call. </p>
*/
inline ListWorkersWithQualificationTypeResult& WithQualifications(const Aws::Vector<Qualification>& value) { SetQualifications(value); return *this;}
/**
* <p> The list of Qualification elements returned by this call. </p>
*/
inline ListWorkersWithQualificationTypeResult& WithQualifications(Aws::Vector<Qualification>&& value) { SetQualifications(std::move(value)); return *this;}
/**
* <p> The list of Qualification elements returned by this call. </p>
*/
inline ListWorkersWithQualificationTypeResult& AddQualifications(const Qualification& value) { m_qualifications.push_back(value); return *this; }
/**
* <p> The list of Qualification elements returned by this call. </p>
*/
inline ListWorkersWithQualificationTypeResult& AddQualifications(Qualification&& value) { m_qualifications.push_back(std::move(value)); return *this; }
private:
Aws::String m_nextToken;
int m_numResults;
Aws::Vector<Qualification> m_qualifications;
};
} // namespace Model
} // namespace MTurk
} // namespace Aws

View File

@@ -0,0 +1,149 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace MTurk
{
namespace Model
{
/**
* <p>The Locale data structure represents a geographical region or
* location.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/Locale">AWS
* API Reference</a></p>
*/
class AWS_MTURK_API Locale
{
public:
Locale();
Locale(Aws::Utils::Json::JsonView jsonValue);
Locale& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p> The country of the locale. Must be a valid ISO 3166 country code. For
* example, the code US refers to the United States of America. </p>
*/
inline const Aws::String& GetCountry() const{ return m_country; }
/**
* <p> The country of the locale. Must be a valid ISO 3166 country code. For
* example, the code US refers to the United States of America. </p>
*/
inline bool CountryHasBeenSet() const { return m_countryHasBeenSet; }
/**
* <p> The country of the locale. Must be a valid ISO 3166 country code. For
* example, the code US refers to the United States of America. </p>
*/
inline void SetCountry(const Aws::String& value) { m_countryHasBeenSet = true; m_country = value; }
/**
* <p> The country of the locale. Must be a valid ISO 3166 country code. For
* example, the code US refers to the United States of America. </p>
*/
inline void SetCountry(Aws::String&& value) { m_countryHasBeenSet = true; m_country = std::move(value); }
/**
* <p> The country of the locale. Must be a valid ISO 3166 country code. For
* example, the code US refers to the United States of America. </p>
*/
inline void SetCountry(const char* value) { m_countryHasBeenSet = true; m_country.assign(value); }
/**
* <p> The country of the locale. Must be a valid ISO 3166 country code. For
* example, the code US refers to the United States of America. </p>
*/
inline Locale& WithCountry(const Aws::String& value) { SetCountry(value); return *this;}
/**
* <p> The country of the locale. Must be a valid ISO 3166 country code. For
* example, the code US refers to the United States of America. </p>
*/
inline Locale& WithCountry(Aws::String&& value) { SetCountry(std::move(value)); return *this;}
/**
* <p> The country of the locale. Must be a valid ISO 3166 country code. For
* example, the code US refers to the United States of America. </p>
*/
inline Locale& WithCountry(const char* value) { SetCountry(value); return *this;}
/**
* <p>The state or subdivision of the locale. A valid ISO 3166-2 subdivision code.
* For example, the code WA refers to the state of Washington.</p>
*/
inline const Aws::String& GetSubdivision() const{ return m_subdivision; }
/**
* <p>The state or subdivision of the locale. A valid ISO 3166-2 subdivision code.
* For example, the code WA refers to the state of Washington.</p>
*/
inline bool SubdivisionHasBeenSet() const { return m_subdivisionHasBeenSet; }
/**
* <p>The state or subdivision of the locale. A valid ISO 3166-2 subdivision code.
* For example, the code WA refers to the state of Washington.</p>
*/
inline void SetSubdivision(const Aws::String& value) { m_subdivisionHasBeenSet = true; m_subdivision = value; }
/**
* <p>The state or subdivision of the locale. A valid ISO 3166-2 subdivision code.
* For example, the code WA refers to the state of Washington.</p>
*/
inline void SetSubdivision(Aws::String&& value) { m_subdivisionHasBeenSet = true; m_subdivision = std::move(value); }
/**
* <p>The state or subdivision of the locale. A valid ISO 3166-2 subdivision code.
* For example, the code WA refers to the state of Washington.</p>
*/
inline void SetSubdivision(const char* value) { m_subdivisionHasBeenSet = true; m_subdivision.assign(value); }
/**
* <p>The state or subdivision of the locale. A valid ISO 3166-2 subdivision code.
* For example, the code WA refers to the state of Washington.</p>
*/
inline Locale& WithSubdivision(const Aws::String& value) { SetSubdivision(value); return *this;}
/**
* <p>The state or subdivision of the locale. A valid ISO 3166-2 subdivision code.
* For example, the code WA refers to the state of Washington.</p>
*/
inline Locale& WithSubdivision(Aws::String&& value) { SetSubdivision(std::move(value)); return *this;}
/**
* <p>The state or subdivision of the locale. A valid ISO 3166-2 subdivision code.
* For example, the code WA refers to the state of Washington.</p>
*/
inline Locale& WithSubdivision(const char* value) { SetSubdivision(value); return *this;}
private:
Aws::String m_country;
bool m_countryHasBeenSet;
Aws::String m_subdivision;
bool m_subdivisionHasBeenSet;
};
} // namespace Model
} // namespace MTurk
} // namespace Aws

View File

@@ -0,0 +1,284 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
#include <aws/mturk-requester/model/NotificationTransport.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/mturk-requester/model/EventType.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace MTurk
{
namespace Model
{
/**
* <p>The NotificationSpecification data structure describes a HIT event
* notification for a HIT type.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/NotificationSpecification">AWS
* API Reference</a></p>
*/
class AWS_MTURK_API NotificationSpecification
{
public:
NotificationSpecification();
NotificationSpecification(Aws::Utils::Json::JsonView jsonValue);
NotificationSpecification& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p> The target for notification messages. The Destinations format is determined
* by the specified Transport: </p> <ul> <li> <p>When Transport is Email, the
* Destination is your email address.</p> </li> <li> <p>When Transport is SQS, the
* Destination is your queue URL.</p> </li> <li> <p>When Transport is SNS, the
* Destination is the ARN of your topic.</p> </li> </ul>
*/
inline const Aws::String& GetDestination() const{ return m_destination; }
/**
* <p> The target for notification messages. The Destinations format is determined
* by the specified Transport: </p> <ul> <li> <p>When Transport is Email, the
* Destination is your email address.</p> </li> <li> <p>When Transport is SQS, the
* Destination is your queue URL.</p> </li> <li> <p>When Transport is SNS, the
* Destination is the ARN of your topic.</p> </li> </ul>
*/
inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
/**
* <p> The target for notification messages. The Destinations format is determined
* by the specified Transport: </p> <ul> <li> <p>When Transport is Email, the
* Destination is your email address.</p> </li> <li> <p>When Transport is SQS, the
* Destination is your queue URL.</p> </li> <li> <p>When Transport is SNS, the
* Destination is the ARN of your topic.</p> </li> </ul>
*/
inline void SetDestination(const Aws::String& value) { m_destinationHasBeenSet = true; m_destination = value; }
/**
* <p> The target for notification messages. The Destinations format is determined
* by the specified Transport: </p> <ul> <li> <p>When Transport is Email, the
* Destination is your email address.</p> </li> <li> <p>When Transport is SQS, the
* Destination is your queue URL.</p> </li> <li> <p>When Transport is SNS, the
* Destination is the ARN of your topic.</p> </li> </ul>
*/
inline void SetDestination(Aws::String&& value) { m_destinationHasBeenSet = true; m_destination = std::move(value); }
/**
* <p> The target for notification messages. The Destinations format is determined
* by the specified Transport: </p> <ul> <li> <p>When Transport is Email, the
* Destination is your email address.</p> </li> <li> <p>When Transport is SQS, the
* Destination is your queue URL.</p> </li> <li> <p>When Transport is SNS, the
* Destination is the ARN of your topic.</p> </li> </ul>
*/
inline void SetDestination(const char* value) { m_destinationHasBeenSet = true; m_destination.assign(value); }
/**
* <p> The target for notification messages. The Destinations format is determined
* by the specified Transport: </p> <ul> <li> <p>When Transport is Email, the
* Destination is your email address.</p> </li> <li> <p>When Transport is SQS, the
* Destination is your queue URL.</p> </li> <li> <p>When Transport is SNS, the
* Destination is the ARN of your topic.</p> </li> </ul>
*/
inline NotificationSpecification& WithDestination(const Aws::String& value) { SetDestination(value); return *this;}
/**
* <p> The target for notification messages. The Destinations format is determined
* by the specified Transport: </p> <ul> <li> <p>When Transport is Email, the
* Destination is your email address.</p> </li> <li> <p>When Transport is SQS, the
* Destination is your queue URL.</p> </li> <li> <p>When Transport is SNS, the
* Destination is the ARN of your topic.</p> </li> </ul>
*/
inline NotificationSpecification& WithDestination(Aws::String&& value) { SetDestination(std::move(value)); return *this;}
/**
* <p> The target for notification messages. The Destinations format is determined
* by the specified Transport: </p> <ul> <li> <p>When Transport is Email, the
* Destination is your email address.</p> </li> <li> <p>When Transport is SQS, the
* Destination is your queue URL.</p> </li> <li> <p>When Transport is SNS, the
* Destination is the ARN of your topic.</p> </li> </ul>
*/
inline NotificationSpecification& WithDestination(const char* value) { SetDestination(value); return *this;}
/**
* <p> The method Amazon Mechanical Turk uses to send the notification. Valid
* Values: Email | SQS | SNS. </p>
*/
inline const NotificationTransport& GetTransport() const{ return m_transport; }
/**
* <p> The method Amazon Mechanical Turk uses to send the notification. Valid
* Values: Email | SQS | SNS. </p>
*/
inline bool TransportHasBeenSet() const { return m_transportHasBeenSet; }
/**
* <p> The method Amazon Mechanical Turk uses to send the notification. Valid
* Values: Email | SQS | SNS. </p>
*/
inline void SetTransport(const NotificationTransport& value) { m_transportHasBeenSet = true; m_transport = value; }
/**
* <p> The method Amazon Mechanical Turk uses to send the notification. Valid
* Values: Email | SQS | SNS. </p>
*/
inline void SetTransport(NotificationTransport&& value) { m_transportHasBeenSet = true; m_transport = std::move(value); }
/**
* <p> The method Amazon Mechanical Turk uses to send the notification. Valid
* Values: Email | SQS | SNS. </p>
*/
inline NotificationSpecification& WithTransport(const NotificationTransport& value) { SetTransport(value); return *this;}
/**
* <p> The method Amazon Mechanical Turk uses to send the notification. Valid
* Values: Email | SQS | SNS. </p>
*/
inline NotificationSpecification& WithTransport(NotificationTransport&& value) { SetTransport(std::move(value)); return *this;}
/**
* <p>The version of the Notification API to use. Valid value is 2006-05-05.</p>
*/
inline const Aws::String& GetVersion() const{ return m_version; }
/**
* <p>The version of the Notification API to use. Valid value is 2006-05-05.</p>
*/
inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
/**
* <p>The version of the Notification API to use. Valid value is 2006-05-05.</p>
*/
inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; }
/**
* <p>The version of the Notification API to use. Valid value is 2006-05-05.</p>
*/
inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = std::move(value); }
/**
* <p>The version of the Notification API to use. Valid value is 2006-05-05.</p>
*/
inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); }
/**
* <p>The version of the Notification API to use. Valid value is 2006-05-05.</p>
*/
inline NotificationSpecification& WithVersion(const Aws::String& value) { SetVersion(value); return *this;}
/**
* <p>The version of the Notification API to use. Valid value is 2006-05-05.</p>
*/
inline NotificationSpecification& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;}
/**
* <p>The version of the Notification API to use. Valid value is 2006-05-05.</p>
*/
inline NotificationSpecification& WithVersion(const char* value) { SetVersion(value); return *this;}
/**
* <p> The list of events that should cause notifications to be sent. Valid Values:
* AssignmentAccepted | AssignmentAbandoned | AssignmentReturned |
* AssignmentSubmitted | AssignmentRejected | AssignmentApproved | HITCreated |
* HITExtended | HITDisposed | HITReviewable | HITExpired | Ping. The Ping event is
* only valid for the SendTestEventNotification operation. </p>
*/
inline const Aws::Vector<EventType>& GetEventTypes() const{ return m_eventTypes; }
/**
* <p> The list of events that should cause notifications to be sent. Valid Values:
* AssignmentAccepted | AssignmentAbandoned | AssignmentReturned |
* AssignmentSubmitted | AssignmentRejected | AssignmentApproved | HITCreated |
* HITExtended | HITDisposed | HITReviewable | HITExpired | Ping. The Ping event is
* only valid for the SendTestEventNotification operation. </p>
*/
inline bool EventTypesHasBeenSet() const { return m_eventTypesHasBeenSet; }
/**
* <p> The list of events that should cause notifications to be sent. Valid Values:
* AssignmentAccepted | AssignmentAbandoned | AssignmentReturned |
* AssignmentSubmitted | AssignmentRejected | AssignmentApproved | HITCreated |
* HITExtended | HITDisposed | HITReviewable | HITExpired | Ping. The Ping event is
* only valid for the SendTestEventNotification operation. </p>
*/
inline void SetEventTypes(const Aws::Vector<EventType>& value) { m_eventTypesHasBeenSet = true; m_eventTypes = value; }
/**
* <p> The list of events that should cause notifications to be sent. Valid Values:
* AssignmentAccepted | AssignmentAbandoned | AssignmentReturned |
* AssignmentSubmitted | AssignmentRejected | AssignmentApproved | HITCreated |
* HITExtended | HITDisposed | HITReviewable | HITExpired | Ping. The Ping event is
* only valid for the SendTestEventNotification operation. </p>
*/
inline void SetEventTypes(Aws::Vector<EventType>&& value) { m_eventTypesHasBeenSet = true; m_eventTypes = std::move(value); }
/**
* <p> The list of events that should cause notifications to be sent. Valid Values:
* AssignmentAccepted | AssignmentAbandoned | AssignmentReturned |
* AssignmentSubmitted | AssignmentRejected | AssignmentApproved | HITCreated |
* HITExtended | HITDisposed | HITReviewable | HITExpired | Ping. The Ping event is
* only valid for the SendTestEventNotification operation. </p>
*/
inline NotificationSpecification& WithEventTypes(const Aws::Vector<EventType>& value) { SetEventTypes(value); return *this;}
/**
* <p> The list of events that should cause notifications to be sent. Valid Values:
* AssignmentAccepted | AssignmentAbandoned | AssignmentReturned |
* AssignmentSubmitted | AssignmentRejected | AssignmentApproved | HITCreated |
* HITExtended | HITDisposed | HITReviewable | HITExpired | Ping. The Ping event is
* only valid for the SendTestEventNotification operation. </p>
*/
inline NotificationSpecification& WithEventTypes(Aws::Vector<EventType>&& value) { SetEventTypes(std::move(value)); return *this;}
/**
* <p> The list of events that should cause notifications to be sent. Valid Values:
* AssignmentAccepted | AssignmentAbandoned | AssignmentReturned |
* AssignmentSubmitted | AssignmentRejected | AssignmentApproved | HITCreated |
* HITExtended | HITDisposed | HITReviewable | HITExpired | Ping. The Ping event is
* only valid for the SendTestEventNotification operation. </p>
*/
inline NotificationSpecification& AddEventTypes(const EventType& value) { m_eventTypesHasBeenSet = true; m_eventTypes.push_back(value); return *this; }
/**
* <p> The list of events that should cause notifications to be sent. Valid Values:
* AssignmentAccepted | AssignmentAbandoned | AssignmentReturned |
* AssignmentSubmitted | AssignmentRejected | AssignmentApproved | HITCreated |
* HITExtended | HITDisposed | HITReviewable | HITExpired | Ping. The Ping event is
* only valid for the SendTestEventNotification operation. </p>
*/
inline NotificationSpecification& AddEventTypes(EventType&& value) { m_eventTypesHasBeenSet = true; m_eventTypes.push_back(std::move(value)); return *this; }
private:
Aws::String m_destination;
bool m_destinationHasBeenSet;
NotificationTransport m_transport;
bool m_transportHasBeenSet;
Aws::String m_version;
bool m_versionHasBeenSet;
Aws::Vector<EventType> m_eventTypes;
bool m_eventTypesHasBeenSet;
};
} // namespace Model
} // namespace MTurk
} // namespace Aws

View File

@@ -0,0 +1,32 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace MTurk
{
namespace Model
{
enum class NotificationTransport
{
NOT_SET,
Email,
SQS,
SNS
};
namespace NotificationTransportMapper
{
AWS_MTURK_API NotificationTransport GetNotificationTransportForName(const Aws::String& name);
AWS_MTURK_API Aws::String GetNameForNotificationTransport(NotificationTransport value);
} // namespace NotificationTransportMapper
} // namespace Model
} // namespace MTurk
} // namespace Aws

View File

@@ -0,0 +1,31 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace MTurk
{
namespace Model
{
enum class NotifyWorkersFailureCode
{
NOT_SET,
SoftFailure,
HardFailure
};
namespace NotifyWorkersFailureCodeMapper
{
AWS_MTURK_API NotifyWorkersFailureCode GetNotifyWorkersFailureCodeForName(const Aws::String& name);
AWS_MTURK_API Aws::String GetNameForNotifyWorkersFailureCode(NotifyWorkersFailureCode value);
} // namespace NotifyWorkersFailureCodeMapper
} // namespace Model
} // namespace MTurk
} // namespace Aws

View File

@@ -0,0 +1,168 @@
/**
* 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/model/NotifyWorkersFailureCode.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace MTurk
{
namespace Model
{
/**
* <p> When MTurk encounters an issue with notifying the Workers you specified, it
* returns back this object with failure details. </p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/NotifyWorkersFailureStatus">AWS
* API Reference</a></p>
*/
class AWS_MTURK_API NotifyWorkersFailureStatus
{
public:
NotifyWorkersFailureStatus();
NotifyWorkersFailureStatus(Aws::Utils::Json::JsonView jsonValue);
NotifyWorkersFailureStatus& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p> Encoded value for the failure type. </p>
*/
inline const NotifyWorkersFailureCode& GetNotifyWorkersFailureCode() const{ return m_notifyWorkersFailureCode; }
/**
* <p> Encoded value for the failure type. </p>
*/
inline bool NotifyWorkersFailureCodeHasBeenSet() const { return m_notifyWorkersFailureCodeHasBeenSet; }
/**
* <p> Encoded value for the failure type. </p>
*/
inline void SetNotifyWorkersFailureCode(const NotifyWorkersFailureCode& value) { m_notifyWorkersFailureCodeHasBeenSet = true; m_notifyWorkersFailureCode = value; }
/**
* <p> Encoded value for the failure type. </p>
*/
inline void SetNotifyWorkersFailureCode(NotifyWorkersFailureCode&& value) { m_notifyWorkersFailureCodeHasBeenSet = true; m_notifyWorkersFailureCode = std::move(value); }
/**
* <p> Encoded value for the failure type. </p>
*/
inline NotifyWorkersFailureStatus& WithNotifyWorkersFailureCode(const NotifyWorkersFailureCode& value) { SetNotifyWorkersFailureCode(value); return *this;}
/**
* <p> Encoded value for the failure type. </p>
*/
inline NotifyWorkersFailureStatus& WithNotifyWorkersFailureCode(NotifyWorkersFailureCode&& value) { SetNotifyWorkersFailureCode(std::move(value)); return *this;}
/**
* <p> A message detailing the reason the Worker could not be notified. </p>
*/
inline const Aws::String& GetNotifyWorkersFailureMessage() const{ return m_notifyWorkersFailureMessage; }
/**
* <p> A message detailing the reason the Worker could not be notified. </p>
*/
inline bool NotifyWorkersFailureMessageHasBeenSet() const { return m_notifyWorkersFailureMessageHasBeenSet; }
/**
* <p> A message detailing the reason the Worker could not be notified. </p>
*/
inline void SetNotifyWorkersFailureMessage(const Aws::String& value) { m_notifyWorkersFailureMessageHasBeenSet = true; m_notifyWorkersFailureMessage = value; }
/**
* <p> A message detailing the reason the Worker could not be notified. </p>
*/
inline void SetNotifyWorkersFailureMessage(Aws::String&& value) { m_notifyWorkersFailureMessageHasBeenSet = true; m_notifyWorkersFailureMessage = std::move(value); }
/**
* <p> A message detailing the reason the Worker could not be notified. </p>
*/
inline void SetNotifyWorkersFailureMessage(const char* value) { m_notifyWorkersFailureMessageHasBeenSet = true; m_notifyWorkersFailureMessage.assign(value); }
/**
* <p> A message detailing the reason the Worker could not be notified. </p>
*/
inline NotifyWorkersFailureStatus& WithNotifyWorkersFailureMessage(const Aws::String& value) { SetNotifyWorkersFailureMessage(value); return *this;}
/**
* <p> A message detailing the reason the Worker could not be notified. </p>
*/
inline NotifyWorkersFailureStatus& WithNotifyWorkersFailureMessage(Aws::String&& value) { SetNotifyWorkersFailureMessage(std::move(value)); return *this;}
/**
* <p> A message detailing the reason the Worker could not be notified. </p>
*/
inline NotifyWorkersFailureStatus& WithNotifyWorkersFailureMessage(const char* value) { SetNotifyWorkersFailureMessage(value); return *this;}
/**
* <p> The ID of the Worker.</p>
*/
inline const Aws::String& GetWorkerId() const{ return m_workerId; }
/**
* <p> The ID of the Worker.</p>
*/
inline bool WorkerIdHasBeenSet() const { return m_workerIdHasBeenSet; }
/**
* <p> The ID of the Worker.</p>
*/
inline void SetWorkerId(const Aws::String& value) { m_workerIdHasBeenSet = true; m_workerId = value; }
/**
* <p> The ID of the Worker.</p>
*/
inline void SetWorkerId(Aws::String&& value) { m_workerIdHasBeenSet = true; m_workerId = std::move(value); }
/**
* <p> The ID of the Worker.</p>
*/
inline void SetWorkerId(const char* value) { m_workerIdHasBeenSet = true; m_workerId.assign(value); }
/**
* <p> The ID of the Worker.</p>
*/
inline NotifyWorkersFailureStatus& WithWorkerId(const Aws::String& value) { SetWorkerId(value); return *this;}
/**
* <p> The ID of the Worker.</p>
*/
inline NotifyWorkersFailureStatus& WithWorkerId(Aws::String&& value) { SetWorkerId(std::move(value)); return *this;}
/**
* <p> The ID of the Worker.</p>
*/
inline NotifyWorkersFailureStatus& WithWorkerId(const char* value) { SetWorkerId(value); return *this;}
private:
NotifyWorkersFailureCode m_notifyWorkersFailureCode;
bool m_notifyWorkersFailureCodeHasBeenSet;
Aws::String m_notifyWorkersFailureMessage;
bool m_notifyWorkersFailureMessageHasBeenSet;
Aws::String m_workerId;
bool m_workerIdHasBeenSet;
};
} // namespace Model
} // namespace MTurk
} // namespace Aws

View File

@@ -0,0 +1,196 @@
/**
* 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 <aws/core/utils/memory/stl/AWSVector.h>
#include <utility>
namespace Aws
{
namespace MTurk
{
namespace Model
{
/**
*/
class AWS_MTURK_API NotifyWorkersRequest : public MTurkRequest
{
public:
NotifyWorkersRequest();
// 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 "NotifyWorkers"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The subject line of the email message to send. Can include up to 200
* characters.</p>
*/
inline const Aws::String& GetSubject() const{ return m_subject; }
/**
* <p>The subject line of the email message to send. Can include up to 200
* characters.</p>
*/
inline bool SubjectHasBeenSet() const { return m_subjectHasBeenSet; }
/**
* <p>The subject line of the email message to send. Can include up to 200
* characters.</p>
*/
inline void SetSubject(const Aws::String& value) { m_subjectHasBeenSet = true; m_subject = value; }
/**
* <p>The subject line of the email message to send. Can include up to 200
* characters.</p>
*/
inline void SetSubject(Aws::String&& value) { m_subjectHasBeenSet = true; m_subject = std::move(value); }
/**
* <p>The subject line of the email message to send. Can include up to 200
* characters.</p>
*/
inline void SetSubject(const char* value) { m_subjectHasBeenSet = true; m_subject.assign(value); }
/**
* <p>The subject line of the email message to send. Can include up to 200
* characters.</p>
*/
inline NotifyWorkersRequest& WithSubject(const Aws::String& value) { SetSubject(value); return *this;}
/**
* <p>The subject line of the email message to send. Can include up to 200
* characters.</p>
*/
inline NotifyWorkersRequest& WithSubject(Aws::String&& value) { SetSubject(std::move(value)); return *this;}
/**
* <p>The subject line of the email message to send. Can include up to 200
* characters.</p>
*/
inline NotifyWorkersRequest& WithSubject(const char* value) { SetSubject(value); return *this;}
/**
* <p>The text of the email message to send. Can include up to 4,096 characters</p>
*/
inline const Aws::String& GetMessageText() const{ return m_messageText; }
/**
* <p>The text of the email message to send. Can include up to 4,096 characters</p>
*/
inline bool MessageTextHasBeenSet() const { return m_messageTextHasBeenSet; }
/**
* <p>The text of the email message to send. Can include up to 4,096 characters</p>
*/
inline void SetMessageText(const Aws::String& value) { m_messageTextHasBeenSet = true; m_messageText = value; }
/**
* <p>The text of the email message to send. Can include up to 4,096 characters</p>
*/
inline void SetMessageText(Aws::String&& value) { m_messageTextHasBeenSet = true; m_messageText = std::move(value); }
/**
* <p>The text of the email message to send. Can include up to 4,096 characters</p>
*/
inline void SetMessageText(const char* value) { m_messageTextHasBeenSet = true; m_messageText.assign(value); }
/**
* <p>The text of the email message to send. Can include up to 4,096 characters</p>
*/
inline NotifyWorkersRequest& WithMessageText(const Aws::String& value) { SetMessageText(value); return *this;}
/**
* <p>The text of the email message to send. Can include up to 4,096 characters</p>
*/
inline NotifyWorkersRequest& WithMessageText(Aws::String&& value) { SetMessageText(std::move(value)); return *this;}
/**
* <p>The text of the email message to send. Can include up to 4,096 characters</p>
*/
inline NotifyWorkersRequest& WithMessageText(const char* value) { SetMessageText(value); return *this;}
/**
* <p>A list of Worker IDs you wish to notify. You can notify upto 100 Workers at a
* time.</p>
*/
inline const Aws::Vector<Aws::String>& GetWorkerIds() const{ return m_workerIds; }
/**
* <p>A list of Worker IDs you wish to notify. You can notify upto 100 Workers at a
* time.</p>
*/
inline bool WorkerIdsHasBeenSet() const { return m_workerIdsHasBeenSet; }
/**
* <p>A list of Worker IDs you wish to notify. You can notify upto 100 Workers at a
* time.</p>
*/
inline void SetWorkerIds(const Aws::Vector<Aws::String>& value) { m_workerIdsHasBeenSet = true; m_workerIds = value; }
/**
* <p>A list of Worker IDs you wish to notify. You can notify upto 100 Workers at a
* time.</p>
*/
inline void SetWorkerIds(Aws::Vector<Aws::String>&& value) { m_workerIdsHasBeenSet = true; m_workerIds = std::move(value); }
/**
* <p>A list of Worker IDs you wish to notify. You can notify upto 100 Workers at a
* time.</p>
*/
inline NotifyWorkersRequest& WithWorkerIds(const Aws::Vector<Aws::String>& value) { SetWorkerIds(value); return *this;}
/**
* <p>A list of Worker IDs you wish to notify. You can notify upto 100 Workers at a
* time.</p>
*/
inline NotifyWorkersRequest& WithWorkerIds(Aws::Vector<Aws::String>&& value) { SetWorkerIds(std::move(value)); return *this;}
/**
* <p>A list of Worker IDs you wish to notify. You can notify upto 100 Workers at a
* time.</p>
*/
inline NotifyWorkersRequest& AddWorkerIds(const Aws::String& value) { m_workerIdsHasBeenSet = true; m_workerIds.push_back(value); return *this; }
/**
* <p>A list of Worker IDs you wish to notify. You can notify upto 100 Workers at a
* time.</p>
*/
inline NotifyWorkersRequest& AddWorkerIds(Aws::String&& value) { m_workerIdsHasBeenSet = true; m_workerIds.push_back(std::move(value)); return *this; }
/**
* <p>A list of Worker IDs you wish to notify. You can notify upto 100 Workers at a
* time.</p>
*/
inline NotifyWorkersRequest& AddWorkerIds(const char* value) { m_workerIdsHasBeenSet = true; m_workerIds.push_back(value); return *this; }
private:
Aws::String m_subject;
bool m_subjectHasBeenSet;
Aws::String m_messageText;
bool m_messageTextHasBeenSet;
Aws::Vector<Aws::String> m_workerIds;
bool m_workerIdsHasBeenSet;
};
} // namespace Model
} // namespace MTurk
} // namespace Aws

View File

@@ -0,0 +1,85 @@
/**
* 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/core/utils/memory/stl/AWSVector.h>
#include <aws/mturk-requester/model/NotifyWorkersFailureStatus.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace MTurk
{
namespace Model
{
class AWS_MTURK_API NotifyWorkersResult
{
public:
NotifyWorkersResult();
NotifyWorkersResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
NotifyWorkersResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p> When MTurk sends notifications to the list of Workers, it returns back any
* failures it encounters in this list of NotifyWorkersFailureStatus objects. </p>
*/
inline const Aws::Vector<NotifyWorkersFailureStatus>& GetNotifyWorkersFailureStatuses() const{ return m_notifyWorkersFailureStatuses; }
/**
* <p> When MTurk sends notifications to the list of Workers, it returns back any
* failures it encounters in this list of NotifyWorkersFailureStatus objects. </p>
*/
inline void SetNotifyWorkersFailureStatuses(const Aws::Vector<NotifyWorkersFailureStatus>& value) { m_notifyWorkersFailureStatuses = value; }
/**
* <p> When MTurk sends notifications to the list of Workers, it returns back any
* failures it encounters in this list of NotifyWorkersFailureStatus objects. </p>
*/
inline void SetNotifyWorkersFailureStatuses(Aws::Vector<NotifyWorkersFailureStatus>&& value) { m_notifyWorkersFailureStatuses = std::move(value); }
/**
* <p> When MTurk sends notifications to the list of Workers, it returns back any
* failures it encounters in this list of NotifyWorkersFailureStatus objects. </p>
*/
inline NotifyWorkersResult& WithNotifyWorkersFailureStatuses(const Aws::Vector<NotifyWorkersFailureStatus>& value) { SetNotifyWorkersFailureStatuses(value); return *this;}
/**
* <p> When MTurk sends notifications to the list of Workers, it returns back any
* failures it encounters in this list of NotifyWorkersFailureStatus objects. </p>
*/
inline NotifyWorkersResult& WithNotifyWorkersFailureStatuses(Aws::Vector<NotifyWorkersFailureStatus>&& value) { SetNotifyWorkersFailureStatuses(std::move(value)); return *this;}
/**
* <p> When MTurk sends notifications to the list of Workers, it returns back any
* failures it encounters in this list of NotifyWorkersFailureStatus objects. </p>
*/
inline NotifyWorkersResult& AddNotifyWorkersFailureStatuses(const NotifyWorkersFailureStatus& value) { m_notifyWorkersFailureStatuses.push_back(value); return *this; }
/**
* <p> When MTurk sends notifications to the list of Workers, it returns back any
* failures it encounters in this list of NotifyWorkersFailureStatus objects. </p>
*/
inline NotifyWorkersResult& AddNotifyWorkersFailureStatuses(NotifyWorkersFailureStatus&& value) { m_notifyWorkersFailureStatuses.push_back(std::move(value)); return *this; }
private:
Aws::Vector<NotifyWorkersFailureStatus> m_notifyWorkersFailureStatuses;
};
} // namespace Model
} // namespace MTurk
} // namespace Aws

View File

@@ -0,0 +1,173 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace MTurk
{
namespace Model
{
/**
* <p> This data structure is the data type for the AnswerKey parameter of the
* ScoreMyKnownAnswers/2011-09-01 Review Policy. </p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ParameterMapEntry">AWS
* API Reference</a></p>
*/
class AWS_MTURK_API ParameterMapEntry
{
public:
ParameterMapEntry();
ParameterMapEntry(Aws::Utils::Json::JsonView jsonValue);
ParameterMapEntry& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p> The QuestionID from the HIT that is used to identify which question requires
* Mechanical Turk to score as part of the ScoreMyKnownAnswers/2011-09-01 Review
* Policy. </p>
*/
inline const Aws::String& GetKey() const{ return m_key; }
/**
* <p> The QuestionID from the HIT that is used to identify which question requires
* Mechanical Turk to score as part of the ScoreMyKnownAnswers/2011-09-01 Review
* Policy. </p>
*/
inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
/**
* <p> The QuestionID from the HIT that is used to identify which question requires
* Mechanical Turk to score as part of the ScoreMyKnownAnswers/2011-09-01 Review
* Policy. </p>
*/
inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
/**
* <p> The QuestionID from the HIT that is used to identify which question requires
* Mechanical Turk to score as part of the ScoreMyKnownAnswers/2011-09-01 Review
* Policy. </p>
*/
inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
/**
* <p> The QuestionID from the HIT that is used to identify which question requires
* Mechanical Turk to score as part of the ScoreMyKnownAnswers/2011-09-01 Review
* Policy. </p>
*/
inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
/**
* <p> The QuestionID from the HIT that is used to identify which question requires
* Mechanical Turk to score as part of the ScoreMyKnownAnswers/2011-09-01 Review
* Policy. </p>
*/
inline ParameterMapEntry& WithKey(const Aws::String& value) { SetKey(value); return *this;}
/**
* <p> The QuestionID from the HIT that is used to identify which question requires
* Mechanical Turk to score as part of the ScoreMyKnownAnswers/2011-09-01 Review
* Policy. </p>
*/
inline ParameterMapEntry& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
/**
* <p> The QuestionID from the HIT that is used to identify which question requires
* Mechanical Turk to score as part of the ScoreMyKnownAnswers/2011-09-01 Review
* Policy. </p>
*/
inline ParameterMapEntry& WithKey(const char* value) { SetKey(value); return *this;}
/**
* <p> The list of answers to the question specified in the MapEntry Key element.
* The Worker must match all values in order for the answer to be scored correctly.
* </p>
*/
inline const Aws::Vector<Aws::String>& GetValues() const{ return m_values; }
/**
* <p> The list of answers to the question specified in the MapEntry Key element.
* The Worker must match all values in order for the answer to be scored correctly.
* </p>
*/
inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
/**
* <p> The list of answers to the question specified in the MapEntry Key element.
* The Worker must match all values in order for the answer to be scored correctly.
* </p>
*/
inline void SetValues(const Aws::Vector<Aws::String>& value) { m_valuesHasBeenSet = true; m_values = value; }
/**
* <p> The list of answers to the question specified in the MapEntry Key element.
* The Worker must match all values in order for the answer to be scored correctly.
* </p>
*/
inline void SetValues(Aws::Vector<Aws::String>&& value) { m_valuesHasBeenSet = true; m_values = std::move(value); }
/**
* <p> The list of answers to the question specified in the MapEntry Key element.
* The Worker must match all values in order for the answer to be scored correctly.
* </p>
*/
inline ParameterMapEntry& WithValues(const Aws::Vector<Aws::String>& value) { SetValues(value); return *this;}
/**
* <p> The list of answers to the question specified in the MapEntry Key element.
* The Worker must match all values in order for the answer to be scored correctly.
* </p>
*/
inline ParameterMapEntry& WithValues(Aws::Vector<Aws::String>&& value) { SetValues(std::move(value)); return *this;}
/**
* <p> The list of answers to the question specified in the MapEntry Key element.
* The Worker must match all values in order for the answer to be scored correctly.
* </p>
*/
inline ParameterMapEntry& AddValues(const Aws::String& value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
/**
* <p> The list of answers to the question specified in the MapEntry Key element.
* The Worker must match all values in order for the answer to be scored correctly.
* </p>
*/
inline ParameterMapEntry& AddValues(Aws::String&& value) { m_valuesHasBeenSet = true; m_values.push_back(std::move(value)); return *this; }
/**
* <p> The list of answers to the question specified in the MapEntry Key element.
* The Worker must match all values in order for the answer to be scored correctly.
* </p>
*/
inline ParameterMapEntry& AddValues(const char* value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
private:
Aws::String m_key;
bool m_keyHasBeenSet;
Aws::Vector<Aws::String> m_values;
bool m_valuesHasBeenSet;
};
} // namespace Model
} // namespace MTurk
} // namespace Aws

View File

@@ -0,0 +1,183 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/mturk-requester/model/ParameterMapEntry.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace MTurk
{
namespace Model
{
/**
* <p> Name of the parameter from the Review policy. </p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/PolicyParameter">AWS
* API Reference</a></p>
*/
class AWS_MTURK_API PolicyParameter
{
public:
PolicyParameter();
PolicyParameter(Aws::Utils::Json::JsonView jsonValue);
PolicyParameter& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p> Name of the parameter from the list of Review Polices. </p>
*/
inline const Aws::String& GetKey() const{ return m_key; }
/**
* <p> Name of the parameter from the list of Review Polices. </p>
*/
inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
/**
* <p> Name of the parameter from the list of Review Polices. </p>
*/
inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
/**
* <p> Name of the parameter from the list of Review Polices. </p>
*/
inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
/**
* <p> Name of the parameter from the list of Review Polices. </p>
*/
inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
/**
* <p> Name of the parameter from the list of Review Polices. </p>
*/
inline PolicyParameter& WithKey(const Aws::String& value) { SetKey(value); return *this;}
/**
* <p> Name of the parameter from the list of Review Polices. </p>
*/
inline PolicyParameter& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
/**
* <p> Name of the parameter from the list of Review Polices. </p>
*/
inline PolicyParameter& WithKey(const char* value) { SetKey(value); return *this;}
/**
* <p> The list of values of the Parameter</p>
*/
inline const Aws::Vector<Aws::String>& GetValues() const{ return m_values; }
/**
* <p> The list of values of the Parameter</p>
*/
inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
/**
* <p> The list of values of the Parameter</p>
*/
inline void SetValues(const Aws::Vector<Aws::String>& value) { m_valuesHasBeenSet = true; m_values = value; }
/**
* <p> The list of values of the Parameter</p>
*/
inline void SetValues(Aws::Vector<Aws::String>&& value) { m_valuesHasBeenSet = true; m_values = std::move(value); }
/**
* <p> The list of values of the Parameter</p>
*/
inline PolicyParameter& WithValues(const Aws::Vector<Aws::String>& value) { SetValues(value); return *this;}
/**
* <p> The list of values of the Parameter</p>
*/
inline PolicyParameter& WithValues(Aws::Vector<Aws::String>&& value) { SetValues(std::move(value)); return *this;}
/**
* <p> The list of values of the Parameter</p>
*/
inline PolicyParameter& AddValues(const Aws::String& value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
/**
* <p> The list of values of the Parameter</p>
*/
inline PolicyParameter& AddValues(Aws::String&& value) { m_valuesHasBeenSet = true; m_values.push_back(std::move(value)); return *this; }
/**
* <p> The list of values of the Parameter</p>
*/
inline PolicyParameter& AddValues(const char* value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
/**
* <p> List of ParameterMapEntry objects. </p>
*/
inline const Aws::Vector<ParameterMapEntry>& GetMapEntries() const{ return m_mapEntries; }
/**
* <p> List of ParameterMapEntry objects. </p>
*/
inline bool MapEntriesHasBeenSet() const { return m_mapEntriesHasBeenSet; }
/**
* <p> List of ParameterMapEntry objects. </p>
*/
inline void SetMapEntries(const Aws::Vector<ParameterMapEntry>& value) { m_mapEntriesHasBeenSet = true; m_mapEntries = value; }
/**
* <p> List of ParameterMapEntry objects. </p>
*/
inline void SetMapEntries(Aws::Vector<ParameterMapEntry>&& value) { m_mapEntriesHasBeenSet = true; m_mapEntries = std::move(value); }
/**
* <p> List of ParameterMapEntry objects. </p>
*/
inline PolicyParameter& WithMapEntries(const Aws::Vector<ParameterMapEntry>& value) { SetMapEntries(value); return *this;}
/**
* <p> List of ParameterMapEntry objects. </p>
*/
inline PolicyParameter& WithMapEntries(Aws::Vector<ParameterMapEntry>&& value) { SetMapEntries(std::move(value)); return *this;}
/**
* <p> List of ParameterMapEntry objects. </p>
*/
inline PolicyParameter& AddMapEntries(const ParameterMapEntry& value) { m_mapEntriesHasBeenSet = true; m_mapEntries.push_back(value); return *this; }
/**
* <p> List of ParameterMapEntry objects. </p>
*/
inline PolicyParameter& AddMapEntries(ParameterMapEntry&& value) { m_mapEntriesHasBeenSet = true; m_mapEntries.push_back(std::move(value)); return *this; }
private:
Aws::String m_key;
bool m_keyHasBeenSet;
Aws::Vector<Aws::String> m_values;
bool m_valuesHasBeenSet;
Aws::Vector<ParameterMapEntry> m_mapEntries;
bool m_mapEntriesHasBeenSet;
};
} // namespace Model
} // namespace MTurk
} // namespace Aws

View File

@@ -0,0 +1,273 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/DateTime.h>
#include <aws/mturk-requester/model/Locale.h>
#include <aws/mturk-requester/model/QualificationStatus.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace MTurk
{
namespace Model
{
/**
* <p>The Qualification data structure represents a Qualification assigned to a
* user, including the Qualification type and the value (score).</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/Qualification">AWS
* API Reference</a></p>
*/
class AWS_MTURK_API Qualification
{
public:
Qualification();
Qualification(Aws::Utils::Json::JsonView jsonValue);
Qualification& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p> The ID of the Qualification type for the Qualification.</p>
*/
inline const Aws::String& GetQualificationTypeId() const{ return m_qualificationTypeId; }
/**
* <p> The ID of the Qualification type for the Qualification.</p>
*/
inline bool QualificationTypeIdHasBeenSet() const { return m_qualificationTypeIdHasBeenSet; }
/**
* <p> The ID of the Qualification type for the Qualification.</p>
*/
inline void SetQualificationTypeId(const Aws::String& value) { m_qualificationTypeIdHasBeenSet = true; m_qualificationTypeId = value; }
/**
* <p> The ID of the Qualification type for the Qualification.</p>
*/
inline void SetQualificationTypeId(Aws::String&& value) { m_qualificationTypeIdHasBeenSet = true; m_qualificationTypeId = std::move(value); }
/**
* <p> The ID of the Qualification type for the Qualification.</p>
*/
inline void SetQualificationTypeId(const char* value) { m_qualificationTypeIdHasBeenSet = true; m_qualificationTypeId.assign(value); }
/**
* <p> The ID of the Qualification type for the Qualification.</p>
*/
inline Qualification& WithQualificationTypeId(const Aws::String& value) { SetQualificationTypeId(value); return *this;}
/**
* <p> The ID of the Qualification type for the Qualification.</p>
*/
inline Qualification& WithQualificationTypeId(Aws::String&& value) { SetQualificationTypeId(std::move(value)); return *this;}
/**
* <p> The ID of the Qualification type for the Qualification.</p>
*/
inline Qualification& WithQualificationTypeId(const char* value) { SetQualificationTypeId(value); return *this;}
/**
* <p> The ID of the Worker who possesses the Qualification. </p>
*/
inline const Aws::String& GetWorkerId() const{ return m_workerId; }
/**
* <p> The ID of the Worker who possesses the Qualification. </p>
*/
inline bool WorkerIdHasBeenSet() const { return m_workerIdHasBeenSet; }
/**
* <p> The ID of the Worker who possesses the Qualification. </p>
*/
inline void SetWorkerId(const Aws::String& value) { m_workerIdHasBeenSet = true; m_workerId = value; }
/**
* <p> The ID of the Worker who possesses the Qualification. </p>
*/
inline void SetWorkerId(Aws::String&& value) { m_workerIdHasBeenSet = true; m_workerId = std::move(value); }
/**
* <p> The ID of the Worker who possesses the Qualification. </p>
*/
inline void SetWorkerId(const char* value) { m_workerIdHasBeenSet = true; m_workerId.assign(value); }
/**
* <p> The ID of the Worker who possesses the Qualification. </p>
*/
inline Qualification& WithWorkerId(const Aws::String& value) { SetWorkerId(value); return *this;}
/**
* <p> The ID of the Worker who possesses the Qualification. </p>
*/
inline Qualification& WithWorkerId(Aws::String&& value) { SetWorkerId(std::move(value)); return *this;}
/**
* <p> The ID of the Worker who possesses the Qualification. </p>
*/
inline Qualification& WithWorkerId(const char* value) { SetWorkerId(value); return *this;}
/**
* <p> The date and time the Qualification was granted to the Worker. If the
* Worker's Qualification was revoked, and then re-granted based on a new
* Qualification request, GrantTime is the date and time of the last call to the
* AcceptQualificationRequest operation.</p>
*/
inline const Aws::Utils::DateTime& GetGrantTime() const{ return m_grantTime; }
/**
* <p> The date and time the Qualification was granted to the Worker. If the
* Worker's Qualification was revoked, and then re-granted based on a new
* Qualification request, GrantTime is the date and time of the last call to the
* AcceptQualificationRequest operation.</p>
*/
inline bool GrantTimeHasBeenSet() const { return m_grantTimeHasBeenSet; }
/**
* <p> The date and time the Qualification was granted to the Worker. If the
* Worker's Qualification was revoked, and then re-granted based on a new
* Qualification request, GrantTime is the date and time of the last call to the
* AcceptQualificationRequest operation.</p>
*/
inline void SetGrantTime(const Aws::Utils::DateTime& value) { m_grantTimeHasBeenSet = true; m_grantTime = value; }
/**
* <p> The date and time the Qualification was granted to the Worker. If the
* Worker's Qualification was revoked, and then re-granted based on a new
* Qualification request, GrantTime is the date and time of the last call to the
* AcceptQualificationRequest operation.</p>
*/
inline void SetGrantTime(Aws::Utils::DateTime&& value) { m_grantTimeHasBeenSet = true; m_grantTime = std::move(value); }
/**
* <p> The date and time the Qualification was granted to the Worker. If the
* Worker's Qualification was revoked, and then re-granted based on a new
* Qualification request, GrantTime is the date and time of the last call to the
* AcceptQualificationRequest operation.</p>
*/
inline Qualification& WithGrantTime(const Aws::Utils::DateTime& value) { SetGrantTime(value); return *this;}
/**
* <p> The date and time the Qualification was granted to the Worker. If the
* Worker's Qualification was revoked, and then re-granted based on a new
* Qualification request, GrantTime is the date and time of the last call to the
* AcceptQualificationRequest operation.</p>
*/
inline Qualification& WithGrantTime(Aws::Utils::DateTime&& value) { SetGrantTime(std::move(value)); return *this;}
/**
* <p> The value (score) of the Qualification, if the Qualification has an integer
* value.</p>
*/
inline int GetIntegerValue() const{ return m_integerValue; }
/**
* <p> The value (score) of the Qualification, if the Qualification has an integer
* value.</p>
*/
inline bool IntegerValueHasBeenSet() const { return m_integerValueHasBeenSet; }
/**
* <p> The value (score) of the Qualification, if the Qualification has an integer
* value.</p>
*/
inline void SetIntegerValue(int value) { m_integerValueHasBeenSet = true; m_integerValue = value; }
/**
* <p> The value (score) of the Qualification, if the Qualification has an integer
* value.</p>
*/
inline Qualification& WithIntegerValue(int value) { SetIntegerValue(value); return *this;}
inline const Locale& GetLocaleValue() const{ return m_localeValue; }
inline bool LocaleValueHasBeenSet() const { return m_localeValueHasBeenSet; }
inline void SetLocaleValue(const Locale& value) { m_localeValueHasBeenSet = true; m_localeValue = value; }
inline void SetLocaleValue(Locale&& value) { m_localeValueHasBeenSet = true; m_localeValue = std::move(value); }
inline Qualification& WithLocaleValue(const Locale& value) { SetLocaleValue(value); return *this;}
inline Qualification& WithLocaleValue(Locale&& value) { SetLocaleValue(std::move(value)); return *this;}
/**
* <p> The status of the Qualification. Valid values are Granted | Revoked.</p>
*/
inline const QualificationStatus& GetStatus() const{ return m_status; }
/**
* <p> The status of the Qualification. Valid values are Granted | Revoked.</p>
*/
inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
/**
* <p> The status of the Qualification. Valid values are Granted | Revoked.</p>
*/
inline void SetStatus(const QualificationStatus& value) { m_statusHasBeenSet = true; m_status = value; }
/**
* <p> The status of the Qualification. Valid values are Granted | Revoked.</p>
*/
inline void SetStatus(QualificationStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
/**
* <p> The status of the Qualification. Valid values are Granted | Revoked.</p>
*/
inline Qualification& WithStatus(const QualificationStatus& value) { SetStatus(value); return *this;}
/**
* <p> The status of the Qualification. Valid values are Granted | Revoked.</p>
*/
inline Qualification& WithStatus(QualificationStatus&& value) { SetStatus(std::move(value)); return *this;}
private:
Aws::String m_qualificationTypeId;
bool m_qualificationTypeIdHasBeenSet;
Aws::String m_workerId;
bool m_workerIdHasBeenSet;
Aws::Utils::DateTime m_grantTime;
bool m_grantTimeHasBeenSet;
int m_integerValue;
bool m_integerValueHasBeenSet;
Locale m_localeValue;
bool m_localeValueHasBeenSet;
QualificationStatus m_status;
bool m_statusHasBeenSet;
};
} // namespace Model
} // namespace MTurk
} // namespace Aws

View File

@@ -0,0 +1,382 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/DateTime.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace MTurk
{
namespace Model
{
/**
* <p> The QualificationRequest data structure represents a request a Worker has
* made for a Qualification. </p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/QualificationRequest">AWS
* API Reference</a></p>
*/
class AWS_MTURK_API QualificationRequest
{
public:
QualificationRequest();
QualificationRequest(Aws::Utils::Json::JsonView jsonValue);
QualificationRequest& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The ID of the Qualification request, a unique identifier generated when the
* request was submitted. </p>
*/
inline const Aws::String& GetQualificationRequestId() const{ return m_qualificationRequestId; }
/**
* <p>The ID of the Qualification request, a unique identifier generated when the
* request was submitted. </p>
*/
inline bool QualificationRequestIdHasBeenSet() const { return m_qualificationRequestIdHasBeenSet; }
/**
* <p>The ID of the Qualification request, a unique identifier generated when the
* request was submitted. </p>
*/
inline void SetQualificationRequestId(const Aws::String& value) { m_qualificationRequestIdHasBeenSet = true; m_qualificationRequestId = value; }
/**
* <p>The ID of the Qualification request, a unique identifier generated when the
* request was submitted. </p>
*/
inline void SetQualificationRequestId(Aws::String&& value) { m_qualificationRequestIdHasBeenSet = true; m_qualificationRequestId = std::move(value); }
/**
* <p>The ID of the Qualification request, a unique identifier generated when the
* request was submitted. </p>
*/
inline void SetQualificationRequestId(const char* value) { m_qualificationRequestIdHasBeenSet = true; m_qualificationRequestId.assign(value); }
/**
* <p>The ID of the Qualification request, a unique identifier generated when the
* request was submitted. </p>
*/
inline QualificationRequest& WithQualificationRequestId(const Aws::String& value) { SetQualificationRequestId(value); return *this;}
/**
* <p>The ID of the Qualification request, a unique identifier generated when the
* request was submitted. </p>
*/
inline QualificationRequest& WithQualificationRequestId(Aws::String&& value) { SetQualificationRequestId(std::move(value)); return *this;}
/**
* <p>The ID of the Qualification request, a unique identifier generated when the
* request was submitted. </p>
*/
inline QualificationRequest& WithQualificationRequestId(const char* value) { SetQualificationRequestId(value); return *this;}
/**
* <p> The ID of the Qualification type the Worker is requesting, as returned by
* the CreateQualificationType operation. </p>
*/
inline const Aws::String& GetQualificationTypeId() const{ return m_qualificationTypeId; }
/**
* <p> The ID of the Qualification type the Worker is requesting, as returned by
* the CreateQualificationType operation. </p>
*/
inline bool QualificationTypeIdHasBeenSet() const { return m_qualificationTypeIdHasBeenSet; }
/**
* <p> The ID of the Qualification type the Worker is requesting, as returned by
* the CreateQualificationType operation. </p>
*/
inline void SetQualificationTypeId(const Aws::String& value) { m_qualificationTypeIdHasBeenSet = true; m_qualificationTypeId = value; }
/**
* <p> The ID of the Qualification type the Worker is requesting, as returned by
* the CreateQualificationType operation. </p>
*/
inline void SetQualificationTypeId(Aws::String&& value) { m_qualificationTypeIdHasBeenSet = true; m_qualificationTypeId = std::move(value); }
/**
* <p> The ID of the Qualification type the Worker is requesting, as returned by
* the CreateQualificationType operation. </p>
*/
inline void SetQualificationTypeId(const char* value) { m_qualificationTypeIdHasBeenSet = true; m_qualificationTypeId.assign(value); }
/**
* <p> The ID of the Qualification type the Worker is requesting, as returned by
* the CreateQualificationType operation. </p>
*/
inline QualificationRequest& WithQualificationTypeId(const Aws::String& value) { SetQualificationTypeId(value); return *this;}
/**
* <p> The ID of the Qualification type the Worker is requesting, as returned by
* the CreateQualificationType operation. </p>
*/
inline QualificationRequest& WithQualificationTypeId(Aws::String&& value) { SetQualificationTypeId(std::move(value)); return *this;}
/**
* <p> The ID of the Qualification type the Worker is requesting, as returned by
* the CreateQualificationType operation. </p>
*/
inline QualificationRequest& WithQualificationTypeId(const char* value) { SetQualificationTypeId(value); return *this;}
/**
* <p> The ID of the Worker requesting the Qualification.</p>
*/
inline const Aws::String& GetWorkerId() const{ return m_workerId; }
/**
* <p> The ID of the Worker requesting the Qualification.</p>
*/
inline bool WorkerIdHasBeenSet() const { return m_workerIdHasBeenSet; }
/**
* <p> The ID of the Worker requesting the Qualification.</p>
*/
inline void SetWorkerId(const Aws::String& value) { m_workerIdHasBeenSet = true; m_workerId = value; }
/**
* <p> The ID of the Worker requesting the Qualification.</p>
*/
inline void SetWorkerId(Aws::String&& value) { m_workerIdHasBeenSet = true; m_workerId = std::move(value); }
/**
* <p> The ID of the Worker requesting the Qualification.</p>
*/
inline void SetWorkerId(const char* value) { m_workerIdHasBeenSet = true; m_workerId.assign(value); }
/**
* <p> The ID of the Worker requesting the Qualification.</p>
*/
inline QualificationRequest& WithWorkerId(const Aws::String& value) { SetWorkerId(value); return *this;}
/**
* <p> The ID of the Worker requesting the Qualification.</p>
*/
inline QualificationRequest& WithWorkerId(Aws::String&& value) { SetWorkerId(std::move(value)); return *this;}
/**
* <p> The ID of the Worker requesting the Qualification.</p>
*/
inline QualificationRequest& WithWorkerId(const char* value) { SetWorkerId(value); return *this;}
/**
* <p> The contents of the Qualification test that was presented to the Worker, if
* the type has a test and the Worker has submitted answers. This value is
* identical to the QuestionForm associated with the Qualification type at the time
* the Worker requests the Qualification.</p>
*/
inline const Aws::String& GetTest() const{ return m_test; }
/**
* <p> The contents of the Qualification test that was presented to the Worker, if
* the type has a test and the Worker has submitted answers. This value is
* identical to the QuestionForm associated with the Qualification type at the time
* the Worker requests the Qualification.</p>
*/
inline bool TestHasBeenSet() const { return m_testHasBeenSet; }
/**
* <p> The contents of the Qualification test that was presented to the Worker, if
* the type has a test and the Worker has submitted answers. This value is
* identical to the QuestionForm associated with the Qualification type at the time
* the Worker requests the Qualification.</p>
*/
inline void SetTest(const Aws::String& value) { m_testHasBeenSet = true; m_test = value; }
/**
* <p> The contents of the Qualification test that was presented to the Worker, if
* the type has a test and the Worker has submitted answers. This value is
* identical to the QuestionForm associated with the Qualification type at the time
* the Worker requests the Qualification.</p>
*/
inline void SetTest(Aws::String&& value) { m_testHasBeenSet = true; m_test = std::move(value); }
/**
* <p> The contents of the Qualification test that was presented to the Worker, if
* the type has a test and the Worker has submitted answers. This value is
* identical to the QuestionForm associated with the Qualification type at the time
* the Worker requests the Qualification.</p>
*/
inline void SetTest(const char* value) { m_testHasBeenSet = true; m_test.assign(value); }
/**
* <p> The contents of the Qualification test that was presented to the Worker, if
* the type has a test and the Worker has submitted answers. This value is
* identical to the QuestionForm associated with the Qualification type at the time
* the Worker requests the Qualification.</p>
*/
inline QualificationRequest& WithTest(const Aws::String& value) { SetTest(value); return *this;}
/**
* <p> The contents of the Qualification test that was presented to the Worker, if
* the type has a test and the Worker has submitted answers. This value is
* identical to the QuestionForm associated with the Qualification type at the time
* the Worker requests the Qualification.</p>
*/
inline QualificationRequest& WithTest(Aws::String&& value) { SetTest(std::move(value)); return *this;}
/**
* <p> The contents of the Qualification test that was presented to the Worker, if
* the type has a test and the Worker has submitted answers. This value is
* identical to the QuestionForm associated with the Qualification type at the time
* the Worker requests the Qualification.</p>
*/
inline QualificationRequest& WithTest(const char* value) { SetTest(value); return *this;}
/**
* <p> The Worker's answers for the Qualification type's test contained in a
* QuestionFormAnswers document, if the type has a test and the Worker has
* submitted answers. If the Worker does not provide any answers, Answer may be
* empty. </p>
*/
inline const Aws::String& GetAnswer() const{ return m_answer; }
/**
* <p> The Worker's answers for the Qualification type's test contained in a
* QuestionFormAnswers document, if the type has a test and the Worker has
* submitted answers. If the Worker does not provide any answers, Answer may be
* empty. </p>
*/
inline bool AnswerHasBeenSet() const { return m_answerHasBeenSet; }
/**
* <p> The Worker's answers for the Qualification type's test contained in a
* QuestionFormAnswers document, if the type has a test and the Worker has
* submitted answers. If the Worker does not provide any answers, Answer may be
* empty. </p>
*/
inline void SetAnswer(const Aws::String& value) { m_answerHasBeenSet = true; m_answer = value; }
/**
* <p> The Worker's answers for the Qualification type's test contained in a
* QuestionFormAnswers document, if the type has a test and the Worker has
* submitted answers. If the Worker does not provide any answers, Answer may be
* empty. </p>
*/
inline void SetAnswer(Aws::String&& value) { m_answerHasBeenSet = true; m_answer = std::move(value); }
/**
* <p> The Worker's answers for the Qualification type's test contained in a
* QuestionFormAnswers document, if the type has a test and the Worker has
* submitted answers. If the Worker does not provide any answers, Answer may be
* empty. </p>
*/
inline void SetAnswer(const char* value) { m_answerHasBeenSet = true; m_answer.assign(value); }
/**
* <p> The Worker's answers for the Qualification type's test contained in a
* QuestionFormAnswers document, if the type has a test and the Worker has
* submitted answers. If the Worker does not provide any answers, Answer may be
* empty. </p>
*/
inline QualificationRequest& WithAnswer(const Aws::String& value) { SetAnswer(value); return *this;}
/**
* <p> The Worker's answers for the Qualification type's test contained in a
* QuestionFormAnswers document, if the type has a test and the Worker has
* submitted answers. If the Worker does not provide any answers, Answer may be
* empty. </p>
*/
inline QualificationRequest& WithAnswer(Aws::String&& value) { SetAnswer(std::move(value)); return *this;}
/**
* <p> The Worker's answers for the Qualification type's test contained in a
* QuestionFormAnswers document, if the type has a test and the Worker has
* submitted answers. If the Worker does not provide any answers, Answer may be
* empty. </p>
*/
inline QualificationRequest& WithAnswer(const char* value) { SetAnswer(value); return *this;}
/**
* <p>The date and time the Qualification request had a status of Submitted. This
* is either the time the Worker submitted answers for a Qualification test, or the
* time the Worker requested the Qualification if the Qualification type does not
* have a test. </p>
*/
inline const Aws::Utils::DateTime& GetSubmitTime() const{ return m_submitTime; }
/**
* <p>The date and time the Qualification request had a status of Submitted. This
* is either the time the Worker submitted answers for a Qualification test, or the
* time the Worker requested the Qualification if the Qualification type does not
* have a test. </p>
*/
inline bool SubmitTimeHasBeenSet() const { return m_submitTimeHasBeenSet; }
/**
* <p>The date and time the Qualification request had a status of Submitted. This
* is either the time the Worker submitted answers for a Qualification test, or the
* time the Worker requested the Qualification if the Qualification type does not
* have a test. </p>
*/
inline void SetSubmitTime(const Aws::Utils::DateTime& value) { m_submitTimeHasBeenSet = true; m_submitTime = value; }
/**
* <p>The date and time the Qualification request had a status of Submitted. This
* is either the time the Worker submitted answers for a Qualification test, or the
* time the Worker requested the Qualification if the Qualification type does not
* have a test. </p>
*/
inline void SetSubmitTime(Aws::Utils::DateTime&& value) { m_submitTimeHasBeenSet = true; m_submitTime = std::move(value); }
/**
* <p>The date and time the Qualification request had a status of Submitted. This
* is either the time the Worker submitted answers for a Qualification test, or the
* time the Worker requested the Qualification if the Qualification type does not
* have a test. </p>
*/
inline QualificationRequest& WithSubmitTime(const Aws::Utils::DateTime& value) { SetSubmitTime(value); return *this;}
/**
* <p>The date and time the Qualification request had a status of Submitted. This
* is either the time the Worker submitted answers for a Qualification test, or the
* time the Worker requested the Qualification if the Qualification type does not
* have a test. </p>
*/
inline QualificationRequest& WithSubmitTime(Aws::Utils::DateTime&& value) { SetSubmitTime(std::move(value)); return *this;}
private:
Aws::String m_qualificationRequestId;
bool m_qualificationRequestIdHasBeenSet;
Aws::String m_qualificationTypeId;
bool m_qualificationTypeIdHasBeenSet;
Aws::String m_workerId;
bool m_workerIdHasBeenSet;
Aws::String m_test;
bool m_testHasBeenSet;
Aws::String m_answer;
bool m_answerHasBeenSet;
Aws::Utils::DateTime m_submitTime;
bool m_submitTimeHasBeenSet;
};
} // namespace Model
} // namespace MTurk
} // namespace Aws

View File

@@ -0,0 +1,475 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
#include <aws/mturk-requester/model/Comparator.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/mturk-requester/model/HITAccessActions.h>
#include <aws/mturk-requester/model/Locale.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace MTurk
{
namespace Model
{
/**
* <p> The QualificationRequirement data structure describes a Qualification that a
* Worker must have before the Worker is allowed to accept a HIT. A requirement may
* optionally state that a Worker must have the Qualification in order to preview
* the HIT, or see the HIT in search results. </p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/QualificationRequirement">AWS
* API Reference</a></p>
*/
class AWS_MTURK_API QualificationRequirement
{
public:
QualificationRequirement();
QualificationRequirement(Aws::Utils::Json::JsonView jsonValue);
QualificationRequirement& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p> The ID of the Qualification type for the requirement.</p>
*/
inline const Aws::String& GetQualificationTypeId() const{ return m_qualificationTypeId; }
/**
* <p> The ID of the Qualification type for the requirement.</p>
*/
inline bool QualificationTypeIdHasBeenSet() const { return m_qualificationTypeIdHasBeenSet; }
/**
* <p> The ID of the Qualification type for the requirement.</p>
*/
inline void SetQualificationTypeId(const Aws::String& value) { m_qualificationTypeIdHasBeenSet = true; m_qualificationTypeId = value; }
/**
* <p> The ID of the Qualification type for the requirement.</p>
*/
inline void SetQualificationTypeId(Aws::String&& value) { m_qualificationTypeIdHasBeenSet = true; m_qualificationTypeId = std::move(value); }
/**
* <p> The ID of the Qualification type for the requirement.</p>
*/
inline void SetQualificationTypeId(const char* value) { m_qualificationTypeIdHasBeenSet = true; m_qualificationTypeId.assign(value); }
/**
* <p> The ID of the Qualification type for the requirement.</p>
*/
inline QualificationRequirement& WithQualificationTypeId(const Aws::String& value) { SetQualificationTypeId(value); return *this;}
/**
* <p> The ID of the Qualification type for the requirement.</p>
*/
inline QualificationRequirement& WithQualificationTypeId(Aws::String&& value) { SetQualificationTypeId(std::move(value)); return *this;}
/**
* <p> The ID of the Qualification type for the requirement.</p>
*/
inline QualificationRequirement& WithQualificationTypeId(const char* value) { SetQualificationTypeId(value); return *this;}
/**
* <p>The kind of comparison to make against a Qualification's value. You can
* compare a Qualification's value to an IntegerValue to see if it is LessThan,
* LessThanOrEqualTo, GreaterThan, GreaterThanOrEqualTo, EqualTo, or NotEqualTo the
* IntegerValue. You can compare it to a LocaleValue to see if it is EqualTo, or
* NotEqualTo the LocaleValue. You can check to see if the value is In or NotIn a
* set of IntegerValue or LocaleValue values. Lastly, a Qualification requirement
* can also test if a Qualification Exists or DoesNotExist in the user's profile,
* regardless of its value. </p>
*/
inline const Comparator& GetComparator() const{ return m_comparator; }
/**
* <p>The kind of comparison to make against a Qualification's value. You can
* compare a Qualification's value to an IntegerValue to see if it is LessThan,
* LessThanOrEqualTo, GreaterThan, GreaterThanOrEqualTo, EqualTo, or NotEqualTo the
* IntegerValue. You can compare it to a LocaleValue to see if it is EqualTo, or
* NotEqualTo the LocaleValue. You can check to see if the value is In or NotIn a
* set of IntegerValue or LocaleValue values. Lastly, a Qualification requirement
* can also test if a Qualification Exists or DoesNotExist in the user's profile,
* regardless of its value. </p>
*/
inline bool ComparatorHasBeenSet() const { return m_comparatorHasBeenSet; }
/**
* <p>The kind of comparison to make against a Qualification's value. You can
* compare a Qualification's value to an IntegerValue to see if it is LessThan,
* LessThanOrEqualTo, GreaterThan, GreaterThanOrEqualTo, EqualTo, or NotEqualTo the
* IntegerValue. You can compare it to a LocaleValue to see if it is EqualTo, or
* NotEqualTo the LocaleValue. You can check to see if the value is In or NotIn a
* set of IntegerValue or LocaleValue values. Lastly, a Qualification requirement
* can also test if a Qualification Exists or DoesNotExist in the user's profile,
* regardless of its value. </p>
*/
inline void SetComparator(const Comparator& value) { m_comparatorHasBeenSet = true; m_comparator = value; }
/**
* <p>The kind of comparison to make against a Qualification's value. You can
* compare a Qualification's value to an IntegerValue to see if it is LessThan,
* LessThanOrEqualTo, GreaterThan, GreaterThanOrEqualTo, EqualTo, or NotEqualTo the
* IntegerValue. You can compare it to a LocaleValue to see if it is EqualTo, or
* NotEqualTo the LocaleValue. You can check to see if the value is In or NotIn a
* set of IntegerValue or LocaleValue values. Lastly, a Qualification requirement
* can also test if a Qualification Exists or DoesNotExist in the user's profile,
* regardless of its value. </p>
*/
inline void SetComparator(Comparator&& value) { m_comparatorHasBeenSet = true; m_comparator = std::move(value); }
/**
* <p>The kind of comparison to make against a Qualification's value. You can
* compare a Qualification's value to an IntegerValue to see if it is LessThan,
* LessThanOrEqualTo, GreaterThan, GreaterThanOrEqualTo, EqualTo, or NotEqualTo the
* IntegerValue. You can compare it to a LocaleValue to see if it is EqualTo, or
* NotEqualTo the LocaleValue. You can check to see if the value is In or NotIn a
* set of IntegerValue or LocaleValue values. Lastly, a Qualification requirement
* can also test if a Qualification Exists or DoesNotExist in the user's profile,
* regardless of its value. </p>
*/
inline QualificationRequirement& WithComparator(const Comparator& value) { SetComparator(value); return *this;}
/**
* <p>The kind of comparison to make against a Qualification's value. You can
* compare a Qualification's value to an IntegerValue to see if it is LessThan,
* LessThanOrEqualTo, GreaterThan, GreaterThanOrEqualTo, EqualTo, or NotEqualTo the
* IntegerValue. You can compare it to a LocaleValue to see if it is EqualTo, or
* NotEqualTo the LocaleValue. You can check to see if the value is In or NotIn a
* set of IntegerValue or LocaleValue values. Lastly, a Qualification requirement
* can also test if a Qualification Exists or DoesNotExist in the user's profile,
* regardless of its value. </p>
*/
inline QualificationRequirement& WithComparator(Comparator&& value) { SetComparator(std::move(value)); return *this;}
/**
* <p> The integer value to compare against the Qualification's value. IntegerValue
* must not be present if Comparator is Exists or DoesNotExist. IntegerValue can
* only be used if the Qualification type has an integer value; it cannot be used
* with the Worker_Locale QualificationType ID. When performing a set comparison by
* using the In or the NotIn comparator, you can use up to 15 IntegerValue elements
* in a QualificationRequirement data structure. </p>
*/
inline const Aws::Vector<int>& GetIntegerValues() const{ return m_integerValues; }
/**
* <p> The integer value to compare against the Qualification's value. IntegerValue
* must not be present if Comparator is Exists or DoesNotExist. IntegerValue can
* only be used if the Qualification type has an integer value; it cannot be used
* with the Worker_Locale QualificationType ID. When performing a set comparison by
* using the In or the NotIn comparator, you can use up to 15 IntegerValue elements
* in a QualificationRequirement data structure. </p>
*/
inline bool IntegerValuesHasBeenSet() const { return m_integerValuesHasBeenSet; }
/**
* <p> The integer value to compare against the Qualification's value. IntegerValue
* must not be present if Comparator is Exists or DoesNotExist. IntegerValue can
* only be used if the Qualification type has an integer value; it cannot be used
* with the Worker_Locale QualificationType ID. When performing a set comparison by
* using the In or the NotIn comparator, you can use up to 15 IntegerValue elements
* in a QualificationRequirement data structure. </p>
*/
inline void SetIntegerValues(const Aws::Vector<int>& value) { m_integerValuesHasBeenSet = true; m_integerValues = value; }
/**
* <p> The integer value to compare against the Qualification's value. IntegerValue
* must not be present if Comparator is Exists or DoesNotExist. IntegerValue can
* only be used if the Qualification type has an integer value; it cannot be used
* with the Worker_Locale QualificationType ID. When performing a set comparison by
* using the In or the NotIn comparator, you can use up to 15 IntegerValue elements
* in a QualificationRequirement data structure. </p>
*/
inline void SetIntegerValues(Aws::Vector<int>&& value) { m_integerValuesHasBeenSet = true; m_integerValues = std::move(value); }
/**
* <p> The integer value to compare against the Qualification's value. IntegerValue
* must not be present if Comparator is Exists or DoesNotExist. IntegerValue can
* only be used if the Qualification type has an integer value; it cannot be used
* with the Worker_Locale QualificationType ID. When performing a set comparison by
* using the In or the NotIn comparator, you can use up to 15 IntegerValue elements
* in a QualificationRequirement data structure. </p>
*/
inline QualificationRequirement& WithIntegerValues(const Aws::Vector<int>& value) { SetIntegerValues(value); return *this;}
/**
* <p> The integer value to compare against the Qualification's value. IntegerValue
* must not be present if Comparator is Exists or DoesNotExist. IntegerValue can
* only be used if the Qualification type has an integer value; it cannot be used
* with the Worker_Locale QualificationType ID. When performing a set comparison by
* using the In or the NotIn comparator, you can use up to 15 IntegerValue elements
* in a QualificationRequirement data structure. </p>
*/
inline QualificationRequirement& WithIntegerValues(Aws::Vector<int>&& value) { SetIntegerValues(std::move(value)); return *this;}
/**
* <p> The integer value to compare against the Qualification's value. IntegerValue
* must not be present if Comparator is Exists or DoesNotExist. IntegerValue can
* only be used if the Qualification type has an integer value; it cannot be used
* with the Worker_Locale QualificationType ID. When performing a set comparison by
* using the In or the NotIn comparator, you can use up to 15 IntegerValue elements
* in a QualificationRequirement data structure. </p>
*/
inline QualificationRequirement& AddIntegerValues(int value) { m_integerValuesHasBeenSet = true; m_integerValues.push_back(value); return *this; }
/**
* <p> The locale value to compare against the Qualification's value. The local
* value must be a valid ISO 3166 country code or supports ISO 3166-2 subdivisions.
* LocaleValue can only be used with a Worker_Locale QualificationType ID.
* LocaleValue can only be used with the EqualTo, NotEqualTo, In, and NotIn
* comparators. You must only use a single LocaleValue element when using the
* EqualTo or NotEqualTo comparators. When performing a set comparison by using the
* In or the NotIn comparator, you can use up to 30 LocaleValue elements in a
* QualificationRequirement data structure. </p>
*/
inline const Aws::Vector<Locale>& GetLocaleValues() const{ return m_localeValues; }
/**
* <p> The locale value to compare against the Qualification's value. The local
* value must be a valid ISO 3166 country code or supports ISO 3166-2 subdivisions.
* LocaleValue can only be used with a Worker_Locale QualificationType ID.
* LocaleValue can only be used with the EqualTo, NotEqualTo, In, and NotIn
* comparators. You must only use a single LocaleValue element when using the
* EqualTo or NotEqualTo comparators. When performing a set comparison by using the
* In or the NotIn comparator, you can use up to 30 LocaleValue elements in a
* QualificationRequirement data structure. </p>
*/
inline bool LocaleValuesHasBeenSet() const { return m_localeValuesHasBeenSet; }
/**
* <p> The locale value to compare against the Qualification's value. The local
* value must be a valid ISO 3166 country code or supports ISO 3166-2 subdivisions.
* LocaleValue can only be used with a Worker_Locale QualificationType ID.
* LocaleValue can only be used with the EqualTo, NotEqualTo, In, and NotIn
* comparators. You must only use a single LocaleValue element when using the
* EqualTo or NotEqualTo comparators. When performing a set comparison by using the
* In or the NotIn comparator, you can use up to 30 LocaleValue elements in a
* QualificationRequirement data structure. </p>
*/
inline void SetLocaleValues(const Aws::Vector<Locale>& value) { m_localeValuesHasBeenSet = true; m_localeValues = value; }
/**
* <p> The locale value to compare against the Qualification's value. The local
* value must be a valid ISO 3166 country code or supports ISO 3166-2 subdivisions.
* LocaleValue can only be used with a Worker_Locale QualificationType ID.
* LocaleValue can only be used with the EqualTo, NotEqualTo, In, and NotIn
* comparators. You must only use a single LocaleValue element when using the
* EqualTo or NotEqualTo comparators. When performing a set comparison by using the
* In or the NotIn comparator, you can use up to 30 LocaleValue elements in a
* QualificationRequirement data structure. </p>
*/
inline void SetLocaleValues(Aws::Vector<Locale>&& value) { m_localeValuesHasBeenSet = true; m_localeValues = std::move(value); }
/**
* <p> The locale value to compare against the Qualification's value. The local
* value must be a valid ISO 3166 country code or supports ISO 3166-2 subdivisions.
* LocaleValue can only be used with a Worker_Locale QualificationType ID.
* LocaleValue can only be used with the EqualTo, NotEqualTo, In, and NotIn
* comparators. You must only use a single LocaleValue element when using the
* EqualTo or NotEqualTo comparators. When performing a set comparison by using the
* In or the NotIn comparator, you can use up to 30 LocaleValue elements in a
* QualificationRequirement data structure. </p>
*/
inline QualificationRequirement& WithLocaleValues(const Aws::Vector<Locale>& value) { SetLocaleValues(value); return *this;}
/**
* <p> The locale value to compare against the Qualification's value. The local
* value must be a valid ISO 3166 country code or supports ISO 3166-2 subdivisions.
* LocaleValue can only be used with a Worker_Locale QualificationType ID.
* LocaleValue can only be used with the EqualTo, NotEqualTo, In, and NotIn
* comparators. You must only use a single LocaleValue element when using the
* EqualTo or NotEqualTo comparators. When performing a set comparison by using the
* In or the NotIn comparator, you can use up to 30 LocaleValue elements in a
* QualificationRequirement data structure. </p>
*/
inline QualificationRequirement& WithLocaleValues(Aws::Vector<Locale>&& value) { SetLocaleValues(std::move(value)); return *this;}
/**
* <p> The locale value to compare against the Qualification's value. The local
* value must be a valid ISO 3166 country code or supports ISO 3166-2 subdivisions.
* LocaleValue can only be used with a Worker_Locale QualificationType ID.
* LocaleValue can only be used with the EqualTo, NotEqualTo, In, and NotIn
* comparators. You must only use a single LocaleValue element when using the
* EqualTo or NotEqualTo comparators. When performing a set comparison by using the
* In or the NotIn comparator, you can use up to 30 LocaleValue elements in a
* QualificationRequirement data structure. </p>
*/
inline QualificationRequirement& AddLocaleValues(const Locale& value) { m_localeValuesHasBeenSet = true; m_localeValues.push_back(value); return *this; }
/**
* <p> The locale value to compare against the Qualification's value. The local
* value must be a valid ISO 3166 country code or supports ISO 3166-2 subdivisions.
* LocaleValue can only be used with a Worker_Locale QualificationType ID.
* LocaleValue can only be used with the EqualTo, NotEqualTo, In, and NotIn
* comparators. You must only use a single LocaleValue element when using the
* EqualTo or NotEqualTo comparators. When performing a set comparison by using the
* In or the NotIn comparator, you can use up to 30 LocaleValue elements in a
* QualificationRequirement data structure. </p>
*/
inline QualificationRequirement& AddLocaleValues(Locale&& value) { m_localeValuesHasBeenSet = true; m_localeValues.push_back(std::move(value)); return *this; }
/**
* <p> Setting this attribute prevents Workers whose Qualifications do not meet
* this QualificationRequirement from taking the specified action. Valid arguments
* include "Accept" (Worker cannot accept the HIT, but can preview the HIT and see
* it in their search results), "PreviewAndAccept" (Worker cannot accept or preview
* the HIT, but can see the HIT in their search results), and
* "DiscoverPreviewAndAccept" (Worker cannot accept, preview, or see the HIT in
* their search results). It's possible for you to create a HIT with multiple
* QualificationRequirements (which can have different values for the ActionGuarded
* attribute). In this case, the Worker is only permitted to perform an action when
* they have met all QualificationRequirements guarding the action. The actions in
* the order of least restrictive to most restrictive are Discover, Preview and
* Accept. For example, if a Worker meets all QualificationRequirements that are
* set to DiscoverPreviewAndAccept, but do not meet all requirements that are set
* with PreviewAndAccept, then the Worker will be able to Discover, i.e. see the
* HIT in their search result, but will not be able to Preview or Accept the HIT.
* ActionsGuarded should not be used in combination with the
* <code>RequiredToPreview</code> field. </p>
*/
inline const HITAccessActions& GetActionsGuarded() const{ return m_actionsGuarded; }
/**
* <p> Setting this attribute prevents Workers whose Qualifications do not meet
* this QualificationRequirement from taking the specified action. Valid arguments
* include "Accept" (Worker cannot accept the HIT, but can preview the HIT and see
* it in their search results), "PreviewAndAccept" (Worker cannot accept or preview
* the HIT, but can see the HIT in their search results), and
* "DiscoverPreviewAndAccept" (Worker cannot accept, preview, or see the HIT in
* their search results). It's possible for you to create a HIT with multiple
* QualificationRequirements (which can have different values for the ActionGuarded
* attribute). In this case, the Worker is only permitted to perform an action when
* they have met all QualificationRequirements guarding the action. The actions in
* the order of least restrictive to most restrictive are Discover, Preview and
* Accept. For example, if a Worker meets all QualificationRequirements that are
* set to DiscoverPreviewAndAccept, but do not meet all requirements that are set
* with PreviewAndAccept, then the Worker will be able to Discover, i.e. see the
* HIT in their search result, but will not be able to Preview or Accept the HIT.
* ActionsGuarded should not be used in combination with the
* <code>RequiredToPreview</code> field. </p>
*/
inline bool ActionsGuardedHasBeenSet() const { return m_actionsGuardedHasBeenSet; }
/**
* <p> Setting this attribute prevents Workers whose Qualifications do not meet
* this QualificationRequirement from taking the specified action. Valid arguments
* include "Accept" (Worker cannot accept the HIT, but can preview the HIT and see
* it in their search results), "PreviewAndAccept" (Worker cannot accept or preview
* the HIT, but can see the HIT in their search results), and
* "DiscoverPreviewAndAccept" (Worker cannot accept, preview, or see the HIT in
* their search results). It's possible for you to create a HIT with multiple
* QualificationRequirements (which can have different values for the ActionGuarded
* attribute). In this case, the Worker is only permitted to perform an action when
* they have met all QualificationRequirements guarding the action. The actions in
* the order of least restrictive to most restrictive are Discover, Preview and
* Accept. For example, if a Worker meets all QualificationRequirements that are
* set to DiscoverPreviewAndAccept, but do not meet all requirements that are set
* with PreviewAndAccept, then the Worker will be able to Discover, i.e. see the
* HIT in their search result, but will not be able to Preview or Accept the HIT.
* ActionsGuarded should not be used in combination with the
* <code>RequiredToPreview</code> field. </p>
*/
inline void SetActionsGuarded(const HITAccessActions& value) { m_actionsGuardedHasBeenSet = true; m_actionsGuarded = value; }
/**
* <p> Setting this attribute prevents Workers whose Qualifications do not meet
* this QualificationRequirement from taking the specified action. Valid arguments
* include "Accept" (Worker cannot accept the HIT, but can preview the HIT and see
* it in their search results), "PreviewAndAccept" (Worker cannot accept or preview
* the HIT, but can see the HIT in their search results), and
* "DiscoverPreviewAndAccept" (Worker cannot accept, preview, or see the HIT in
* their search results). It's possible for you to create a HIT with multiple
* QualificationRequirements (which can have different values for the ActionGuarded
* attribute). In this case, the Worker is only permitted to perform an action when
* they have met all QualificationRequirements guarding the action. The actions in
* the order of least restrictive to most restrictive are Discover, Preview and
* Accept. For example, if a Worker meets all QualificationRequirements that are
* set to DiscoverPreviewAndAccept, but do not meet all requirements that are set
* with PreviewAndAccept, then the Worker will be able to Discover, i.e. see the
* HIT in their search result, but will not be able to Preview or Accept the HIT.
* ActionsGuarded should not be used in combination with the
* <code>RequiredToPreview</code> field. </p>
*/
inline void SetActionsGuarded(HITAccessActions&& value) { m_actionsGuardedHasBeenSet = true; m_actionsGuarded = std::move(value); }
/**
* <p> Setting this attribute prevents Workers whose Qualifications do not meet
* this QualificationRequirement from taking the specified action. Valid arguments
* include "Accept" (Worker cannot accept the HIT, but can preview the HIT and see
* it in their search results), "PreviewAndAccept" (Worker cannot accept or preview
* the HIT, but can see the HIT in their search results), and
* "DiscoverPreviewAndAccept" (Worker cannot accept, preview, or see the HIT in
* their search results). It's possible for you to create a HIT with multiple
* QualificationRequirements (which can have different values for the ActionGuarded
* attribute). In this case, the Worker is only permitted to perform an action when
* they have met all QualificationRequirements guarding the action. The actions in
* the order of least restrictive to most restrictive are Discover, Preview and
* Accept. For example, if a Worker meets all QualificationRequirements that are
* set to DiscoverPreviewAndAccept, but do not meet all requirements that are set
* with PreviewAndAccept, then the Worker will be able to Discover, i.e. see the
* HIT in their search result, but will not be able to Preview or Accept the HIT.
* ActionsGuarded should not be used in combination with the
* <code>RequiredToPreview</code> field. </p>
*/
inline QualificationRequirement& WithActionsGuarded(const HITAccessActions& value) { SetActionsGuarded(value); return *this;}
/**
* <p> Setting this attribute prevents Workers whose Qualifications do not meet
* this QualificationRequirement from taking the specified action. Valid arguments
* include "Accept" (Worker cannot accept the HIT, but can preview the HIT and see
* it in their search results), "PreviewAndAccept" (Worker cannot accept or preview
* the HIT, but can see the HIT in their search results), and
* "DiscoverPreviewAndAccept" (Worker cannot accept, preview, or see the HIT in
* their search results). It's possible for you to create a HIT with multiple
* QualificationRequirements (which can have different values for the ActionGuarded
* attribute). In this case, the Worker is only permitted to perform an action when
* they have met all QualificationRequirements guarding the action. The actions in
* the order of least restrictive to most restrictive are Discover, Preview and
* Accept. For example, if a Worker meets all QualificationRequirements that are
* set to DiscoverPreviewAndAccept, but do not meet all requirements that are set
* with PreviewAndAccept, then the Worker will be able to Discover, i.e. see the
* HIT in their search result, but will not be able to Preview or Accept the HIT.
* ActionsGuarded should not be used in combination with the
* <code>RequiredToPreview</code> field. </p>
*/
inline QualificationRequirement& WithActionsGuarded(HITAccessActions&& value) { SetActionsGuarded(std::move(value)); return *this;}
private:
Aws::String m_qualificationTypeId;
bool m_qualificationTypeIdHasBeenSet;
Comparator m_comparator;
bool m_comparatorHasBeenSet;
Aws::Vector<int> m_integerValues;
bool m_integerValuesHasBeenSet;
Aws::Vector<Locale> m_localeValues;
bool m_localeValuesHasBeenSet;
HITAccessActions m_actionsGuarded;
bool m_actionsGuardedHasBeenSet;
};
} // namespace Model
} // namespace MTurk
} // namespace Aws

View File

@@ -0,0 +1,31 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace MTurk
{
namespace Model
{
enum class QualificationStatus
{
NOT_SET,
Granted,
Revoked
};
namespace QualificationStatusMapper
{
AWS_MTURK_API QualificationStatus GetQualificationStatusForName(const Aws::String& name);
AWS_MTURK_API Aws::String GetNameForQualificationStatus(QualificationStatus value);
} // namespace QualificationStatusMapper
} // namespace Model
} // namespace MTurk
} // namespace Aws

View File

@@ -0,0 +1,628 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/DateTime.h>
#include <aws/mturk-requester/model/QualificationTypeStatus.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace MTurk
{
namespace Model
{
/**
* <p> The QualificationType data structure represents a Qualification type, a
* description of a property of a Worker that must match the requirements of a HIT
* for the Worker to be able to accept the HIT. The type also describes how a
* Worker can obtain a Qualification of that type, such as through a Qualification
* test. </p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/QualificationType">AWS
* API Reference</a></p>
*/
class AWS_MTURK_API QualificationType
{
public:
QualificationType();
QualificationType(Aws::Utils::Json::JsonView jsonValue);
QualificationType& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p> A unique identifier for the Qualification type. A Qualification type is
* given a Qualification type ID when you call the CreateQualificationType
* operation. </p>
*/
inline const Aws::String& GetQualificationTypeId() const{ return m_qualificationTypeId; }
/**
* <p> A unique identifier for the Qualification type. A Qualification type is
* given a Qualification type ID when you call the CreateQualificationType
* operation. </p>
*/
inline bool QualificationTypeIdHasBeenSet() const { return m_qualificationTypeIdHasBeenSet; }
/**
* <p> A unique identifier for the Qualification type. A Qualification type is
* given a Qualification type ID when you call the CreateQualificationType
* operation. </p>
*/
inline void SetQualificationTypeId(const Aws::String& value) { m_qualificationTypeIdHasBeenSet = true; m_qualificationTypeId = value; }
/**
* <p> A unique identifier for the Qualification type. A Qualification type is
* given a Qualification type ID when you call the CreateQualificationType
* operation. </p>
*/
inline void SetQualificationTypeId(Aws::String&& value) { m_qualificationTypeIdHasBeenSet = true; m_qualificationTypeId = std::move(value); }
/**
* <p> A unique identifier for the Qualification type. A Qualification type is
* given a Qualification type ID when you call the CreateQualificationType
* operation. </p>
*/
inline void SetQualificationTypeId(const char* value) { m_qualificationTypeIdHasBeenSet = true; m_qualificationTypeId.assign(value); }
/**
* <p> A unique identifier for the Qualification type. A Qualification type is
* given a Qualification type ID when you call the CreateQualificationType
* operation. </p>
*/
inline QualificationType& WithQualificationTypeId(const Aws::String& value) { SetQualificationTypeId(value); return *this;}
/**
* <p> A unique identifier for the Qualification type. A Qualification type is
* given a Qualification type ID when you call the CreateQualificationType
* operation. </p>
*/
inline QualificationType& WithQualificationTypeId(Aws::String&& value) { SetQualificationTypeId(std::move(value)); return *this;}
/**
* <p> A unique identifier for the Qualification type. A Qualification type is
* given a Qualification type ID when you call the CreateQualificationType
* operation. </p>
*/
inline QualificationType& WithQualificationTypeId(const char* value) { SetQualificationTypeId(value); return *this;}
/**
* <p> The date and time the Qualification type was created. </p>
*/
inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
/**
* <p> The date and time the Qualification type was created. </p>
*/
inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
/**
* <p> The date and time the Qualification type was created. </p>
*/
inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
/**
* <p> The date and time the Qualification type was created. </p>
*/
inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
/**
* <p> The date and time the Qualification type was created. </p>
*/
inline QualificationType& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
/**
* <p> The date and time the Qualification type was created. </p>
*/
inline QualificationType& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
/**
* <p> The name of the Qualification type. The type name is used to identify the
* type, and to find the type using a Qualification type search. </p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p> The name of the Qualification type. The type name is used to identify the
* type, and to find the type using a Qualification type search. </p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p> The name of the Qualification type. The type name is used to identify the
* type, and to find the type using a Qualification type search. </p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p> The name of the Qualification type. The type name is used to identify the
* type, and to find the type using a Qualification type search. </p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p> The name of the Qualification type. The type name is used to identify the
* type, and to find the type using a Qualification type search. </p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p> The name of the Qualification type. The type name is used to identify the
* type, and to find the type using a Qualification type search. </p>
*/
inline QualificationType& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p> The name of the Qualification type. The type name is used to identify the
* type, and to find the type using a Qualification type search. </p>
*/
inline QualificationType& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p> The name of the Qualification type. The type name is used to identify the
* type, and to find the type using a Qualification type search. </p>
*/
inline QualificationType& WithName(const char* value) { SetName(value); return *this;}
/**
* <p> A long description for the Qualification type. </p>
*/
inline const Aws::String& GetDescription() const{ return m_description; }
/**
* <p> A long description for the Qualification type. </p>
*/
inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
/**
* <p> A long description for the Qualification type. </p>
*/
inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
/**
* <p> A long description for the Qualification type. </p>
*/
inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
/**
* <p> A long description for the Qualification type. </p>
*/
inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
/**
* <p> A long description for the Qualification type. </p>
*/
inline QualificationType& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
/**
* <p> A long description for the Qualification type. </p>
*/
inline QualificationType& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
/**
* <p> A long description for the Qualification type. </p>
*/
inline QualificationType& WithDescription(const char* value) { SetDescription(value); return *this;}
/**
* <p> One or more words or phrases that describe theQualification type, separated
* by commas. The Keywords make the type easier to find using a search. </p>
*/
inline const Aws::String& GetKeywords() const{ return m_keywords; }
/**
* <p> One or more words or phrases that describe theQualification type, separated
* by commas. The Keywords make the type easier to find using a search. </p>
*/
inline bool KeywordsHasBeenSet() const { return m_keywordsHasBeenSet; }
/**
* <p> One or more words or phrases that describe theQualification type, separated
* by commas. The Keywords make the type easier to find using a search. </p>
*/
inline void SetKeywords(const Aws::String& value) { m_keywordsHasBeenSet = true; m_keywords = value; }
/**
* <p> One or more words or phrases that describe theQualification type, separated
* by commas. The Keywords make the type easier to find using a search. </p>
*/
inline void SetKeywords(Aws::String&& value) { m_keywordsHasBeenSet = true; m_keywords = std::move(value); }
/**
* <p> One or more words or phrases that describe theQualification type, separated
* by commas. The Keywords make the type easier to find using a search. </p>
*/
inline void SetKeywords(const char* value) { m_keywordsHasBeenSet = true; m_keywords.assign(value); }
/**
* <p> One or more words or phrases that describe theQualification type, separated
* by commas. The Keywords make the type easier to find using a search. </p>
*/
inline QualificationType& WithKeywords(const Aws::String& value) { SetKeywords(value); return *this;}
/**
* <p> One or more words or phrases that describe theQualification type, separated
* by commas. The Keywords make the type easier to find using a search. </p>
*/
inline QualificationType& WithKeywords(Aws::String&& value) { SetKeywords(std::move(value)); return *this;}
/**
* <p> One or more words or phrases that describe theQualification type, separated
* by commas. The Keywords make the type easier to find using a search. </p>
*/
inline QualificationType& WithKeywords(const char* value) { SetKeywords(value); return *this;}
/**
* <p> The status of the Qualification type. A Qualification type's status
* determines if users can apply to receive a Qualification of this type, and if
* HITs can be created with requirements based on this type. Valid values are
* Active | Inactive. </p>
*/
inline const QualificationTypeStatus& GetQualificationTypeStatus() const{ return m_qualificationTypeStatus; }
/**
* <p> The status of the Qualification type. A Qualification type's status
* determines if users can apply to receive a Qualification of this type, and if
* HITs can be created with requirements based on this type. Valid values are
* Active | Inactive. </p>
*/
inline bool QualificationTypeStatusHasBeenSet() const { return m_qualificationTypeStatusHasBeenSet; }
/**
* <p> The status of the Qualification type. A Qualification type's status
* determines if users can apply to receive a Qualification of this type, and if
* HITs can be created with requirements based on this type. Valid values are
* Active | Inactive. </p>
*/
inline void SetQualificationTypeStatus(const QualificationTypeStatus& value) { m_qualificationTypeStatusHasBeenSet = true; m_qualificationTypeStatus = value; }
/**
* <p> The status of the Qualification type. A Qualification type's status
* determines if users can apply to receive a Qualification of this type, and if
* HITs can be created with requirements based on this type. Valid values are
* Active | Inactive. </p>
*/
inline void SetQualificationTypeStatus(QualificationTypeStatus&& value) { m_qualificationTypeStatusHasBeenSet = true; m_qualificationTypeStatus = std::move(value); }
/**
* <p> The status of the Qualification type. A Qualification type's status
* determines if users can apply to receive a Qualification of this type, and if
* HITs can be created with requirements based on this type. Valid values are
* Active | Inactive. </p>
*/
inline QualificationType& WithQualificationTypeStatus(const QualificationTypeStatus& value) { SetQualificationTypeStatus(value); return *this;}
/**
* <p> The status of the Qualification type. A Qualification type's status
* determines if users can apply to receive a Qualification of this type, and if
* HITs can be created with requirements based on this type. Valid values are
* Active | Inactive. </p>
*/
inline QualificationType& WithQualificationTypeStatus(QualificationTypeStatus&& value) { SetQualificationTypeStatus(std::move(value)); return *this;}
/**
* <p> The questions for a Qualification test associated with this Qualification
* type that a user can take to obtain a Qualification of this type. This parameter
* must be specified if AnswerKey is present. A Qualification type cannot have both
* a specified Test parameter and an AutoGranted value of true. </p>
*/
inline const Aws::String& GetTest() const{ return m_test; }
/**
* <p> The questions for a Qualification test associated with this Qualification
* type that a user can take to obtain a Qualification of this type. This parameter
* must be specified if AnswerKey is present. A Qualification type cannot have both
* a specified Test parameter and an AutoGranted value of true. </p>
*/
inline bool TestHasBeenSet() const { return m_testHasBeenSet; }
/**
* <p> The questions for a Qualification test associated with this Qualification
* type that a user can take to obtain a Qualification of this type. This parameter
* must be specified if AnswerKey is present. A Qualification type cannot have both
* a specified Test parameter and an AutoGranted value of true. </p>
*/
inline void SetTest(const Aws::String& value) { m_testHasBeenSet = true; m_test = value; }
/**
* <p> The questions for a Qualification test associated with this Qualification
* type that a user can take to obtain a Qualification of this type. This parameter
* must be specified if AnswerKey is present. A Qualification type cannot have both
* a specified Test parameter and an AutoGranted value of true. </p>
*/
inline void SetTest(Aws::String&& value) { m_testHasBeenSet = true; m_test = std::move(value); }
/**
* <p> The questions for a Qualification test associated with this Qualification
* type that a user can take to obtain a Qualification of this type. This parameter
* must be specified if AnswerKey is present. A Qualification type cannot have both
* a specified Test parameter and an AutoGranted value of true. </p>
*/
inline void SetTest(const char* value) { m_testHasBeenSet = true; m_test.assign(value); }
/**
* <p> The questions for a Qualification test associated with this Qualification
* type that a user can take to obtain a Qualification of this type. This parameter
* must be specified if AnswerKey is present. A Qualification type cannot have both
* a specified Test parameter and an AutoGranted value of true. </p>
*/
inline QualificationType& WithTest(const Aws::String& value) { SetTest(value); return *this;}
/**
* <p> The questions for a Qualification test associated with this Qualification
* type that a user can take to obtain a Qualification of this type. This parameter
* must be specified if AnswerKey is present. A Qualification type cannot have both
* a specified Test parameter and an AutoGranted value of true. </p>
*/
inline QualificationType& WithTest(Aws::String&& value) { SetTest(std::move(value)); return *this;}
/**
* <p> The questions for a Qualification test associated with this Qualification
* type that a user can take to obtain a Qualification of this type. This parameter
* must be specified if AnswerKey is present. A Qualification type cannot have both
* a specified Test parameter and an AutoGranted value of true. </p>
*/
inline QualificationType& WithTest(const char* value) { SetTest(value); return *this;}
/**
* <p> The amount of time, in seconds, given to a Worker to complete the
* Qualification test, beginning from the time the Worker requests the
* Qualification. </p>
*/
inline long long GetTestDurationInSeconds() const{ return m_testDurationInSeconds; }
/**
* <p> The amount of time, in seconds, given to a Worker to complete the
* Qualification test, beginning from the time the Worker requests the
* Qualification. </p>
*/
inline bool TestDurationInSecondsHasBeenSet() const { return m_testDurationInSecondsHasBeenSet; }
/**
* <p> The amount of time, in seconds, given to a Worker to complete the
* Qualification test, beginning from the time the Worker requests the
* Qualification. </p>
*/
inline void SetTestDurationInSeconds(long long value) { m_testDurationInSecondsHasBeenSet = true; m_testDurationInSeconds = value; }
/**
* <p> The amount of time, in seconds, given to a Worker to complete the
* Qualification test, beginning from the time the Worker requests the
* Qualification. </p>
*/
inline QualificationType& WithTestDurationInSeconds(long long value) { SetTestDurationInSeconds(value); return *this;}
/**
* <p>The answers to the Qualification test specified in the Test parameter.</p>
*/
inline const Aws::String& GetAnswerKey() const{ return m_answerKey; }
/**
* <p>The answers to the Qualification test specified in the Test parameter.</p>
*/
inline bool AnswerKeyHasBeenSet() const { return m_answerKeyHasBeenSet; }
/**
* <p>The answers to the Qualification test specified in the Test parameter.</p>
*/
inline void SetAnswerKey(const Aws::String& value) { m_answerKeyHasBeenSet = true; m_answerKey = value; }
/**
* <p>The answers to the Qualification test specified in the Test parameter.</p>
*/
inline void SetAnswerKey(Aws::String&& value) { m_answerKeyHasBeenSet = true; m_answerKey = std::move(value); }
/**
* <p>The answers to the Qualification test specified in the Test parameter.</p>
*/
inline void SetAnswerKey(const char* value) { m_answerKeyHasBeenSet = true; m_answerKey.assign(value); }
/**
* <p>The answers to the Qualification test specified in the Test parameter.</p>
*/
inline QualificationType& WithAnswerKey(const Aws::String& value) { SetAnswerKey(value); return *this;}
/**
* <p>The answers to the Qualification test specified in the Test parameter.</p>
*/
inline QualificationType& WithAnswerKey(Aws::String&& value) { SetAnswerKey(std::move(value)); return *this;}
/**
* <p>The answers to the Qualification test specified in the Test parameter.</p>
*/
inline QualificationType& WithAnswerKey(const char* value) { SetAnswerKey(value); return *this;}
/**
* <p> The amount of time, in seconds, Workers must wait after taking the
* Qualification test before they can take it again. Workers can take a
* Qualification test multiple times if they were not granted the Qualification
* from a previous attempt, or if the test offers a gradient score and they want a
* better score. If not specified, retries are disabled and Workers can request a
* Qualification only once. </p>
*/
inline long long GetRetryDelayInSeconds() const{ return m_retryDelayInSeconds; }
/**
* <p> The amount of time, in seconds, Workers must wait after taking the
* Qualification test before they can take it again. Workers can take a
* Qualification test multiple times if they were not granted the Qualification
* from a previous attempt, or if the test offers a gradient score and they want a
* better score. If not specified, retries are disabled and Workers can request a
* Qualification only once. </p>
*/
inline bool RetryDelayInSecondsHasBeenSet() const { return m_retryDelayInSecondsHasBeenSet; }
/**
* <p> The amount of time, in seconds, Workers must wait after taking the
* Qualification test before they can take it again. Workers can take a
* Qualification test multiple times if they were not granted the Qualification
* from a previous attempt, or if the test offers a gradient score and they want a
* better score. If not specified, retries are disabled and Workers can request a
* Qualification only once. </p>
*/
inline void SetRetryDelayInSeconds(long long value) { m_retryDelayInSecondsHasBeenSet = true; m_retryDelayInSeconds = value; }
/**
* <p> The amount of time, in seconds, Workers must wait after taking the
* Qualification test before they can take it again. Workers can take a
* Qualification test multiple times if they were not granted the Qualification
* from a previous attempt, or if the test offers a gradient score and they want a
* better score. If not specified, retries are disabled and Workers can request a
* Qualification only once. </p>
*/
inline QualificationType& WithRetryDelayInSeconds(long long value) { SetRetryDelayInSeconds(value); return *this;}
/**
* <p> Specifies whether the Qualification type is one that a user can request
* through the Amazon Mechanical Turk web site, such as by taking a Qualification
* test. This value is False for Qualifications assigned automatically by the
* system. Valid values are True | False. </p>
*/
inline bool GetIsRequestable() const{ return m_isRequestable; }
/**
* <p> Specifies whether the Qualification type is one that a user can request
* through the Amazon Mechanical Turk web site, such as by taking a Qualification
* test. This value is False for Qualifications assigned automatically by the
* system. Valid values are True | False. </p>
*/
inline bool IsRequestableHasBeenSet() const { return m_isRequestableHasBeenSet; }
/**
* <p> Specifies whether the Qualification type is one that a user can request
* through the Amazon Mechanical Turk web site, such as by taking a Qualification
* test. This value is False for Qualifications assigned automatically by the
* system. Valid values are True | False. </p>
*/
inline void SetIsRequestable(bool value) { m_isRequestableHasBeenSet = true; m_isRequestable = value; }
/**
* <p> Specifies whether the Qualification type is one that a user can request
* through the Amazon Mechanical Turk web site, such as by taking a Qualification
* test. This value is False for Qualifications assigned automatically by the
* system. Valid values are True | False. </p>
*/
inline QualificationType& WithIsRequestable(bool value) { SetIsRequestable(value); return *this;}
/**
* <p>Specifies that requests for the Qualification type are granted immediately,
* without prompting the Worker with a Qualification test. Valid values are True |
* False.</p>
*/
inline bool GetAutoGranted() const{ return m_autoGranted; }
/**
* <p>Specifies that requests for the Qualification type are granted immediately,
* without prompting the Worker with a Qualification test. Valid values are True |
* False.</p>
*/
inline bool AutoGrantedHasBeenSet() const { return m_autoGrantedHasBeenSet; }
/**
* <p>Specifies that requests for the Qualification type are granted immediately,
* without prompting the Worker with a Qualification test. Valid values are True |
* False.</p>
*/
inline void SetAutoGranted(bool value) { m_autoGrantedHasBeenSet = true; m_autoGranted = value; }
/**
* <p>Specifies that requests for the Qualification type are granted immediately,
* without prompting the Worker with a Qualification test. Valid values are True |
* False.</p>
*/
inline QualificationType& WithAutoGranted(bool value) { SetAutoGranted(value); return *this;}
/**
* <p> The Qualification integer value to use for automatically granted
* Qualifications, if AutoGranted is true. This is 1 by default. </p>
*/
inline int GetAutoGrantedValue() const{ return m_autoGrantedValue; }
/**
* <p> The Qualification integer value to use for automatically granted
* Qualifications, if AutoGranted is true. This is 1 by default. </p>
*/
inline bool AutoGrantedValueHasBeenSet() const { return m_autoGrantedValueHasBeenSet; }
/**
* <p> The Qualification integer value to use for automatically granted
* Qualifications, if AutoGranted is true. This is 1 by default. </p>
*/
inline void SetAutoGrantedValue(int value) { m_autoGrantedValueHasBeenSet = true; m_autoGrantedValue = value; }
/**
* <p> The Qualification integer value to use for automatically granted
* Qualifications, if AutoGranted is true. This is 1 by default. </p>
*/
inline QualificationType& WithAutoGrantedValue(int value) { SetAutoGrantedValue(value); return *this;}
private:
Aws::String m_qualificationTypeId;
bool m_qualificationTypeIdHasBeenSet;
Aws::Utils::DateTime m_creationTime;
bool m_creationTimeHasBeenSet;
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::String m_description;
bool m_descriptionHasBeenSet;
Aws::String m_keywords;
bool m_keywordsHasBeenSet;
QualificationTypeStatus m_qualificationTypeStatus;
bool m_qualificationTypeStatusHasBeenSet;
Aws::String m_test;
bool m_testHasBeenSet;
long long m_testDurationInSeconds;
bool m_testDurationInSecondsHasBeenSet;
Aws::String m_answerKey;
bool m_answerKeyHasBeenSet;
long long m_retryDelayInSeconds;
bool m_retryDelayInSecondsHasBeenSet;
bool m_isRequestable;
bool m_isRequestableHasBeenSet;
bool m_autoGranted;
bool m_autoGrantedHasBeenSet;
int m_autoGrantedValue;
bool m_autoGrantedValueHasBeenSet;
};
} // namespace Model
} // namespace MTurk
} // namespace Aws

View File

@@ -0,0 +1,31 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace MTurk
{
namespace Model
{
enum class QualificationTypeStatus
{
NOT_SET,
Active,
Inactive
};
namespace QualificationTypeStatusMapper
{
AWS_MTURK_API QualificationTypeStatus GetQualificationTypeStatusForName(const Aws::String& name);
AWS_MTURK_API Aws::String GetNameForQualificationTypeStatus(QualificationTypeStatus value);
} // namespace QualificationTypeStatusMapper
} // namespace Model
} // namespace MTurk
} // namespace Aws

View File

@@ -0,0 +1,145 @@
/**
* 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 RejectAssignmentRequest : public MTurkRequest
{
public:
RejectAssignmentRequest();
// 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 "RejectAssignment"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p> The ID of the assignment. The assignment must correspond to a HIT created by
* the Requester. </p>
*/
inline const Aws::String& GetAssignmentId() const{ return m_assignmentId; }
/**
* <p> The ID of the assignment. The assignment must correspond to a HIT created by
* the Requester. </p>
*/
inline bool AssignmentIdHasBeenSet() const { return m_assignmentIdHasBeenSet; }
/**
* <p> The ID of the assignment. The assignment must correspond to a HIT created by
* the Requester. </p>
*/
inline void SetAssignmentId(const Aws::String& value) { m_assignmentIdHasBeenSet = true; m_assignmentId = value; }
/**
* <p> The ID of the assignment. The assignment must correspond to a HIT created by
* the Requester. </p>
*/
inline void SetAssignmentId(Aws::String&& value) { m_assignmentIdHasBeenSet = true; m_assignmentId = std::move(value); }
/**
* <p> The ID of the assignment. The assignment must correspond to a HIT created by
* the Requester. </p>
*/
inline void SetAssignmentId(const char* value) { m_assignmentIdHasBeenSet = true; m_assignmentId.assign(value); }
/**
* <p> The ID of the assignment. The assignment must correspond to a HIT created by
* the Requester. </p>
*/
inline RejectAssignmentRequest& WithAssignmentId(const Aws::String& value) { SetAssignmentId(value); return *this;}
/**
* <p> The ID of the assignment. The assignment must correspond to a HIT created by
* the Requester. </p>
*/
inline RejectAssignmentRequest& WithAssignmentId(Aws::String&& value) { SetAssignmentId(std::move(value)); return *this;}
/**
* <p> The ID of the assignment. The assignment must correspond to a HIT created by
* the Requester. </p>
*/
inline RejectAssignmentRequest& WithAssignmentId(const char* value) { SetAssignmentId(value); return *this;}
/**
* <p> A message for the Worker, which the Worker can see in the Status section of
* the web site. </p>
*/
inline const Aws::String& GetRequesterFeedback() const{ return m_requesterFeedback; }
/**
* <p> A message for the Worker, which the Worker can see in the Status section of
* the web site. </p>
*/
inline bool RequesterFeedbackHasBeenSet() const { return m_requesterFeedbackHasBeenSet; }
/**
* <p> A message for the Worker, which the Worker can see in the Status section of
* the web site. </p>
*/
inline void SetRequesterFeedback(const Aws::String& value) { m_requesterFeedbackHasBeenSet = true; m_requesterFeedback = value; }
/**
* <p> A message for the Worker, which the Worker can see in the Status section of
* the web site. </p>
*/
inline void SetRequesterFeedback(Aws::String&& value) { m_requesterFeedbackHasBeenSet = true; m_requesterFeedback = std::move(value); }
/**
* <p> A message for the Worker, which the Worker can see in the Status section of
* the web site. </p>
*/
inline void SetRequesterFeedback(const char* value) { m_requesterFeedbackHasBeenSet = true; m_requesterFeedback.assign(value); }
/**
* <p> A message for the Worker, which the Worker can see in the Status section of
* the web site. </p>
*/
inline RejectAssignmentRequest& WithRequesterFeedback(const Aws::String& value) { SetRequesterFeedback(value); return *this;}
/**
* <p> A message for the Worker, which the Worker can see in the Status section of
* the web site. </p>
*/
inline RejectAssignmentRequest& WithRequesterFeedback(Aws::String&& value) { SetRequesterFeedback(std::move(value)); return *this;}
/**
* <p> A message for the Worker, which the Worker can see in the Status section of
* the web site. </p>
*/
inline RejectAssignmentRequest& WithRequesterFeedback(const char* value) { SetRequesterFeedback(value); return *this;}
private:
Aws::String m_assignmentId;
bool m_assignmentIdHasBeenSet;
Aws::String m_requesterFeedback;
bool m_requesterFeedbackHasBeenSet;
};
} // namespace Model
} // namespace MTurk
} // namespace Aws

View File

@@ -0,0 +1,36 @@
/**
* 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>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace MTurk
{
namespace Model
{
class AWS_MTURK_API RejectAssignmentResult
{
public:
RejectAssignmentResult();
RejectAssignmentResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
RejectAssignmentResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace MTurk
} // namespace Aws

View File

@@ -0,0 +1,145 @@
/**
* 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 RejectQualificationRequestRequest : public MTurkRequest
{
public:
RejectQualificationRequestRequest();
// 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 "RejectQualificationRequest"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p> The ID of the Qualification request, as returned by the
* <code>ListQualificationRequests</code> operation. </p>
*/
inline const Aws::String& GetQualificationRequestId() const{ return m_qualificationRequestId; }
/**
* <p> The ID of the Qualification request, as returned by the
* <code>ListQualificationRequests</code> operation. </p>
*/
inline bool QualificationRequestIdHasBeenSet() const { return m_qualificationRequestIdHasBeenSet; }
/**
* <p> The ID of the Qualification request, as returned by the
* <code>ListQualificationRequests</code> operation. </p>
*/
inline void SetQualificationRequestId(const Aws::String& value) { m_qualificationRequestIdHasBeenSet = true; m_qualificationRequestId = value; }
/**
* <p> The ID of the Qualification request, as returned by the
* <code>ListQualificationRequests</code> operation. </p>
*/
inline void SetQualificationRequestId(Aws::String&& value) { m_qualificationRequestIdHasBeenSet = true; m_qualificationRequestId = std::move(value); }
/**
* <p> The ID of the Qualification request, as returned by the
* <code>ListQualificationRequests</code> operation. </p>
*/
inline void SetQualificationRequestId(const char* value) { m_qualificationRequestIdHasBeenSet = true; m_qualificationRequestId.assign(value); }
/**
* <p> The ID of the Qualification request, as returned by the
* <code>ListQualificationRequests</code> operation. </p>
*/
inline RejectQualificationRequestRequest& WithQualificationRequestId(const Aws::String& value) { SetQualificationRequestId(value); return *this;}
/**
* <p> The ID of the Qualification request, as returned by the
* <code>ListQualificationRequests</code> operation. </p>
*/
inline RejectQualificationRequestRequest& WithQualificationRequestId(Aws::String&& value) { SetQualificationRequestId(std::move(value)); return *this;}
/**
* <p> The ID of the Qualification request, as returned by the
* <code>ListQualificationRequests</code> operation. </p>
*/
inline RejectQualificationRequestRequest& WithQualificationRequestId(const char* value) { SetQualificationRequestId(value); return *this;}
/**
* <p>A text message explaining why the request was rejected, to be shown to the
* Worker who made the request.</p>
*/
inline const Aws::String& GetReason() const{ return m_reason; }
/**
* <p>A text message explaining why the request was rejected, to be shown to the
* Worker who made the request.</p>
*/
inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
/**
* <p>A text message explaining why the request was rejected, to be shown to the
* Worker who made the request.</p>
*/
inline void SetReason(const Aws::String& value) { m_reasonHasBeenSet = true; m_reason = value; }
/**
* <p>A text message explaining why the request was rejected, to be shown to the
* Worker who made the request.</p>
*/
inline void SetReason(Aws::String&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
/**
* <p>A text message explaining why the request was rejected, to be shown to the
* Worker who made the request.</p>
*/
inline void SetReason(const char* value) { m_reasonHasBeenSet = true; m_reason.assign(value); }
/**
* <p>A text message explaining why the request was rejected, to be shown to the
* Worker who made the request.</p>
*/
inline RejectQualificationRequestRequest& WithReason(const Aws::String& value) { SetReason(value); return *this;}
/**
* <p>A text message explaining why the request was rejected, to be shown to the
* Worker who made the request.</p>
*/
inline RejectQualificationRequestRequest& WithReason(Aws::String&& value) { SetReason(std::move(value)); return *this;}
/**
* <p>A text message explaining why the request was rejected, to be shown to the
* Worker who made the request.</p>
*/
inline RejectQualificationRequestRequest& WithReason(const char* value) { SetReason(value); return *this;}
private:
Aws::String m_qualificationRequestId;
bool m_qualificationRequestIdHasBeenSet;
Aws::String m_reason;
bool m_reasonHasBeenSet;
};
} // namespace Model
} // namespace MTurk
} // namespace Aws

View File

@@ -0,0 +1,36 @@
/**
* 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>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace MTurk
{
namespace Model
{
class AWS_MTURK_API RejectQualificationRequestResult
{
public:
RejectQualificationRequestResult();
RejectQualificationRequestResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
RejectQualificationRequestResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace MTurk
} // namespace Aws

View File

@@ -0,0 +1,100 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace MTurk
{
namespace Model
{
/**
* <p>Your request is invalid.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/RequestError">AWS
* API Reference</a></p>
*/
class AWS_MTURK_API RequestError
{
public:
RequestError();
RequestError(Aws::Utils::Json::JsonView jsonValue);
RequestError& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
inline const Aws::String& GetMessage() const{ return m_message; }
inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
inline RequestError& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
inline RequestError& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
inline RequestError& WithMessage(const char* value) { SetMessage(value); return *this;}
inline const Aws::String& GetTurkErrorCode() const{ return m_turkErrorCode; }
inline bool TurkErrorCodeHasBeenSet() const { return m_turkErrorCodeHasBeenSet; }
inline void SetTurkErrorCode(const Aws::String& value) { m_turkErrorCodeHasBeenSet = true; m_turkErrorCode = value; }
inline void SetTurkErrorCode(Aws::String&& value) { m_turkErrorCodeHasBeenSet = true; m_turkErrorCode = std::move(value); }
inline void SetTurkErrorCode(const char* value) { m_turkErrorCodeHasBeenSet = true; m_turkErrorCode.assign(value); }
inline RequestError& WithTurkErrorCode(const Aws::String& value) { SetTurkErrorCode(value); return *this;}
inline RequestError& WithTurkErrorCode(Aws::String&& value) { SetTurkErrorCode(std::move(value)); return *this;}
inline RequestError& WithTurkErrorCode(const char* value) { SetTurkErrorCode(value); return *this;}
private:
Aws::String m_message;
bool m_messageHasBeenSet;
Aws::String m_turkErrorCode;
bool m_turkErrorCodeHasBeenSet;
};
} // namespace Model
} // namespace MTurk
} // namespace Aws

View File

@@ -0,0 +1,402 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
#include <aws/mturk-requester/model/ReviewActionStatus.h>
#include <aws/core/utils/DateTime.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace MTurk
{
namespace Model
{
/**
* <p> Both the AssignmentReviewReport and the HITReviewReport elements contains
* the ReviewActionDetail data structure. This structure is returned multiple times
* for each action specified in the Review Policy. </p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ReviewActionDetail">AWS
* API Reference</a></p>
*/
class AWS_MTURK_API ReviewActionDetail
{
public:
ReviewActionDetail();
ReviewActionDetail(Aws::Utils::Json::JsonView jsonValue);
ReviewActionDetail& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The unique identifier for the action.</p>
*/
inline const Aws::String& GetActionId() const{ return m_actionId; }
/**
* <p>The unique identifier for the action.</p>
*/
inline bool ActionIdHasBeenSet() const { return m_actionIdHasBeenSet; }
/**
* <p>The unique identifier for the action.</p>
*/
inline void SetActionId(const Aws::String& value) { m_actionIdHasBeenSet = true; m_actionId = value; }
/**
* <p>The unique identifier for the action.</p>
*/
inline void SetActionId(Aws::String&& value) { m_actionIdHasBeenSet = true; m_actionId = std::move(value); }
/**
* <p>The unique identifier for the action.</p>
*/
inline void SetActionId(const char* value) { m_actionIdHasBeenSet = true; m_actionId.assign(value); }
/**
* <p>The unique identifier for the action.</p>
*/
inline ReviewActionDetail& WithActionId(const Aws::String& value) { SetActionId(value); return *this;}
/**
* <p>The unique identifier for the action.</p>
*/
inline ReviewActionDetail& WithActionId(Aws::String&& value) { SetActionId(std::move(value)); return *this;}
/**
* <p>The unique identifier for the action.</p>
*/
inline ReviewActionDetail& WithActionId(const char* value) { SetActionId(value); return *this;}
/**
* <p> The nature of the action itself. The Review Policy is responsible for
* examining the HIT and Assignments, emitting results, and deciding which other
* actions will be necessary. </p>
*/
inline const Aws::String& GetActionName() const{ return m_actionName; }
/**
* <p> The nature of the action itself. The Review Policy is responsible for
* examining the HIT and Assignments, emitting results, and deciding which other
* actions will be necessary. </p>
*/
inline bool ActionNameHasBeenSet() const { return m_actionNameHasBeenSet; }
/**
* <p> The nature of the action itself. The Review Policy is responsible for
* examining the HIT and Assignments, emitting results, and deciding which other
* actions will be necessary. </p>
*/
inline void SetActionName(const Aws::String& value) { m_actionNameHasBeenSet = true; m_actionName = value; }
/**
* <p> The nature of the action itself. The Review Policy is responsible for
* examining the HIT and Assignments, emitting results, and deciding which other
* actions will be necessary. </p>
*/
inline void SetActionName(Aws::String&& value) { m_actionNameHasBeenSet = true; m_actionName = std::move(value); }
/**
* <p> The nature of the action itself. The Review Policy is responsible for
* examining the HIT and Assignments, emitting results, and deciding which other
* actions will be necessary. </p>
*/
inline void SetActionName(const char* value) { m_actionNameHasBeenSet = true; m_actionName.assign(value); }
/**
* <p> The nature of the action itself. The Review Policy is responsible for
* examining the HIT and Assignments, emitting results, and deciding which other
* actions will be necessary. </p>
*/
inline ReviewActionDetail& WithActionName(const Aws::String& value) { SetActionName(value); return *this;}
/**
* <p> The nature of the action itself. The Review Policy is responsible for
* examining the HIT and Assignments, emitting results, and deciding which other
* actions will be necessary. </p>
*/
inline ReviewActionDetail& WithActionName(Aws::String&& value) { SetActionName(std::move(value)); return *this;}
/**
* <p> The nature of the action itself. The Review Policy is responsible for
* examining the HIT and Assignments, emitting results, and deciding which other
* actions will be necessary. </p>
*/
inline ReviewActionDetail& WithActionName(const char* value) { SetActionName(value); return *this;}
/**
* <p> The specific HITId or AssignmentID targeted by the action.</p>
*/
inline const Aws::String& GetTargetId() const{ return m_targetId; }
/**
* <p> The specific HITId or AssignmentID targeted by the action.</p>
*/
inline bool TargetIdHasBeenSet() const { return m_targetIdHasBeenSet; }
/**
* <p> The specific HITId or AssignmentID targeted by the action.</p>
*/
inline void SetTargetId(const Aws::String& value) { m_targetIdHasBeenSet = true; m_targetId = value; }
/**
* <p> The specific HITId or AssignmentID targeted by the action.</p>
*/
inline void SetTargetId(Aws::String&& value) { m_targetIdHasBeenSet = true; m_targetId = std::move(value); }
/**
* <p> The specific HITId or AssignmentID targeted by the action.</p>
*/
inline void SetTargetId(const char* value) { m_targetIdHasBeenSet = true; m_targetId.assign(value); }
/**
* <p> The specific HITId or AssignmentID targeted by the action.</p>
*/
inline ReviewActionDetail& WithTargetId(const Aws::String& value) { SetTargetId(value); return *this;}
/**
* <p> The specific HITId or AssignmentID targeted by the action.</p>
*/
inline ReviewActionDetail& WithTargetId(Aws::String&& value) { SetTargetId(std::move(value)); return *this;}
/**
* <p> The specific HITId or AssignmentID targeted by the action.</p>
*/
inline ReviewActionDetail& WithTargetId(const char* value) { SetTargetId(value); return *this;}
/**
* <p> The type of object in TargetId.</p>
*/
inline const Aws::String& GetTargetType() const{ return m_targetType; }
/**
* <p> The type of object in TargetId.</p>
*/
inline bool TargetTypeHasBeenSet() const { return m_targetTypeHasBeenSet; }
/**
* <p> The type of object in TargetId.</p>
*/
inline void SetTargetType(const Aws::String& value) { m_targetTypeHasBeenSet = true; m_targetType = value; }
/**
* <p> The type of object in TargetId.</p>
*/
inline void SetTargetType(Aws::String&& value) { m_targetTypeHasBeenSet = true; m_targetType = std::move(value); }
/**
* <p> The type of object in TargetId.</p>
*/
inline void SetTargetType(const char* value) { m_targetTypeHasBeenSet = true; m_targetType.assign(value); }
/**
* <p> The type of object in TargetId.</p>
*/
inline ReviewActionDetail& WithTargetType(const Aws::String& value) { SetTargetType(value); return *this;}
/**
* <p> The type of object in TargetId.</p>
*/
inline ReviewActionDetail& WithTargetType(Aws::String&& value) { SetTargetType(std::move(value)); return *this;}
/**
* <p> The type of object in TargetId.</p>
*/
inline ReviewActionDetail& WithTargetType(const char* value) { SetTargetType(value); return *this;}
/**
* <p> The current disposition of the action: INTENDED, SUCCEEDED, FAILED, or
* CANCELLED. </p>
*/
inline const ReviewActionStatus& GetStatus() const{ return m_status; }
/**
* <p> The current disposition of the action: INTENDED, SUCCEEDED, FAILED, or
* CANCELLED. </p>
*/
inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
/**
* <p> The current disposition of the action: INTENDED, SUCCEEDED, FAILED, or
* CANCELLED. </p>
*/
inline void SetStatus(const ReviewActionStatus& value) { m_statusHasBeenSet = true; m_status = value; }
/**
* <p> The current disposition of the action: INTENDED, SUCCEEDED, FAILED, or
* CANCELLED. </p>
*/
inline void SetStatus(ReviewActionStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
/**
* <p> The current disposition of the action: INTENDED, SUCCEEDED, FAILED, or
* CANCELLED. </p>
*/
inline ReviewActionDetail& WithStatus(const ReviewActionStatus& value) { SetStatus(value); return *this;}
/**
* <p> The current disposition of the action: INTENDED, SUCCEEDED, FAILED, or
* CANCELLED. </p>
*/
inline ReviewActionDetail& WithStatus(ReviewActionStatus&& value) { SetStatus(std::move(value)); return *this;}
/**
* <p> The date when the action was completed.</p>
*/
inline const Aws::Utils::DateTime& GetCompleteTime() const{ return m_completeTime; }
/**
* <p> The date when the action was completed.</p>
*/
inline bool CompleteTimeHasBeenSet() const { return m_completeTimeHasBeenSet; }
/**
* <p> The date when the action was completed.</p>
*/
inline void SetCompleteTime(const Aws::Utils::DateTime& value) { m_completeTimeHasBeenSet = true; m_completeTime = value; }
/**
* <p> The date when the action was completed.</p>
*/
inline void SetCompleteTime(Aws::Utils::DateTime&& value) { m_completeTimeHasBeenSet = true; m_completeTime = std::move(value); }
/**
* <p> The date when the action was completed.</p>
*/
inline ReviewActionDetail& WithCompleteTime(const Aws::Utils::DateTime& value) { SetCompleteTime(value); return *this;}
/**
* <p> The date when the action was completed.</p>
*/
inline ReviewActionDetail& WithCompleteTime(Aws::Utils::DateTime&& value) { SetCompleteTime(std::move(value)); return *this;}
/**
* <p> A description of the outcome of the review.</p>
*/
inline const Aws::String& GetResult() const{ return m_result; }
/**
* <p> A description of the outcome of the review.</p>
*/
inline bool ResultHasBeenSet() const { return m_resultHasBeenSet; }
/**
* <p> A description of the outcome of the review.</p>
*/
inline void SetResult(const Aws::String& value) { m_resultHasBeenSet = true; m_result = value; }
/**
* <p> A description of the outcome of the review.</p>
*/
inline void SetResult(Aws::String&& value) { m_resultHasBeenSet = true; m_result = std::move(value); }
/**
* <p> A description of the outcome of the review.</p>
*/
inline void SetResult(const char* value) { m_resultHasBeenSet = true; m_result.assign(value); }
/**
* <p> A description of the outcome of the review.</p>
*/
inline ReviewActionDetail& WithResult(const Aws::String& value) { SetResult(value); return *this;}
/**
* <p> A description of the outcome of the review.</p>
*/
inline ReviewActionDetail& WithResult(Aws::String&& value) { SetResult(std::move(value)); return *this;}
/**
* <p> A description of the outcome of the review.</p>
*/
inline ReviewActionDetail& WithResult(const char* value) { SetResult(value); return *this;}
/**
* <p> Present only when the Results have a FAILED Status.</p>
*/
inline const Aws::String& GetErrorCode() const{ return m_errorCode; }
/**
* <p> Present only when the Results have a FAILED Status.</p>
*/
inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
/**
* <p> Present only when the Results have a FAILED Status.</p>
*/
inline void SetErrorCode(const Aws::String& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
/**
* <p> Present only when the Results have a FAILED Status.</p>
*/
inline void SetErrorCode(Aws::String&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); }
/**
* <p> Present only when the Results have a FAILED Status.</p>
*/
inline void SetErrorCode(const char* value) { m_errorCodeHasBeenSet = true; m_errorCode.assign(value); }
/**
* <p> Present only when the Results have a FAILED Status.</p>
*/
inline ReviewActionDetail& WithErrorCode(const Aws::String& value) { SetErrorCode(value); return *this;}
/**
* <p> Present only when the Results have a FAILED Status.</p>
*/
inline ReviewActionDetail& WithErrorCode(Aws::String&& value) { SetErrorCode(std::move(value)); return *this;}
/**
* <p> Present only when the Results have a FAILED Status.</p>
*/
inline ReviewActionDetail& WithErrorCode(const char* value) { SetErrorCode(value); return *this;}
private:
Aws::String m_actionId;
bool m_actionIdHasBeenSet;
Aws::String m_actionName;
bool m_actionNameHasBeenSet;
Aws::String m_targetId;
bool m_targetIdHasBeenSet;
Aws::String m_targetType;
bool m_targetTypeHasBeenSet;
ReviewActionStatus m_status;
bool m_statusHasBeenSet;
Aws::Utils::DateTime m_completeTime;
bool m_completeTimeHasBeenSet;
Aws::String m_result;
bool m_resultHasBeenSet;
Aws::String m_errorCode;
bool m_errorCodeHasBeenSet;
};
} // namespace Model
} // namespace MTurk
} // namespace Aws

View File

@@ -0,0 +1,33 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace MTurk
{
namespace Model
{
enum class ReviewActionStatus
{
NOT_SET,
Intended,
Succeeded,
Failed,
Cancelled
};
namespace ReviewActionStatusMapper
{
AWS_MTURK_API ReviewActionStatus GetReviewActionStatusForName(const Aws::String& name);
AWS_MTURK_API Aws::String GetNameForReviewActionStatus(ReviewActionStatus value);
} // namespace ReviewActionStatusMapper
} // namespace Model
} // namespace MTurk
} // namespace Aws

View File

@@ -0,0 +1,143 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/mturk-requester/model/PolicyParameter.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace MTurk
{
namespace Model
{
/**
* <p> HIT Review Policy data structures represent HIT review policies, which you
* specify when you create a HIT. </p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ReviewPolicy">AWS
* API Reference</a></p>
*/
class AWS_MTURK_API ReviewPolicy
{
public:
ReviewPolicy();
ReviewPolicy(Aws::Utils::Json::JsonView jsonValue);
ReviewPolicy& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p> Name of a Review Policy: SimplePlurality/2011-09-01 or
* ScoreMyKnownAnswers/2011-09-01 </p>
*/
inline const Aws::String& GetPolicyName() const{ return m_policyName; }
/**
* <p> Name of a Review Policy: SimplePlurality/2011-09-01 or
* ScoreMyKnownAnswers/2011-09-01 </p>
*/
inline bool PolicyNameHasBeenSet() const { return m_policyNameHasBeenSet; }
/**
* <p> Name of a Review Policy: SimplePlurality/2011-09-01 or
* ScoreMyKnownAnswers/2011-09-01 </p>
*/
inline void SetPolicyName(const Aws::String& value) { m_policyNameHasBeenSet = true; m_policyName = value; }
/**
* <p> Name of a Review Policy: SimplePlurality/2011-09-01 or
* ScoreMyKnownAnswers/2011-09-01 </p>
*/
inline void SetPolicyName(Aws::String&& value) { m_policyNameHasBeenSet = true; m_policyName = std::move(value); }
/**
* <p> Name of a Review Policy: SimplePlurality/2011-09-01 or
* ScoreMyKnownAnswers/2011-09-01 </p>
*/
inline void SetPolicyName(const char* value) { m_policyNameHasBeenSet = true; m_policyName.assign(value); }
/**
* <p> Name of a Review Policy: SimplePlurality/2011-09-01 or
* ScoreMyKnownAnswers/2011-09-01 </p>
*/
inline ReviewPolicy& WithPolicyName(const Aws::String& value) { SetPolicyName(value); return *this;}
/**
* <p> Name of a Review Policy: SimplePlurality/2011-09-01 or
* ScoreMyKnownAnswers/2011-09-01 </p>
*/
inline ReviewPolicy& WithPolicyName(Aws::String&& value) { SetPolicyName(std::move(value)); return *this;}
/**
* <p> Name of a Review Policy: SimplePlurality/2011-09-01 or
* ScoreMyKnownAnswers/2011-09-01 </p>
*/
inline ReviewPolicy& WithPolicyName(const char* value) { SetPolicyName(value); return *this;}
/**
* <p>Name of the parameter from the Review policy.</p>
*/
inline const Aws::Vector<PolicyParameter>& GetParameters() const{ return m_parameters; }
/**
* <p>Name of the parameter from the Review policy.</p>
*/
inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
/**
* <p>Name of the parameter from the Review policy.</p>
*/
inline void SetParameters(const Aws::Vector<PolicyParameter>& value) { m_parametersHasBeenSet = true; m_parameters = value; }
/**
* <p>Name of the parameter from the Review policy.</p>
*/
inline void SetParameters(Aws::Vector<PolicyParameter>&& value) { m_parametersHasBeenSet = true; m_parameters = std::move(value); }
/**
* <p>Name of the parameter from the Review policy.</p>
*/
inline ReviewPolicy& WithParameters(const Aws::Vector<PolicyParameter>& value) { SetParameters(value); return *this;}
/**
* <p>Name of the parameter from the Review policy.</p>
*/
inline ReviewPolicy& WithParameters(Aws::Vector<PolicyParameter>&& value) { SetParameters(std::move(value)); return *this;}
/**
* <p>Name of the parameter from the Review policy.</p>
*/
inline ReviewPolicy& AddParameters(const PolicyParameter& value) { m_parametersHasBeenSet = true; m_parameters.push_back(value); return *this; }
/**
* <p>Name of the parameter from the Review policy.</p>
*/
inline ReviewPolicy& AddParameters(PolicyParameter&& value) { m_parametersHasBeenSet = true; m_parameters.push_back(std::move(value)); return *this; }
private:
Aws::String m_policyName;
bool m_policyNameHasBeenSet;
Aws::Vector<PolicyParameter> m_parameters;
bool m_parametersHasBeenSet;
};
} // namespace Model
} // namespace MTurk
} // namespace Aws

View File

@@ -0,0 +1,31 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace MTurk
{
namespace Model
{
enum class ReviewPolicyLevel
{
NOT_SET,
Assignment,
HIT
};
namespace ReviewPolicyLevelMapper
{
AWS_MTURK_API ReviewPolicyLevel GetReviewPolicyLevelForName(const Aws::String& name);
AWS_MTURK_API Aws::String GetNameForReviewPolicyLevel(ReviewPolicyLevel value);
} // namespace ReviewPolicyLevelMapper
} // namespace Model
} // namespace MTurk
} // namespace Aws

View File

@@ -0,0 +1,151 @@
/**
* 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/core/utils/memory/stl/AWSVector.h>
#include <aws/mturk-requester/model/ReviewResultDetail.h>
#include <aws/mturk-requester/model/ReviewActionDetail.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace MTurk
{
namespace Model
{
/**
* <p> Contains both ReviewResult and ReviewAction elements for a particular HIT.
* </p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ReviewReport">AWS
* API Reference</a></p>
*/
class AWS_MTURK_API ReviewReport
{
public:
ReviewReport();
ReviewReport(Aws::Utils::Json::JsonView jsonValue);
ReviewReport& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p> A list of ReviewResults objects for each action specified in the Review
* Policy. </p>
*/
inline const Aws::Vector<ReviewResultDetail>& GetReviewResults() const{ return m_reviewResults; }
/**
* <p> A list of ReviewResults objects for each action specified in the Review
* Policy. </p>
*/
inline bool ReviewResultsHasBeenSet() const { return m_reviewResultsHasBeenSet; }
/**
* <p> A list of ReviewResults objects for each action specified in the Review
* Policy. </p>
*/
inline void SetReviewResults(const Aws::Vector<ReviewResultDetail>& value) { m_reviewResultsHasBeenSet = true; m_reviewResults = value; }
/**
* <p> A list of ReviewResults objects for each action specified in the Review
* Policy. </p>
*/
inline void SetReviewResults(Aws::Vector<ReviewResultDetail>&& value) { m_reviewResultsHasBeenSet = true; m_reviewResults = std::move(value); }
/**
* <p> A list of ReviewResults objects for each action specified in the Review
* Policy. </p>
*/
inline ReviewReport& WithReviewResults(const Aws::Vector<ReviewResultDetail>& value) { SetReviewResults(value); return *this;}
/**
* <p> A list of ReviewResults objects for each action specified in the Review
* Policy. </p>
*/
inline ReviewReport& WithReviewResults(Aws::Vector<ReviewResultDetail>&& value) { SetReviewResults(std::move(value)); return *this;}
/**
* <p> A list of ReviewResults objects for each action specified in the Review
* Policy. </p>
*/
inline ReviewReport& AddReviewResults(const ReviewResultDetail& value) { m_reviewResultsHasBeenSet = true; m_reviewResults.push_back(value); return *this; }
/**
* <p> A list of ReviewResults objects for each action specified in the Review
* Policy. </p>
*/
inline ReviewReport& AddReviewResults(ReviewResultDetail&& value) { m_reviewResultsHasBeenSet = true; m_reviewResults.push_back(std::move(value)); return *this; }
/**
* <p> A list of ReviewAction objects for each action specified in the Review
* Policy. </p>
*/
inline const Aws::Vector<ReviewActionDetail>& GetReviewActions() const{ return m_reviewActions; }
/**
* <p> A list of ReviewAction objects for each action specified in the Review
* Policy. </p>
*/
inline bool ReviewActionsHasBeenSet() const { return m_reviewActionsHasBeenSet; }
/**
* <p> A list of ReviewAction objects for each action specified in the Review
* Policy. </p>
*/
inline void SetReviewActions(const Aws::Vector<ReviewActionDetail>& value) { m_reviewActionsHasBeenSet = true; m_reviewActions = value; }
/**
* <p> A list of ReviewAction objects for each action specified in the Review
* Policy. </p>
*/
inline void SetReviewActions(Aws::Vector<ReviewActionDetail>&& value) { m_reviewActionsHasBeenSet = true; m_reviewActions = std::move(value); }
/**
* <p> A list of ReviewAction objects for each action specified in the Review
* Policy. </p>
*/
inline ReviewReport& WithReviewActions(const Aws::Vector<ReviewActionDetail>& value) { SetReviewActions(value); return *this;}
/**
* <p> A list of ReviewAction objects for each action specified in the Review
* Policy. </p>
*/
inline ReviewReport& WithReviewActions(Aws::Vector<ReviewActionDetail>&& value) { SetReviewActions(std::move(value)); return *this;}
/**
* <p> A list of ReviewAction objects for each action specified in the Review
* Policy. </p>
*/
inline ReviewReport& AddReviewActions(const ReviewActionDetail& value) { m_reviewActionsHasBeenSet = true; m_reviewActions.push_back(value); return *this; }
/**
* <p> A list of ReviewAction objects for each action specified in the Review
* Policy. </p>
*/
inline ReviewReport& AddReviewActions(ReviewActionDetail&& value) { m_reviewActionsHasBeenSet = true; m_reviewActions.push_back(std::move(value)); return *this; }
private:
Aws::Vector<ReviewResultDetail> m_reviewResults;
bool m_reviewResultsHasBeenSet;
Aws::Vector<ReviewActionDetail> m_reviewActions;
bool m_reviewActionsHasBeenSet;
};
} // namespace Model
} // namespace MTurk
} // namespace Aws

View File

@@ -0,0 +1,373 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace MTurk
{
namespace Model
{
/**
* <p> This data structure is returned multiple times for each result specified in
* the Review Policy. </p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ReviewResultDetail">AWS
* API Reference</a></p>
*/
class AWS_MTURK_API ReviewResultDetail
{
public:
ReviewResultDetail();
ReviewResultDetail(Aws::Utils::Json::JsonView jsonValue);
ReviewResultDetail& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p> A unique identifier of the Review action result. </p>
*/
inline const Aws::String& GetActionId() const{ return m_actionId; }
/**
* <p> A unique identifier of the Review action result. </p>
*/
inline bool ActionIdHasBeenSet() const { return m_actionIdHasBeenSet; }
/**
* <p> A unique identifier of the Review action result. </p>
*/
inline void SetActionId(const Aws::String& value) { m_actionIdHasBeenSet = true; m_actionId = value; }
/**
* <p> A unique identifier of the Review action result. </p>
*/
inline void SetActionId(Aws::String&& value) { m_actionIdHasBeenSet = true; m_actionId = std::move(value); }
/**
* <p> A unique identifier of the Review action result. </p>
*/
inline void SetActionId(const char* value) { m_actionIdHasBeenSet = true; m_actionId.assign(value); }
/**
* <p> A unique identifier of the Review action result. </p>
*/
inline ReviewResultDetail& WithActionId(const Aws::String& value) { SetActionId(value); return *this;}
/**
* <p> A unique identifier of the Review action result. </p>
*/
inline ReviewResultDetail& WithActionId(Aws::String&& value) { SetActionId(std::move(value)); return *this;}
/**
* <p> A unique identifier of the Review action result. </p>
*/
inline ReviewResultDetail& WithActionId(const char* value) { SetActionId(value); return *this;}
/**
* <p>The HITID or AssignmentId about which this result was taken. Note that
* HIT-level Review Policies will often emit results about both the HIT itself and
* its Assignments, while Assignment-level review policies generally only emit
* results about the Assignment itself. </p>
*/
inline const Aws::String& GetSubjectId() const{ return m_subjectId; }
/**
* <p>The HITID or AssignmentId about which this result was taken. Note that
* HIT-level Review Policies will often emit results about both the HIT itself and
* its Assignments, while Assignment-level review policies generally only emit
* results about the Assignment itself. </p>
*/
inline bool SubjectIdHasBeenSet() const { return m_subjectIdHasBeenSet; }
/**
* <p>The HITID or AssignmentId about which this result was taken. Note that
* HIT-level Review Policies will often emit results about both the HIT itself and
* its Assignments, while Assignment-level review policies generally only emit
* results about the Assignment itself. </p>
*/
inline void SetSubjectId(const Aws::String& value) { m_subjectIdHasBeenSet = true; m_subjectId = value; }
/**
* <p>The HITID or AssignmentId about which this result was taken. Note that
* HIT-level Review Policies will often emit results about both the HIT itself and
* its Assignments, while Assignment-level review policies generally only emit
* results about the Assignment itself. </p>
*/
inline void SetSubjectId(Aws::String&& value) { m_subjectIdHasBeenSet = true; m_subjectId = std::move(value); }
/**
* <p>The HITID or AssignmentId about which this result was taken. Note that
* HIT-level Review Policies will often emit results about both the HIT itself and
* its Assignments, while Assignment-level review policies generally only emit
* results about the Assignment itself. </p>
*/
inline void SetSubjectId(const char* value) { m_subjectIdHasBeenSet = true; m_subjectId.assign(value); }
/**
* <p>The HITID or AssignmentId about which this result was taken. Note that
* HIT-level Review Policies will often emit results about both the HIT itself and
* its Assignments, while Assignment-level review policies generally only emit
* results about the Assignment itself. </p>
*/
inline ReviewResultDetail& WithSubjectId(const Aws::String& value) { SetSubjectId(value); return *this;}
/**
* <p>The HITID or AssignmentId about which this result was taken. Note that
* HIT-level Review Policies will often emit results about both the HIT itself and
* its Assignments, while Assignment-level review policies generally only emit
* results about the Assignment itself. </p>
*/
inline ReviewResultDetail& WithSubjectId(Aws::String&& value) { SetSubjectId(std::move(value)); return *this;}
/**
* <p>The HITID or AssignmentId about which this result was taken. Note that
* HIT-level Review Policies will often emit results about both the HIT itself and
* its Assignments, while Assignment-level review policies generally only emit
* results about the Assignment itself. </p>
*/
inline ReviewResultDetail& WithSubjectId(const char* value) { SetSubjectId(value); return *this;}
/**
* <p> The type of the object from the SubjectId field.</p>
*/
inline const Aws::String& GetSubjectType() const{ return m_subjectType; }
/**
* <p> The type of the object from the SubjectId field.</p>
*/
inline bool SubjectTypeHasBeenSet() const { return m_subjectTypeHasBeenSet; }
/**
* <p> The type of the object from the SubjectId field.</p>
*/
inline void SetSubjectType(const Aws::String& value) { m_subjectTypeHasBeenSet = true; m_subjectType = value; }
/**
* <p> The type of the object from the SubjectId field.</p>
*/
inline void SetSubjectType(Aws::String&& value) { m_subjectTypeHasBeenSet = true; m_subjectType = std::move(value); }
/**
* <p> The type of the object from the SubjectId field.</p>
*/
inline void SetSubjectType(const char* value) { m_subjectTypeHasBeenSet = true; m_subjectType.assign(value); }
/**
* <p> The type of the object from the SubjectId field.</p>
*/
inline ReviewResultDetail& WithSubjectType(const Aws::String& value) { SetSubjectType(value); return *this;}
/**
* <p> The type of the object from the SubjectId field.</p>
*/
inline ReviewResultDetail& WithSubjectType(Aws::String&& value) { SetSubjectType(std::move(value)); return *this;}
/**
* <p> The type of the object from the SubjectId field.</p>
*/
inline ReviewResultDetail& WithSubjectType(const char* value) { SetSubjectType(value); return *this;}
/**
* <p> Specifies the QuestionId the result is describing. Depending on whether the
* TargetType is a HIT or Assignment this results could specify multiple values. If
* TargetType is HIT and QuestionId is absent, then the result describes results of
* the HIT, including the HIT agreement score. If ObjectType is Assignment and
* QuestionId is absent, then the result describes the Worker's performance on the
* HIT. </p>
*/
inline const Aws::String& GetQuestionId() const{ return m_questionId; }
/**
* <p> Specifies the QuestionId the result is describing. Depending on whether the
* TargetType is a HIT or Assignment this results could specify multiple values. If
* TargetType is HIT and QuestionId is absent, then the result describes results of
* the HIT, including the HIT agreement score. If ObjectType is Assignment and
* QuestionId is absent, then the result describes the Worker's performance on the
* HIT. </p>
*/
inline bool QuestionIdHasBeenSet() const { return m_questionIdHasBeenSet; }
/**
* <p> Specifies the QuestionId the result is describing. Depending on whether the
* TargetType is a HIT or Assignment this results could specify multiple values. If
* TargetType is HIT and QuestionId is absent, then the result describes results of
* the HIT, including the HIT agreement score. If ObjectType is Assignment and
* QuestionId is absent, then the result describes the Worker's performance on the
* HIT. </p>
*/
inline void SetQuestionId(const Aws::String& value) { m_questionIdHasBeenSet = true; m_questionId = value; }
/**
* <p> Specifies the QuestionId the result is describing. Depending on whether the
* TargetType is a HIT or Assignment this results could specify multiple values. If
* TargetType is HIT and QuestionId is absent, then the result describes results of
* the HIT, including the HIT agreement score. If ObjectType is Assignment and
* QuestionId is absent, then the result describes the Worker's performance on the
* HIT. </p>
*/
inline void SetQuestionId(Aws::String&& value) { m_questionIdHasBeenSet = true; m_questionId = std::move(value); }
/**
* <p> Specifies the QuestionId the result is describing. Depending on whether the
* TargetType is a HIT or Assignment this results could specify multiple values. If
* TargetType is HIT and QuestionId is absent, then the result describes results of
* the HIT, including the HIT agreement score. If ObjectType is Assignment and
* QuestionId is absent, then the result describes the Worker's performance on the
* HIT. </p>
*/
inline void SetQuestionId(const char* value) { m_questionIdHasBeenSet = true; m_questionId.assign(value); }
/**
* <p> Specifies the QuestionId the result is describing. Depending on whether the
* TargetType is a HIT or Assignment this results could specify multiple values. If
* TargetType is HIT and QuestionId is absent, then the result describes results of
* the HIT, including the HIT agreement score. If ObjectType is Assignment and
* QuestionId is absent, then the result describes the Worker's performance on the
* HIT. </p>
*/
inline ReviewResultDetail& WithQuestionId(const Aws::String& value) { SetQuestionId(value); return *this;}
/**
* <p> Specifies the QuestionId the result is describing. Depending on whether the
* TargetType is a HIT or Assignment this results could specify multiple values. If
* TargetType is HIT and QuestionId is absent, then the result describes results of
* the HIT, including the HIT agreement score. If ObjectType is Assignment and
* QuestionId is absent, then the result describes the Worker's performance on the
* HIT. </p>
*/
inline ReviewResultDetail& WithQuestionId(Aws::String&& value) { SetQuestionId(std::move(value)); return *this;}
/**
* <p> Specifies the QuestionId the result is describing. Depending on whether the
* TargetType is a HIT or Assignment this results could specify multiple values. If
* TargetType is HIT and QuestionId is absent, then the result describes results of
* the HIT, including the HIT agreement score. If ObjectType is Assignment and
* QuestionId is absent, then the result describes the Worker's performance on the
* HIT. </p>
*/
inline ReviewResultDetail& WithQuestionId(const char* value) { SetQuestionId(value); return *this;}
/**
* <p> Key identifies the particular piece of reviewed information. </p>
*/
inline const Aws::String& GetKey() const{ return m_key; }
/**
* <p> Key identifies the particular piece of reviewed information. </p>
*/
inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
/**
* <p> Key identifies the particular piece of reviewed information. </p>
*/
inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
/**
* <p> Key identifies the particular piece of reviewed information. </p>
*/
inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
/**
* <p> Key identifies the particular piece of reviewed information. </p>
*/
inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
/**
* <p> Key identifies the particular piece of reviewed information. </p>
*/
inline ReviewResultDetail& WithKey(const Aws::String& value) { SetKey(value); return *this;}
/**
* <p> Key identifies the particular piece of reviewed information. </p>
*/
inline ReviewResultDetail& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
/**
* <p> Key identifies the particular piece of reviewed information. </p>
*/
inline ReviewResultDetail& WithKey(const char* value) { SetKey(value); return *this;}
/**
* <p> The values of Key provided by the review policies you have selected. </p>
*/
inline const Aws::String& GetValue() const{ return m_value; }
/**
* <p> The values of Key provided by the review policies you have selected. </p>
*/
inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
/**
* <p> The values of Key provided by the review policies you have selected. </p>
*/
inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
/**
* <p> The values of Key provided by the review policies you have selected. </p>
*/
inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
/**
* <p> The values of Key provided by the review policies you have selected. </p>
*/
inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
/**
* <p> The values of Key provided by the review policies you have selected. </p>
*/
inline ReviewResultDetail& WithValue(const Aws::String& value) { SetValue(value); return *this;}
/**
* <p> The values of Key provided by the review policies you have selected. </p>
*/
inline ReviewResultDetail& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
/**
* <p> The values of Key provided by the review policies you have selected. </p>
*/
inline ReviewResultDetail& WithValue(const char* value) { SetValue(value); return *this;}
private:
Aws::String m_actionId;
bool m_actionIdHasBeenSet;
Aws::String m_subjectId;
bool m_subjectIdHasBeenSet;
Aws::String m_subjectType;
bool m_subjectTypeHasBeenSet;
Aws::String m_questionId;
bool m_questionIdHasBeenSet;
Aws::String m_key;
bool m_keyHasBeenSet;
Aws::String m_value;
bool m_valueHasBeenSet;
};
} // namespace Model
} // namespace MTurk
} // namespace Aws

Some files were not shown because too many files have changed in this diff Show More