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 LongThe length of time, in seconds, that a Worker has to complete the HIT after accepting it.final LongThe 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.Builderbuilder()final InstantThe date and time the HIT was created.final StringA general description of the HIT.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final InstantThe date and time the HIT expires.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final booleanFor responses, this returns true if the service returned a value for the QualificationRequirements property.final StringThe ID of the HIT Group of this HIT.final StringhitId()A unique identifier for the HIT.final StringThe ID of the HIT Layout of this HIT.final HITReviewStatusIndicates the review status of the HIT.final StringIndicates the review status of the HIT.final HITStatusThe status of the HIT and its assignments.final StringThe status of the HIT and its assignments.final StringThe ID of the HIT type of this HITfinal Stringkeywords()One or more words or phrases that describe the HIT, separated by commas.final IntegerThe number of times the HIT can be accepted and completed before the HIT becomes unavailable.final IntegerThe number of assignments for this HIT that are available for Workers to accept.final IntegerThe number of assignments for this HIT that have been approved or rejected.final IntegerThe 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 Stringquestion()The data the Worker completing the HIT uses produce the results.final StringAn arbitrary data field the Requester who created the HIT can use.final Stringreward()Returns the value of the Reward property for this object.static Class<? extends HIT.Builder> final Stringtitle()The title of the HIT.Take this object and create a builder that contains all of the current property values of this object.final StringtoString()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,
hitStatuswill 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,
hitStatuswill 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
ActionsGuardedfield on eachQualificationRequirementstructure.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
ActionsGuardedfield on eachQualificationRequirementstructure.
-
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,
hitReviewStatuswill 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,
hitReviewStatuswill 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:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<HIT.Builder,HIT> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin 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
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-