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 Summary
ConstructorsConstructorDescriptionAcceptInboundPermissionDto(@NotNull(message="must not be null") UUID eddieId, @NotBlank(message="must not be blank") String handshakeUrl, @NotBlank(message="must not be blank") String accessToken, InboundMessageFormat inboundMessageFormat, @NotNull(message="must not be null") AiidaAsset asset, String displayName) Creates an instance of aAcceptInboundPermissionDtorecord class. -
Method Summary
Modifier and TypeMethodDescription@NotBlank(message="must not be blank") StringReturns the value of theaccessTokenrecord component.@NotNull(message="must not be null") AiidaAssetasset()Returns the value of theassetrecord component.Returns the value of thedisplayNamerecord component.@NotNull(message="must not be null") UUIDeddieId()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 theinboundMessageFormatrecord component.final StringtoString()Returns a string representation of this record class.
-
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 aAcceptInboundPermissionDtorecord class.- Parameters:
eddieId- the value for theeddieIdrecord componenthandshakeUrl- the value for thehandshakeUrlrecord componentaccessToken- the value for theaccessTokenrecord componentinboundMessageFormat- the value for theinboundMessageFormatrecord componentasset- the value for theassetrecord componentdisplayName- the value for thedisplayNamerecord 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.- Specified by:
eddieIdin interfaceAcceptPermissionDto- Returns:
- the value of the
eddieIdrecord component
-
handshakeUrl
@NotBlank(message="must not be blank") public @NotBlank(message="must not be blank") String handshakeUrl()Returns the value of thehandshakeUrlrecord component.- Specified by:
handshakeUrlin interfaceAcceptPermissionDto- 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.- Specified by:
accessTokenin interfaceAcceptPermissionDto- Returns:
- the value of the
accessTokenrecord component
-
inboundMessageFormat
Returns the value of theinboundMessageFormatrecord component.- Returns:
- the value of the
inboundMessageFormatrecord component
-
asset
Returns the value of theassetrecord component.- Returns:
- the value of the
assetrecord component
-
displayName
Returns the value of thedisplayNamerecord component.- Specified by:
displayNamein interfaceAcceptPermissionDto- Returns:
- the value of the
displayNamerecord component
-