Record Class PendingPermissionDto
java.lang.Object
java.lang.Record
energy.eddie.aiida.dtos.permission.PendingPermissionDto
public record PendingPermissionDto(UUID permissionId, UUID eddieId, @Nullable String serviceName, @Nullable String displayName, Instant startTime, Instant expirationTime, @Nullable String meterId, @Nullable BigDecimal minLimitKw, @Nullable BigDecimal maxLimitKw, AiidaLocalDataNeed dataNeed, @Nullable InboundMessageFormat inboundMessageFormat, boolean supportsConnectionLimits)
extends Record
Details of a permission request that was fetched from the EDDIE framework and validated, but is not yet accepted
and therefore not persisted.
-
Constructor Summary
ConstructorsConstructorDescriptionPendingPermissionDto(UUID permissionId, UUID eddieId, String serviceName, String displayName, Instant startTime, Instant expirationTime, String meterId, BigDecimal minLimitKw, BigDecimal maxLimitKw, AiidaLocalDataNeed dataNeed, InboundMessageFormat inboundMessageFormat, boolean supportsConnectionLimits) Creates an instance of aPendingPermissionDtorecord class. -
Method Summary
Modifier and TypeMethodDescriptiondataNeed()Returns the value of thedataNeedrecord component.Returns the value of thedisplayNamerecord component.eddieId()Returns the value of theeddieIdrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexpirationTimerecord component.static PendingPermissionDtofrom(Permission permission) Creates the DTO from a permission that was built from the fetched details.final inthashCode()Returns a hash code value for this object.Returns the value of theinboundMessageFormatrecord component.Returns the value of themaxLimitKwrecord component.meterId()Returns the value of themeterIdrecord component.Returns the value of theminLimitKwrecord component.Returns the value of thepermissionIdrecord component.Returns the value of theserviceNamerecord component.Returns the value of thestartTimerecord component.booleanReturns the value of thesupportsConnectionLimitsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PendingPermissionDto
public PendingPermissionDto(UUID permissionId, UUID eddieId, @Nullable String serviceName, @Nullable String displayName, Instant startTime, Instant expirationTime, @Nullable String meterId, @Nullable BigDecimal minLimitKw, @Nullable BigDecimal maxLimitKw, AiidaLocalDataNeed dataNeed, @Nullable InboundMessageFormat inboundMessageFormat, boolean supportsConnectionLimits) Creates an instance of aPendingPermissionDtorecord class.- Parameters:
permissionId- the value for thepermissionIdrecord componenteddieId- the value for theeddieIdrecord componentserviceName- the value for theserviceNamerecord componentdisplayName- the value for thedisplayNamerecord componentstartTime- the value for thestartTimerecord componentexpirationTime- the value for theexpirationTimerecord componentmeterId- the value for themeterIdrecord componentminLimitKw- the value for theminLimitKwrecord componentmaxLimitKw- the value for themaxLimitKwrecord componentdataNeed- the value for thedataNeedrecord componentinboundMessageFormat- the value for theinboundMessageFormatrecord componentsupportsConnectionLimits- the value for thesupportsConnectionLimitsrecord component
-
-
Method Details
-
from
Creates the DTO from a permission that was built from the fetched 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
permissionId
Returns the value of thepermissionIdrecord component.- Returns:
- the value of the
permissionIdrecord component
-
eddieId
Returns the value of theeddieIdrecord component.- Returns:
- the value of the
eddieIdrecord component
-
serviceName
Returns the value of theserviceNamerecord component.- Returns:
- the value of the
serviceNamerecord component
-
displayName
Returns the value of thedisplayNamerecord component.- Returns:
- the value of the
displayNamerecord component
-
startTime
Returns the value of thestartTimerecord component.- Returns:
- the value of the
startTimerecord component
-
expirationTime
Returns the value of theexpirationTimerecord component.- Returns:
- the value of the
expirationTimerecord component
-
meterId
Returns the value of themeterIdrecord component.- Returns:
- the value of the
meterIdrecord component
-
minLimitKw
Returns the value of theminLimitKwrecord component.- Returns:
- the value of the
minLimitKwrecord component
-
maxLimitKw
Returns the value of themaxLimitKwrecord component.- Returns:
- the value of the
maxLimitKwrecord component
-
dataNeed
Returns the value of thedataNeedrecord component.- Returns:
- the value of the
dataNeedrecord component
-
inboundMessageFormat
Returns the value of theinboundMessageFormatrecord component.- Returns:
- the value of the
inboundMessageFormatrecord component
-
supportsConnectionLimits
public boolean supportsConnectionLimits()Returns the value of thesupportsConnectionLimitsrecord component.- Returns:
- the value of the
supportsConnectionLimitsrecord component
-