Interface HIT.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<HIT.Builder,
,HIT> SdkBuilder<HIT.Builder,
,HIT> SdkPojo
- Enclosing class:
HIT
-
Method Summary
Modifier 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.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
hitId
A 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.
-
hitTypeId
The 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.
-
hitGroupId
The 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.
-
hitLayoutId
The 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.
-
creationTime
The 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.
-
title
The 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.
-
description
A 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.
-
question
The 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.
-
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.
- 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.
-
hitStatus
The 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:
-
hitStatus
The 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:
-
maxAssignments
The 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.
-
reward
Sets 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.
-
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.
- 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.
-
expiration
The 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.
-
assignmentDurationInSeconds
The 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.
-
requesterAnnotation
An 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.
-
qualificationRequirements
HIT.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
ActionsGuarded
field on eachQualificationRequirement
structure.- 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 theActionsGuarded
field on eachQualificationRequirement
structure.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.- 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 theActionsGuarded
field on eachQualificationRequirement
structure.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
qualificationRequirements
HIT.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 theActionsGuarded
field on eachQualificationRequirement
structure.QualificationRequirement.Builder
avoiding the need to create one manually viaQualificationRequirement.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toqualificationRequirements(List<QualificationRequirement>)
.- Parameters:
qualificationRequirements
- a consumer that will call methods onQualificationRequirement.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
hitReviewStatus
Indicates 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:
-
hitReviewStatus
Indicates 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:
-
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.
- 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.
-
numberOfAssignmentsAvailable
The 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.
-
numberOfAssignmentsCompleted
The 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.
-