Class Qualification
- java.lang.Object
-
- software.amazon.awssdk.services.mturk.model.Qualification
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Qualification.Builder,Qualification>
@Generated("software.amazon.awssdk:codegen") public final class Qualification extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Qualification.Builder,Qualification>
The Qualification data structure represents a Qualification assigned to a user, including the Qualification type and the value (score).
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceQualification.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Qualification.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)InstantgrantTime()The date and time the Qualification was granted to the Worker.inthashCode()IntegerintegerValue()The value (score) of the Qualification, if the Qualification has an integer value.LocalelocaleValue()Returns the value of the LocaleValue property for this object.StringqualificationTypeId()The ID of the Qualification type for the Qualification.List<SdkField<?>>sdkFields()static Class<? extends Qualification.Builder>serializableBuilderClass()QualificationStatusstatus()The status of the Qualification.StringstatusAsString()The status of the Qualification.Qualification.BuildertoBuilder()StringtoString()Returns a string representation of this object.StringworkerId()The ID of the Worker who possesses the Qualification.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
qualificationTypeId
public final String qualificationTypeId()
The ID of the Qualification type for the Qualification.
- Returns:
- The ID of the Qualification type for the Qualification.
-
workerId
public final String workerId()
The ID of the Worker who possesses the Qualification.
- Returns:
- The ID of the Worker who possesses the Qualification.
-
grantTime
public final Instant grantTime()
The date and time the Qualification was granted to the Worker. If the Worker's Qualification was revoked, and then re-granted based on a new Qualification request, GrantTime is the date and time of the last call to the AcceptQualificationRequest operation.
- Returns:
- The date and time the Qualification was granted to the Worker. If the Worker's Qualification was revoked, and then re-granted based on a new Qualification request, GrantTime is the date and time of the last call to the AcceptQualificationRequest operation.
-
integerValue
public final Integer integerValue()
The value (score) of the Qualification, if the Qualification has an integer value.
- Returns:
- The value (score) of the Qualification, if the Qualification has an integer value.
-
localeValue
public final Locale localeValue()
Returns the value of the LocaleValue property for this object.- Returns:
- The value of the LocaleValue property for this object.
-
status
public final QualificationStatus status()
The status of the Qualification. Valid values are Granted | Revoked.
If the service returns an enum value that is not available in the current SDK version,
statuswill returnQualificationStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The status of the Qualification. Valid values are Granted | Revoked.
- See Also:
QualificationStatus
-
statusAsString
public final String statusAsString()
The status of the Qualification. Valid values are Granted | Revoked.
If the service returns an enum value that is not available in the current SDK version,
statuswill returnQualificationStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The status of the Qualification. Valid values are Granted | Revoked.
- See Also:
QualificationStatus
-
toBuilder
public Qualification.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<Qualification.Builder,Qualification>
-
builder
public static Qualification.Builder builder()
-
serializableBuilderClass
public static Class<? extends Qualification.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-