com.amazonaws.mturk.requester
Class HIT

java.lang.Object
  extended by com.amazonaws.mturk.requester.HIT
All Implemented Interfaces:
java.io.Serializable

public class HIT
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Constructor Summary
HIT()
           
HIT(Request request, java.lang.String HITId, java.lang.String HITTypeId, java.util.Calendar creationTime, java.lang.String title, java.lang.String description, java.lang.String question, java.lang.String keywords, HITStatus HITStatus, java.lang.Integer maxAssignments, Price reward, java.lang.Long autoApprovalDelayInSeconds, java.util.Calendar expiration, java.lang.Long assignmentDurationInSeconds, java.lang.Integer numberOfSimilarHITs, java.lang.String requesterAnnotation, QualificationRequirement[] qualificationRequirement, HITReviewStatus HITReviewStatus, java.lang.Integer numberOfAssignmentsPending, java.lang.Integer numberOfAssignmentsAvailable, java.lang.Integer numberOfAssignmentsCompleted)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.Long getAssignmentDurationInSeconds()
          Gets the assignmentDurationInSeconds value for this HIT.
 java.lang.Long getAutoApprovalDelayInSeconds()
          Gets the autoApprovalDelayInSeconds value for this HIT.
 java.util.Calendar getCreationTime()
          Gets the creationTime value for this HIT.
 java.lang.String getDescription()
          Gets the description value for this HIT.
static org.apache.axis.encoding.Deserializer getDeserializer(java.lang.String mechType, java.lang.Class _javaType, javax.xml.namespace.QName _xmlType)
          Get Custom Deserializer
 java.util.Calendar getExpiration()
          Gets the expiration value for this HIT.
 java.lang.String getHITId()
          Gets the HITId value for this HIT.
 HITReviewStatus getHITReviewStatus()
          Gets the HITReviewStatus value for this HIT.
 HITStatus getHITStatus()
          Gets the HITStatus value for this HIT.
 java.lang.String getHITTypeId()
          Gets the HITTypeId value for this HIT.
 java.lang.String getKeywords()
          Gets the keywords value for this HIT.
 java.lang.Integer getMaxAssignments()
          Gets the maxAssignments value for this HIT.
 java.lang.Integer getNumberOfAssignmentsAvailable()
          Gets the numberOfAssignmentsAvailable value for this HIT.
 java.lang.Integer getNumberOfAssignmentsCompleted()
          Gets the numberOfAssignmentsCompleted value for this HIT.
 java.lang.Integer getNumberOfAssignmentsPending()
          Gets the numberOfAssignmentsPending value for this HIT.
 java.lang.Integer getNumberOfSimilarHITs()
          Gets the numberOfSimilarHITs value for this HIT.
 QualificationRequirement[] getQualificationRequirement()
          Gets the qualificationRequirement value for this HIT.
 QualificationRequirement getQualificationRequirement(int i)
           
 java.lang.String getQuestion()
          Gets the question value for this HIT.
 Request getRequest()
          Gets the request value for this HIT.
 java.lang.String getRequesterAnnotation()
          Gets the requesterAnnotation value for this HIT.
 Price getReward()
          Gets the reward value for this HIT.
static org.apache.axis.encoding.Serializer getSerializer(java.lang.String mechType, java.lang.Class _javaType, javax.xml.namespace.QName _xmlType)
          Get Custom Serializer
 java.lang.String getTitle()
          Gets the title value for this HIT.
static org.apache.axis.description.TypeDesc getTypeDesc()
          Return type metadata object
 int hashCode()
           
 void setAssignmentDurationInSeconds(java.lang.Long assignmentDurationInSeconds)
          Sets the assignmentDurationInSeconds value for this HIT.
 void setAutoApprovalDelayInSeconds(java.lang.Long autoApprovalDelayInSeconds)
          Sets the autoApprovalDelayInSeconds value for this HIT.
 void setCreationTime(java.util.Calendar creationTime)
          Sets the creationTime value for this HIT.
 void setDescription(java.lang.String description)
          Sets the description value for this HIT.
 void setExpiration(java.util.Calendar expiration)
          Sets the expiration value for this HIT.
 void setHITId(java.lang.String HITId)
          Sets the HITId value for this HIT.
 void setHITReviewStatus(HITReviewStatus HITReviewStatus)
          Sets the HITReviewStatus value for this HIT.
 void setHITStatus(HITStatus HITStatus)
          Sets the HITStatus value for this HIT.
 void setHITTypeId(java.lang.String HITTypeId)
          Sets the HITTypeId value for this HIT.
 void setKeywords(java.lang.String keywords)
          Sets the keywords value for this HIT.
 void setMaxAssignments(java.lang.Integer maxAssignments)
          Sets the maxAssignments value for this HIT.
 void setNumberOfAssignmentsAvailable(java.lang.Integer numberOfAssignmentsAvailable)
          Sets the numberOfAssignmentsAvailable value for this HIT.
 void setNumberOfAssignmentsCompleted(java.lang.Integer numberOfAssignmentsCompleted)
          Sets the numberOfAssignmentsCompleted value for this HIT.
 void setNumberOfAssignmentsPending(java.lang.Integer numberOfAssignmentsPending)
          Sets the numberOfAssignmentsPending value for this HIT.
 void setNumberOfSimilarHITs(java.lang.Integer numberOfSimilarHITs)
          Sets the numberOfSimilarHITs value for this HIT.
 void setQualificationRequirement(int i, QualificationRequirement _value)
           
 void setQualificationRequirement(QualificationRequirement[] qualificationRequirement)
          Sets the qualificationRequirement value for this HIT.
 void setQuestion(java.lang.String question)
          Sets the question value for this HIT.
 void setRequest(Request request)
          Sets the request value for this HIT.
 void setRequesterAnnotation(java.lang.String requesterAnnotation)
          Sets the requesterAnnotation value for this HIT.
 void setReward(Price reward)
          Sets the reward value for this HIT.
 void setTitle(java.lang.String title)
          Sets the title value for this HIT.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HIT

public HIT()

HIT

public HIT(Request request,
           java.lang.String HITId,
           java.lang.String HITTypeId,
           java.util.Calendar creationTime,
           java.lang.String title,
           java.lang.String description,
           java.lang.String question,
           java.lang.String keywords,
           HITStatus HITStatus,
           java.lang.Integer maxAssignments,
           Price reward,
           java.lang.Long autoApprovalDelayInSeconds,
           java.util.Calendar expiration,
           java.lang.Long assignmentDurationInSeconds,
           java.lang.Integer numberOfSimilarHITs,
           java.lang.String requesterAnnotation,
           QualificationRequirement[] qualificationRequirement,
           HITReviewStatus HITReviewStatus,
           java.lang.Integer numberOfAssignmentsPending,
           java.lang.Integer numberOfAssignmentsAvailable,
           java.lang.Integer numberOfAssignmentsCompleted)
Method Detail

getRequest

public Request getRequest()
Gets the request value for this HIT.

Returns:
request

setRequest

public void setRequest(Request request)
Sets the request value for this HIT.

Parameters:
request -

getHITId

public java.lang.String getHITId()
Gets the HITId value for this HIT.

Returns:
HITId

setHITId

public void setHITId(java.lang.String HITId)
Sets the HITId value for this HIT.

Parameters:
HITId -

getHITTypeId

public java.lang.String getHITTypeId()
Gets the HITTypeId value for this HIT.

Returns:
HITTypeId

setHITTypeId

public void setHITTypeId(java.lang.String HITTypeId)
Sets the HITTypeId value for this HIT.

Parameters:
HITTypeId -

getCreationTime

public java.util.Calendar getCreationTime()
Gets the creationTime value for this HIT.

Returns:
creationTime

setCreationTime

public void setCreationTime(java.util.Calendar creationTime)
Sets the creationTime value for this HIT.

Parameters:
creationTime -

getTitle

public java.lang.String getTitle()
Gets the title value for this HIT.

Returns:
title

setTitle

public void setTitle(java.lang.String title)
Sets the title value for this HIT.

Parameters:
title -

getDescription

public java.lang.String getDescription()
Gets the description value for this HIT.

Returns:
description

setDescription

public void setDescription(java.lang.String description)
Sets the description value for this HIT.

Parameters:
description -

getQuestion

public java.lang.String getQuestion()
Gets the question value for this HIT.

Returns:
question

setQuestion

public void setQuestion(java.lang.String question)
Sets the question value for this HIT.

Parameters:
question -

getKeywords

public java.lang.String getKeywords()
Gets the keywords value for this HIT.

Returns:
keywords

setKeywords

public void setKeywords(java.lang.String keywords)
Sets the keywords value for this HIT.

Parameters:
keywords -

getHITStatus

public HITStatus getHITStatus()
Gets the HITStatus value for this HIT.

Returns:
HITStatus

setHITStatus

public void setHITStatus(HITStatus HITStatus)
Sets the HITStatus value for this HIT.

Parameters:
HITStatus -

getMaxAssignments

public java.lang.Integer getMaxAssignments()
Gets the maxAssignments value for this HIT.

Returns:
maxAssignments

setMaxAssignments

public void setMaxAssignments(java.lang.Integer maxAssignments)
Sets the maxAssignments value for this HIT.

Parameters:
maxAssignments -

getReward

public Price getReward()
Gets the reward value for this HIT.

Returns:
reward

setReward

public void setReward(Price reward)
Sets the reward value for this HIT.

Parameters:
reward -

getAutoApprovalDelayInSeconds

public java.lang.Long getAutoApprovalDelayInSeconds()
Gets the autoApprovalDelayInSeconds value for this HIT.

Returns:
autoApprovalDelayInSeconds

setAutoApprovalDelayInSeconds

public void setAutoApprovalDelayInSeconds(java.lang.Long autoApprovalDelayInSeconds)
Sets the autoApprovalDelayInSeconds value for this HIT.

Parameters:
autoApprovalDelayInSeconds -

getExpiration

public java.util.Calendar getExpiration()
Gets the expiration value for this HIT.

Returns:
expiration

setExpiration

public void setExpiration(java.util.Calendar expiration)
Sets the expiration value for this HIT.

Parameters:
expiration -

getAssignmentDurationInSeconds

public java.lang.Long getAssignmentDurationInSeconds()
Gets the assignmentDurationInSeconds value for this HIT.

Returns:
assignmentDurationInSeconds

setAssignmentDurationInSeconds

public void setAssignmentDurationInSeconds(java.lang.Long assignmentDurationInSeconds)
Sets the assignmentDurationInSeconds value for this HIT.

Parameters:
assignmentDurationInSeconds -

getNumberOfSimilarHITs

public java.lang.Integer getNumberOfSimilarHITs()
Gets the numberOfSimilarHITs value for this HIT.

Returns:
numberOfSimilarHITs

setNumberOfSimilarHITs

public void setNumberOfSimilarHITs(java.lang.Integer numberOfSimilarHITs)
Sets the numberOfSimilarHITs value for this HIT.

Parameters:
numberOfSimilarHITs -

getRequesterAnnotation

public java.lang.String getRequesterAnnotation()
Gets the requesterAnnotation value for this HIT.

Returns:
requesterAnnotation

setRequesterAnnotation

public void setRequesterAnnotation(java.lang.String requesterAnnotation)
Sets the requesterAnnotation value for this HIT.

Parameters:
requesterAnnotation -

getQualificationRequirement

public QualificationRequirement[] getQualificationRequirement()
Gets the qualificationRequirement value for this HIT.

Returns:
qualificationRequirement

setQualificationRequirement

public void setQualificationRequirement(QualificationRequirement[] qualificationRequirement)
Sets the qualificationRequirement value for this HIT.

Parameters:
qualificationRequirement -

getQualificationRequirement

public QualificationRequirement getQualificationRequirement(int i)

setQualificationRequirement

public void setQualificationRequirement(int i,
                                        QualificationRequirement _value)

getHITReviewStatus

public HITReviewStatus getHITReviewStatus()
Gets the HITReviewStatus value for this HIT.

Returns:
HITReviewStatus

setHITReviewStatus

public void setHITReviewStatus(HITReviewStatus HITReviewStatus)
Sets the HITReviewStatus value for this HIT.

Parameters:
HITReviewStatus -

getNumberOfAssignmentsPending

public java.lang.Integer getNumberOfAssignmentsPending()
Gets the numberOfAssignmentsPending value for this HIT.

Returns:
numberOfAssignmentsPending

setNumberOfAssignmentsPending

public void setNumberOfAssignmentsPending(java.lang.Integer numberOfAssignmentsPending)
Sets the numberOfAssignmentsPending value for this HIT.

Parameters:
numberOfAssignmentsPending -

getNumberOfAssignmentsAvailable

public java.lang.Integer getNumberOfAssignmentsAvailable()
Gets the numberOfAssignmentsAvailable value for this HIT.

Returns:
numberOfAssignmentsAvailable

setNumberOfAssignmentsAvailable

public void setNumberOfAssignmentsAvailable(java.lang.Integer numberOfAssignmentsAvailable)
Sets the numberOfAssignmentsAvailable value for this HIT.

Parameters:
numberOfAssignmentsAvailable -

getNumberOfAssignmentsCompleted

public java.lang.Integer getNumberOfAssignmentsCompleted()
Gets the numberOfAssignmentsCompleted value for this HIT.

Returns:
numberOfAssignmentsCompleted

setNumberOfAssignmentsCompleted

public void setNumberOfAssignmentsCompleted(java.lang.Integer numberOfAssignmentsCompleted)
Sets the numberOfAssignmentsCompleted value for this HIT.

Parameters:
numberOfAssignmentsCompleted -

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

getTypeDesc

public static org.apache.axis.description.TypeDesc getTypeDesc()
Return type metadata object


getSerializer

public static org.apache.axis.encoding.Serializer getSerializer(java.lang.String mechType,
                                                                java.lang.Class _javaType,
                                                                javax.xml.namespace.QName _xmlType)
Get Custom Serializer


getDeserializer

public static org.apache.axis.encoding.Deserializer getDeserializer(java.lang.String mechType,
                                                                    java.lang.Class _javaType,
                                                                    javax.xml.namespace.QName _xmlType)
Get Custom Deserializer