Package energy.eddie.api.agnostic.aiida
Record Class AiidaPermissionRequestsDto
java.lang.Object
java.lang.Record
energy.eddie.api.agnostic.aiida.AiidaPermissionRequestsDto
- Record Components:
eddieId- Token Access token to be included by AIIDA for the handshake.permissionIds- IDs of these permissions as generated by this region connector. AIIDA will use the same IDs.handshakeUrl- URL template used by AIIDA to send the handshake request. The placeholder {permissionId} is replaced with the actual permission ID.accessToken- Access token to be included by AIIDA for the handshake.
-
Constructor Summary
ConstructorsConstructorDescriptionAiidaPermissionRequestsDto(UUID eddieId, @NotEmpty(message="must not be empty") List<UUID> permissionIds, @NotBlank(message="must not be blank") String handshakeUrl, @NotBlank(message="must not be blank") String accessToken) Creates an instance of aAiidaPermissionRequestsDtorecord class. -
Method Summary
Modifier and TypeMethodDescription@NotBlank(message="must not be blank") StringReturns the value of theaccessTokenrecord component.eddieId()Returns the value of theeddieIdrecord component.final booleanIndicates whether some other object is "equal to" this one.@NotBlank(message="must not be blank") StringReturns the value of thehandshakeUrlrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thepermissionIdsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AiidaPermissionRequestsDto
public AiidaPermissionRequestsDto(UUID eddieId, @NotEmpty(message="must not be empty") @NotEmpty(message="must not be empty") List<UUID> permissionIds, @NotBlank(message="must not be blank") @NotBlank(message="must not be blank") String handshakeUrl, @NotBlank(message="must not be blank") @NotBlank(message="must not be blank") String accessToken) Creates an instance of aAiidaPermissionRequestsDtorecord class.- Parameters:
eddieId- the value for theeddieIdrecord componentpermissionIds- the value for thepermissionIdsrecord componenthandshakeUrl- the value for thehandshakeUrlrecord componentaccessToken- the value for theaccessTokenrecord 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). -
eddieId
Returns the value of theeddieIdrecord component.- Returns:
- the value of the
eddieIdrecord component
-
permissionIds
@NotEmpty(message="must not be empty") public @NotEmpty(message="must not be empty") List<UUID> permissionIds()Returns the value of thepermissionIdsrecord component.- Returns:
- the value of the
permissionIdsrecord component
-
handshakeUrl
@NotBlank(message="must not be blank") public @NotBlank(message="must not be blank") String handshakeUrl()Returns the value of thehandshakeUrlrecord component.- Returns:
- the value of the
handshakeUrlrecord component
-
accessToken
@NotBlank(message="must not be blank") public @NotBlank(message="must not be blank") String accessToken()Returns the value of theaccessTokenrecord component.- Returns:
- the value of the
accessTokenrecord component
-