Record Class AcceptOutboundPermissionDto

java.lang.Object
java.lang.Record
energy.eddie.aiida.dtos.permission.AcceptOutboundPermissionDto
Record Components:
eddieId - ID of the EDDIE framework that created the permission request, from the AIIDA code.
handshakeUrl - Handshake URL template from the AIIDA code.
accessToken - Access token from the AIIDA code.
dataSourceId - Data source whose data is streamed to the eligible party.
displayName - Optional display name, defaults to the name of the data need.
All Implemented Interfaces:
AcceptPermissionDto

public record AcceptOutboundPermissionDto(@NotNull(message="must not be null") UUID eddieId, @NotBlank(message="must not be blank") String handshakeUrl, @NotBlank(message="must not be blank") String accessToken, @NotNull(message="must not be null") UUID dataSourceId, @Nullable String displayName) extends Record implements AcceptPermissionDto
Accepts an outbound permission request from an AIIDA code.
  • Constructor Summary

    Constructors
    Constructor
    Description
    AcceptOutboundPermissionDto(@NotNull(message="must not be null") UUID eddieId, @NotBlank(message="must not be blank") String handshakeUrl, @NotBlank(message="must not be blank") String accessToken, @NotNull(message="must not be null") UUID dataSourceId, String displayName)
    Creates an instance of a AcceptOutboundPermissionDto record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotBlank(message="must not be blank") String
    Returns the value of the accessToken record component.
    @NotNull(message="must not be null") UUID
    Returns the value of the dataSourceId record component.
    Returns the value of the displayName record component.
    @NotNull(message="must not be null") UUID
    Returns the value of the eddieId 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.
    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

    • AcceptOutboundPermissionDto

      public AcceptOutboundPermissionDto(@NotNull(message="must not be null") @NotNull(message="must not be null") UUID eddieId, @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, @NotNull(message="must not be null") @NotNull(message="must not be null") UUID dataSourceId, @Nullable String displayName)
      Creates an instance of a AcceptOutboundPermissionDto record class.
      Parameters:
      eddieId - the value for the eddieId record component
      handshakeUrl - the value for the handshakeUrl record component
      accessToken - the value for the accessToken record component
      dataSourceId - the value for the dataSourceId record component
      displayName - the value for the displayName 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

      @NotNull(message="must not be null") public @NotNull(message="must not be null") UUID eddieId()
      Returns the value of the eddieId record component.
      Specified by:
      eddieId in interface AcceptPermissionDto
      Returns:
      the value of the eddieId 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.
      Specified by:
      handshakeUrl in interface AcceptPermissionDto
      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.
      Specified by:
      accessToken in interface AcceptPermissionDto
      Returns:
      the value of the accessToken record component
    • dataSourceId

      @NotNull(message="must not be null") public @NotNull(message="must not be null") UUID dataSourceId()
      Returns the value of the dataSourceId record component.
      Returns:
      the value of the dataSourceId record component
    • displayName

      @Nullable public String displayName()
      Returns the value of the displayName record component.
      Specified by:
      displayName in interface AcceptPermissionDto
      Returns:
      the value of the displayName record component