@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ReviewPolicy extends Object implements Serializable, Cloneable, StructuredPojo
HIT Review Policy data structures represent HIT review policies, which you specify when you create a HIT.
Constructor and Description |
---|
ReviewPolicy() |
Modifier and Type | Method and Description |
---|---|
ReviewPolicy |
clone() |
boolean |
equals(Object obj) |
List<PolicyParameter> |
getParameters()
Name of the parameter from the Review policy.
|
String |
getPolicyName()
Name of a Review Policy: SimplePlurality/2011-09-01 or ScoreMyKnownAnswers/2011-09-01
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setParameters(Collection<PolicyParameter> parameters)
Name of the parameter from the Review policy.
|
void |
setPolicyName(String policyName)
Name of a Review Policy: SimplePlurality/2011-09-01 or ScoreMyKnownAnswers/2011-09-01
|
String |
toString()
Returns a string representation of this object.
|
ReviewPolicy |
withParameters(Collection<PolicyParameter> parameters)
Name of the parameter from the Review policy.
|
ReviewPolicy |
withParameters(PolicyParameter... parameters)
Name of the parameter from the Review policy.
|
ReviewPolicy |
withPolicyName(String policyName)
Name of a Review Policy: SimplePlurality/2011-09-01 or ScoreMyKnownAnswers/2011-09-01
|
public void setPolicyName(String policyName)
Name of a Review Policy: SimplePlurality/2011-09-01 or ScoreMyKnownAnswers/2011-09-01
policyName
- Name of a Review Policy: SimplePlurality/2011-09-01 or ScoreMyKnownAnswers/2011-09-01public String getPolicyName()
Name of a Review Policy: SimplePlurality/2011-09-01 or ScoreMyKnownAnswers/2011-09-01
public ReviewPolicy withPolicyName(String policyName)
Name of a Review Policy: SimplePlurality/2011-09-01 or ScoreMyKnownAnswers/2011-09-01
policyName
- Name of a Review Policy: SimplePlurality/2011-09-01 or ScoreMyKnownAnswers/2011-09-01public List<PolicyParameter> getParameters()
Name of the parameter from the Review policy.
public void setParameters(Collection<PolicyParameter> parameters)
Name of the parameter from the Review policy.
parameters
- Name of the parameter from the Review policy.public ReviewPolicy withParameters(PolicyParameter... parameters)
Name of the parameter from the Review policy.
NOTE: This method appends the values to the existing list (if any). Use
setParameters(java.util.Collection)
or withParameters(java.util.Collection)
if you want to
override the existing values.
parameters
- Name of the parameter from the Review policy.public ReviewPolicy withParameters(Collection<PolicyParameter> parameters)
Name of the parameter from the Review policy.
parameters
- Name of the parameter from the Review policy.public String toString()
toString
in class Object
Object.toString()
public ReviewPolicy clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.