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.

public record AiidaPermissionRequestsDto(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) extends Record
  • 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 a AiidaPermissionRequestsDto record class.
      Parameters:
      eddieId - the value for the eddieId record component
      permissionIds - the value for the permissionIds record component
      handshakeUrl - the value for the handshakeUrl record component
      accessToken - the value for the accessToken record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • eddieId

      public UUID eddieId()
      Returns the value of the eddieId record component.
      Returns:
      the value of the eddieId record component
    • permissionIds

      @NotEmpty(message="must not be empty") public @NotEmpty(message="must not be empty") List<UUID> permissionIds()
      Returns the value of the permissionIds record component.
      Returns:
      the value of the permissionIds record component
    • handshakeUrl

      @NotBlank(message="must not be blank") public @NotBlank(message="must not be blank") String handshakeUrl()
      Returns the value of the handshakeUrl record component.
      Returns:
      the value of the handshakeUrl record component
    • accessToken

      @NotBlank(message="must not be blank") public @NotBlank(message="must not be blank") String accessToken()
      Returns the value of the accessToken record component.
      Returns:
      the value of the accessToken record component