Package energy.eddie.aiida.dtos
Record Class PatchPermissionDto
java.lang.Object
java.lang.Record
energy.eddie.aiida.dtos.PatchPermissionDto
- Record Components:
operation- The operation that should be applied to the permission.dataSourceId- The data source assigned to the permission.
public record PatchPermissionDto(@NotNull(message="must not be null") PatchOperation operation, @Nullable UUID dataSourceId)
extends Record
This data transfer object is expected by the updatePermission API endpoint.
-
Constructor Summary
ConstructorsConstructorDescriptionPatchPermissionDto(@NotNull(message="must not be null") PatchOperation operation, UUID dataSourceId) Creates an instance of aPatchPermissionDtorecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedataSourceIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull(message="must not be null") PatchOperationReturns the value of theoperationrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PatchPermissionDto
public PatchPermissionDto(@NotNull(message="must not be null") @NotNull(message="must not be null") PatchOperation operation, @Nullable UUID dataSourceId) Creates an instance of aPatchPermissionDtorecord class.- Parameters:
operation- the value for theoperationrecord componentdataSourceId- the value for thedataSourceIdrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
operation
@NotNull(message="must not be null") public @NotNull(message="must not be null") PatchOperation operation()Returns the value of theoperationrecord component.- Returns:
- the value of the
operationrecord component
-
dataSourceId
Returns the value of thedataSourceIdrecord component.- Returns:
- the value of the
dataSourceIdrecord component
-