Class HIT
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<HIT.Builder,
HIT>
The HIT data structure represents a single HIT, including all the information necessary for a Worker to accept and complete the HIT.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal Long
The length of time, in seconds, that a Worker has to complete the HIT after accepting it.final Long
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.static HIT.Builder
builder()
final Instant
The date and time the HIT was created.final String
A general description of the HIT.final boolean
final boolean
equalsBySdkFields
(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final Instant
The date and time the HIT expires.final <T> Optional
<T> getValueForField
(String fieldName, Class<T> clazz) final int
hashCode()
final boolean
For responses, this returns true if the service returned a value for the QualificationRequirements property.final String
The ID of the HIT Group of this HIT.final String
hitId()
A unique identifier for the HIT.final String
The ID of the HIT Layout of this HIT.final HITReviewStatus
Indicates the review status of the HIT.final String
Indicates the review status of the HIT.final HITStatus
The status of the HIT and its assignments.final String
The status of the HIT and its assignments.final String
The ID of the HIT type of this HITfinal String
keywords()
One or more words or phrases that describe the HIT, separated by commas.final Integer
The number of times the HIT can be accepted and completed before the HIT becomes unavailable.final Integer
The number of assignments for this HIT that are available for Workers to accept.final Integer
The number of assignments for this HIT that have been approved or rejected.final Integer
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.final List
<QualificationRequirement> Conditions that a Worker's Qualifications must meet in order to accept the HIT.final String
question()
The data the Worker completing the HIT uses produce the results.final String
An arbitrary data field the Requester who created the HIT can use.final String
reward()
Returns the value of the Reward property for this object.static Class
<? extends HIT.Builder> final String
title()
The title of the HIT.Take this object and create a builder that contains all of the current property values of this object.final String
toString()
Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
hitId
A unique identifier for the HIT.
- Returns:
- A unique identifier for the HIT.
-
hitTypeId
The ID of the HIT type of this HIT
- Returns:
- The ID of the HIT type of this HIT
-
hitGroupId
The ID of the HIT Group of this HIT.
- Returns:
- The ID of the HIT Group of this HIT.
-
hitLayoutId
The ID of the HIT Layout of this HIT.
- Returns:
- The ID of the HIT Layout of this HIT.
-
creationTime
The date and time the HIT was created.
- Returns:
- The date and time the HIT was created.
-
title
-
description
A general description of the HIT.
- Returns:
- A general description of the HIT.
-
question
The data the Worker completing the HIT uses produce the results. This is either either a QuestionForm, HTMLQuestion or an ExternalQuestion data structure.
- Returns:
- The data the Worker completing the HIT uses produce the results. This is either either a QuestionForm, HTMLQuestion or an ExternalQuestion data structure.
-
keywords
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.
- Returns:
- 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.
-
hitStatus
The status of the HIT and its assignments. Valid Values are Assignable | Unassignable | Reviewable | Reviewing | Disposed.
If the service returns an enum value that is not available in the current SDK version,
hitStatus
will returnHITStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromhitStatusAsString()
.- Returns:
- The status of the HIT and its assignments. Valid Values are Assignable | Unassignable | Reviewable | Reviewing | Disposed.
- See Also:
-
hitStatusAsString
The status of the HIT and its assignments. Valid Values are Assignable | Unassignable | Reviewable | Reviewing | Disposed.
If the service returns an enum value that is not available in the current SDK version,
hitStatus
will returnHITStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromhitStatusAsString()
.- Returns:
- The status of the HIT and its assignments. Valid Values are Assignable | Unassignable | Reviewable | Reviewing | Disposed.
- See Also:
-
maxAssignments
The number of times the HIT can be accepted and completed before the HIT becomes unavailable.
- Returns:
- The number of times the HIT can be accepted and completed before the HIT becomes unavailable.
-
reward
Returns the value of the Reward property for this object.- Returns:
- The value of the Reward property for this object.
-
autoApprovalDelayInSeconds
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.
- Returns:
- 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.
-
expiration
The date and time the HIT expires.
- Returns:
- The date and time the HIT expires.
-
assignmentDurationInSeconds
The length of time, in seconds, that a Worker has to complete the HIT after accepting it.
- Returns:
- The length of time, in seconds, that a Worker has to complete the HIT after accepting it.
-
requesterAnnotation
An arbitrary data field the Requester who created the HIT can use. This field is visible only to the creator of the HIT.
- Returns:
- An arbitrary data field the Requester who created the HIT can use. This field is visible only to the creator of the HIT.
-
hasQualificationRequirements
public final boolean hasQualificationRequirements()For responses, this returns true if the service returned a value for the QualificationRequirements property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
qualificationRequirements
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
ActionsGuarded
field on eachQualificationRequirement
structure.Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasQualificationRequirements()
method.- Returns:
- 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
ActionsGuarded
field on eachQualificationRequirement
structure.
-
hitReviewStatus
Indicates the review status of the HIT. Valid Values are NotReviewed | MarkedForReview | ReviewedAppropriate | ReviewedInappropriate.
If the service returns an enum value that is not available in the current SDK version,
hitReviewStatus
will returnHITReviewStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromhitReviewStatusAsString()
.- Returns:
- Indicates the review status of the HIT. Valid Values are NotReviewed | MarkedForReview | ReviewedAppropriate | ReviewedInappropriate.
- See Also:
-
hitReviewStatusAsString
Indicates the review status of the HIT. Valid Values are NotReviewed | MarkedForReview | ReviewedAppropriate | ReviewedInappropriate.
If the service returns an enum value that is not available in the current SDK version,
hitReviewStatus
will returnHITReviewStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromhitReviewStatusAsString()
.- Returns:
- Indicates the review status of the HIT. Valid Values are NotReviewed | MarkedForReview | ReviewedAppropriate | ReviewedInappropriate.
- See Also:
-
numberOfAssignmentsPending
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.
- Returns:
- 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.
-
numberOfAssignmentsAvailable
The number of assignments for this HIT that are available for Workers to accept.
- Returns:
- The number of assignments for this HIT that are available for Workers to accept.
-
numberOfAssignmentsCompleted
The number of assignments for this HIT that have been approved or rejected.
- Returns:
- The number of assignments for this HIT that have been approved or rejected.
-
toBuilder
Description copied from interface:ToCopyableBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToCopyableBuilder<HIT.Builder,
HIT> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojo
Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojo
class, and is generated based on a service model.If an
SdkPojo
class does not have any inherited fields,equalsBySdkFields
andequals
are essentially the same.- Specified by:
equalsBySdkFields
in interfaceSdkPojo
- Parameters:
obj
- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-