Record Class AcceptInboundPermissionDto

java.lang.Object
java.lang.Record
energy.eddie.aiida.dtos.permission.AcceptInboundPermissionDto
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.
inboundMessageFormat - Optional format for inbound permission messages.
asset - Asset of the inbound data source, must be allowed by the data need.
displayName - Optional display name, defaults to the name of the data need.
All Implemented Interfaces:
AcceptPermissionDto

public record AcceptInboundPermissionDto(@NotNull(message="must not be null") UUID eddieId, @NotBlank(message="must not be blank") String handshakeUrl, @NotBlank(message="must not be blank") String accessToken, @Nullable InboundMessageFormat inboundMessageFormat, @NotNull(message="must not be null") AiidaAsset asset, @Nullable String displayName) extends Record implements AcceptPermissionDto
Accepts an inbound permission request from an AIIDA code. The data source of an inbound permission is created automatically.
  • Constructor Details

    • AcceptInboundPermissionDto

      public AcceptInboundPermissionDto(@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, @Nullable InboundMessageFormat inboundMessageFormat, @NotNull(message="must not be null") @NotNull(message="must not be null") AiidaAsset asset, @Nullable String displayName)
      Creates an instance of a AcceptInboundPermissionDto 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
      inboundMessageFormat - the value for the inboundMessageFormat record component
      asset - the value for the asset 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
    • inboundMessageFormat

      @Nullable public InboundMessageFormat inboundMessageFormat()
      Returns the value of the inboundMessageFormat record component.
      Returns:
      the value of the inboundMessageFormat record component
    • asset

      @NotNull(message="must not be null") public @NotNull(message="must not be null") AiidaAsset asset()
      Returns the value of the asset record component.
      Returns:
      the value of the asset 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