Interface HIT.Builder
- All Superinterfaces:
- Buildable,- CopyableBuilder<HIT.Builder,,- HIT> - SdkBuilder<HIT.Builder,,- HIT> - SdkPojo
- Enclosing class:
- HIT
- 
Method SummaryModifier and TypeMethodDescriptionassignmentDurationInSeconds(Long assignmentDurationInSeconds) The length of time, in seconds, that a Worker has to complete the HIT after accepting it.autoApprovalDelayInSeconds(Long 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.creationTime(Instant creationTime) The date and time the HIT was created.description(String description) A general description of the HIT.expiration(Instant expiration) The date and time the HIT expires.hitGroupId(String hitGroupId) The ID of the HIT Group of this HIT.A unique identifier for the HIT.hitLayoutId(String hitLayoutId) The ID of the HIT Layout of this HIT.hitReviewStatus(String hitReviewStatus) Indicates the review status of the HIT.hitReviewStatus(HITReviewStatus hitReviewStatus) Indicates the review status of the HIT.The status of the HIT and its assignments.The status of the HIT and its assignments.The ID of the HIT type of this HITOne or more words or phrases that describe the HIT, separated by commas.maxAssignments(Integer maxAssignments) The number of times the HIT can be accepted and completed before the HIT becomes unavailable.numberOfAssignmentsAvailable(Integer numberOfAssignmentsAvailable) The number of assignments for this HIT that are available for Workers to accept.numberOfAssignmentsCompleted(Integer numberOfAssignmentsCompleted) The number of assignments for this HIT that have been approved or rejected.numberOfAssignmentsPending(Integer 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.qualificationRequirements(Collection<QualificationRequirement> qualificationRequirements) Conditions that a Worker's Qualifications must meet in order to accept the HIT.qualificationRequirements(Consumer<QualificationRequirement.Builder>... qualificationRequirements) Conditions that a Worker's Qualifications must meet in order to accept the HIT.qualificationRequirements(QualificationRequirement... qualificationRequirements) Conditions that a Worker's Qualifications must meet in order to accept the HIT.The data the Worker completing the HIT uses produce the results.requesterAnnotation(String requesterAnnotation) An arbitrary data field the Requester who created the HIT can use.Sets the value of the Reward property for this object.The title of the HIT.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuildercopyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilderapplyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojoequalsBySdkFields, sdkFieldNameToField, sdkFields
- 
Method Details- 
hitIdA unique identifier for the HIT. - Parameters:
- hitId- A unique identifier for the HIT.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
hitTypeIdThe ID of the HIT type of this HIT - Parameters:
- hitTypeId- The ID of the HIT type of this HIT
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
hitGroupIdThe ID of the HIT Group of this HIT. - Parameters:
- hitGroupId- The ID of the HIT Group of this HIT.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
hitLayoutIdThe ID of the HIT Layout of this HIT. - Parameters:
- hitLayoutId- The ID of the HIT Layout of this HIT.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
creationTimeThe date and time the HIT was created. - Parameters:
- creationTime- The date and time the HIT was created.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
titleThe title of the HIT. - Parameters:
- title- The title of the HIT.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
descriptionA general description of the HIT. - Parameters:
- description- A general description of the HIT.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
questionThe data the Worker completing the HIT uses produce the results. This is either either a QuestionForm, HTMLQuestion or an ExternalQuestion data structure. - Parameters:
- 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:
- Returns a reference to this object so that method calls can be chained together.
 
- 
keywordsOne 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. - Parameters:
- 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:
- Returns a reference to this object so that method calls can be chained together.
 
- 
hitStatusThe status of the HIT and its assignments. Valid Values are Assignable | Unassignable | Reviewable | Reviewing | Disposed. - Parameters:
- hitStatus- The status of the HIT and its assignments. Valid Values are Assignable | Unassignable | Reviewable | Reviewing | Disposed.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
hitStatusThe status of the HIT and its assignments. Valid Values are Assignable | Unassignable | Reviewable | Reviewing | Disposed. - Parameters:
- hitStatus- The status of the HIT and its assignments. Valid Values are Assignable | Unassignable | Reviewable | Reviewing | Disposed.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
maxAssignmentsThe number of times the HIT can be accepted and completed before the HIT becomes unavailable. - Parameters:
- maxAssignments- The number of times the HIT can be accepted and completed before the HIT becomes unavailable.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
rewardSets the value of the Reward property for this object.- Parameters:
- reward- The new value for the Reward property for this object.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
autoApprovalDelayInSecondsThe 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. - Parameters:
- 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:
- Returns a reference to this object so that method calls can be chained together.
 
- 
expirationThe date and time the HIT expires. - Parameters:
- expiration- The date and time the HIT expires.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
assignmentDurationInSecondsThe length of time, in seconds, that a Worker has to complete the HIT after accepting it. - Parameters:
- assignmentDurationInSeconds- The length of time, in seconds, that a Worker has to complete the HIT after accepting it.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
requesterAnnotationAn arbitrary data field the Requester who created the HIT can use. This field is visible only to the creator of the HIT. - Parameters:
- 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:
- Returns a reference to this object so that method calls can be chained together.
 
- 
qualificationRequirementsHIT.Builder qualificationRequirements(Collection<QualificationRequirement> 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.- Parameters:
- 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 each- QualificationRequirementstructure.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
qualificationRequirementsConditions 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.- Parameters:
- 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 each- QualificationRequirementstructure.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
qualificationRequirementsHIT.Builder qualificationRequirements(Consumer<QualificationRequirement.Builder>... 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 This is a convenience method that creates an instance of theActionsGuardedfield on eachQualificationRequirementstructure.QualificationRequirement.Builderavoiding the need to create one manually viaQualificationRequirement.builder().When the Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toqualificationRequirements(List<QualificationRequirement>).- Parameters:
- qualificationRequirements- a consumer that will call methods on- QualificationRequirement.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
hitReviewStatusIndicates the review status of the HIT. Valid Values are NotReviewed | MarkedForReview | ReviewedAppropriate | ReviewedInappropriate. - Parameters:
- hitReviewStatus- Indicates the review status of the HIT. Valid Values are NotReviewed | MarkedForReview | ReviewedAppropriate | ReviewedInappropriate.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
hitReviewStatusIndicates the review status of the HIT. Valid Values are NotReviewed | MarkedForReview | ReviewedAppropriate | ReviewedInappropriate. - Parameters:
- hitReviewStatus- Indicates the review status of the HIT. Valid Values are NotReviewed | MarkedForReview | ReviewedAppropriate | ReviewedInappropriate.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
numberOfAssignmentsPendingThe 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. - Parameters:
- 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:
- Returns a reference to this object so that method calls can be chained together.
 
- 
numberOfAssignmentsAvailableThe number of assignments for this HIT that are available for Workers to accept. - Parameters:
- numberOfAssignmentsAvailable- The number of assignments for this HIT that are available for Workers to accept.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
numberOfAssignmentsCompletedThe number of assignments for this HIT that have been approved or rejected. - Parameters:
- numberOfAssignmentsCompleted- The number of assignments for this HIT that have been approved or rejected.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
 
-