Record Class AssignTransactionsToPositionDTO
java.lang.Object
java.lang.Record
com.bluebell.greenhouse.platform.models.api.dto.transaction.AssignTransactionsToPositionDTO
- Record Components:
positionUid- target position uidtransactionUids- transaction uids to assign
public record AssignTransactionsToPositionDTO(@NotBlank @Size(max=255) String positionUid, @NotEmpty @Size(max=100) List<@NotBlank @Size(max=255) String> transactionUids)
extends Record
Request object for assigning multiple
Transactions to a position.- Version:
- 3.0.4
- Author:
- Stephen Prizio
-
Constructor Summary
ConstructorsConstructorDescriptionAssignTransactionsToPositionDTO(@NotBlank @Size(max=255) String positionUid, @NotEmpty @Size(max=100) List<@NotBlank @Size(max=255) String> transactionUids) Creates an instance of aAssignTransactionsToPositionDTOrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotBlank @Size(max=255) StringReturns the value of thepositionUidrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetransactionUidsrecord component.
-
Constructor Details
-
AssignTransactionsToPositionDTO
public AssignTransactionsToPositionDTO(@NotBlank @Size(max=255) @NotBlank @Size(max=255) String positionUid, @NotEmpty @Size(max=100) @NotEmpty @Size(max=100) List<@NotBlank @Size(max=255) String> transactionUids) Creates an instance of aAssignTransactionsToPositionDTOrecord class.- Parameters:
positionUid- the value for thepositionUidrecord componenttransactionUids- the value for thetransactionUidsrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
positionUid
Returns the value of thepositionUidrecord component.- Returns:
- the value of the
positionUidrecord component
-
transactionUids
@NotEmpty @Size(max=100) public @NotEmpty @Size(max=100) List<@NotBlank @Size(max=255) String> transactionUids()Returns the value of thetransactionUidsrecord component.- Returns:
- the value of the
transactionUidsrecord component
-