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
ConstructorsConstructorDescriptionAcceptOutboundPermissionDto(@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 aAcceptOutboundPermissionDtorecord class. -
Method Summary
Modifier and TypeMethodDescription@NotBlank(message="must not be blank") StringReturns the value of theaccessTokenrecord component.@NotNull(message="must not be null") UUIDReturns the value of thedataSourceIdrecord 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.final StringtoString()Returns a string representation of this record class.
-
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 aAcceptOutboundPermissionDtorecord class.- Parameters:
eddieId- the value for theeddieIdrecord componenthandshakeUrl- the value for thehandshakeUrlrecord componentaccessToken- the value for theaccessTokenrecord componentdataSourceId- the value for thedataSourceIdrecord 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
-
dataSourceId
@NotNull(message="must not be null") public @NotNull(message="must not be null") UUID dataSourceId()Returns the value of thedataSourceIdrecord component.- Returns:
- the value of the
dataSourceIdrecord component
-
displayName
Returns the value of thedisplayNamerecord component.- Specified by:
displayNamein interfaceAcceptPermissionDto- Returns:
- the value of the
displayNamerecord component
-