Record Class RejectPermissionDto

java.lang.Object
java.lang.Record
energy.eddie.aiida.dtos.permission.RejectPermissionDto
Record Components:
handshakeUrl - Handshake URL template from the AIIDA code.
accessToken - Access token from the AIIDA code.
reason - Optional reason, which is forwarded to the eligible party.

public record RejectPermissionDto(@NotBlank(message="must not be blank") String handshakeUrl, @NotBlank(message="must not be blank") String accessToken, @Nullable String reason) extends Record
Rejects a permission request from an AIIDA code. Nothing is persisted, the rejection is only sent to the EDDIE framework.
  • Constructor Summary

    Constructors
    Constructor
    Description
    RejectPermissionDto(@NotBlank(message="must not be blank") String handshakeUrl, @NotBlank(message="must not be blank") String accessToken, String reason)
    Creates an instance of a RejectPermissionDto record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotBlank(message="must not be blank") String
    Returns the value of the accessToken record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    @NotBlank(message="must not be blank") String
    Returns the value of the handshakeUrl record component.
    final int
    Returns a hash code value for this object.
    Returns the value of the reason record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • RejectPermissionDto

      public RejectPermissionDto(@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, @Nullable String reason)
      Creates an instance of a RejectPermissionDto record class.
      Parameters:
      handshakeUrl - the value for the handshakeUrl record component
      accessToken - the value for the accessToken record component
      reason - the value for the reason 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.
    • 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
    • reason

      @Nullable public String reason()
      Returns the value of the reason record component.
      Returns:
      the value of the reason record component