Class BonusPayment
- java.lang.Object
-
- software.amazon.awssdk.services.mturk.model.BonusPayment
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<BonusPayment.Builder,BonusPayment>
@Generated("software.amazon.awssdk:codegen") public final class BonusPayment extends Object implements SdkPojo, Serializable, ToCopyableBuilder<BonusPayment.Builder,BonusPayment>
An object representing a Bonus payment paid to a Worker.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceBonusPayment.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringassignmentId()The ID of the assignment associated with this bonus payment.StringbonusAmount()Returns the value of the BonusAmount property for this object.static BonusPayment.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)InstantgrantTime()The date and time of when the bonus was granted.inthashCode()Stringreason()The Reason text given when the bonus was granted, if any.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends BonusPayment.Builder>serializableBuilderClass()BonusPayment.BuildertoBuilder()StringtoString()Returns a string representation of this object.StringworkerId()The ID of the Worker to whom the bonus was paid.-
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
-
workerId
public final String workerId()
The ID of the Worker to whom the bonus was paid.
- Returns:
- The ID of the Worker to whom the bonus was paid.
-
bonusAmount
public final String bonusAmount()
Returns the value of the BonusAmount property for this object.- Returns:
- The value of the BonusAmount property for this object.
-
assignmentId
public final String assignmentId()
The ID of the assignment associated with this bonus payment.
- Returns:
- The ID of the assignment associated with this bonus payment.
-
reason
public final String reason()
The Reason text given when the bonus was granted, if any.
- Returns:
- The Reason text given when the bonus was granted, if any.
-
grantTime
public final Instant grantTime()
The date and time of when the bonus was granted.
- Returns:
- The date and time of when the bonus was granted.
-
toBuilder
public BonusPayment.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<BonusPayment.Builder,BonusPayment>
-
builder
public static BonusPayment.Builder builder()
-
serializableBuilderClass
public static Class<? extends BonusPayment.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.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-