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 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 a PendingPermissionDto record class.
      Parameters:
      permissionId - the value for the permissionId record component
      eddieId - the value for the eddieId record component
      serviceName - the value for the serviceName record component
      displayName - the value for the displayName record component
      startTime - the value for the startTime record component
      expirationTime - the value for the expirationTime record component
      meterId - the value for the meterId record component
      minLimitKw - the value for the minLimitKw record component
      maxLimitKw - the value for the maxLimitKw record component
      dataNeed - the value for the dataNeed record component
      inboundMessageFormat - the value for the inboundMessageFormat record component
      supportsConnectionLimits - the value for the supportsConnectionLimits record component
  • Method Details

    • from

      public static PendingPermissionDto from(Permission permission)
      Creates the DTO from a permission that was built from the fetched 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      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.
    • permissionId

      public UUID permissionId()
      Returns the value of the permissionId record component.
      Returns:
      the value of the permissionId record component
    • eddieId

      public UUID eddieId()
      Returns the value of the eddieId record component.
      Returns:
      the value of the eddieId record component
    • serviceName

      @Nullable public String serviceName()
      Returns the value of the serviceName record component.
      Returns:
      the value of the serviceName record component
    • displayName

      @Nullable public String displayName()
      Returns the value of the displayName record component.
      Returns:
      the value of the displayName record component
    • startTime

      public Instant startTime()
      Returns the value of the startTime record component.
      Returns:
      the value of the startTime record component
    • expirationTime

      public Instant expirationTime()
      Returns the value of the expirationTime record component.
      Returns:
      the value of the expirationTime record component
    • meterId

      @Nullable public String meterId()
      Returns the value of the meterId record component.
      Returns:
      the value of the meterId record component
    • minLimitKw

      @Nullable public BigDecimal minLimitKw()
      Returns the value of the minLimitKw record component.
      Returns:
      the value of the minLimitKw record component
    • maxLimitKw

      @Nullable public BigDecimal maxLimitKw()
      Returns the value of the maxLimitKw record component.
      Returns:
      the value of the maxLimitKw record component
    • dataNeed

      public AiidaLocalDataNeed dataNeed()
      Returns the value of the dataNeed record component.
      Returns:
      the value of the dataNeed record component
    • inboundMessageFormat

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

      public boolean supportsConnectionLimits()
      Returns the value of the supportsConnectionLimits record component.
      Returns:
      the value of the supportsConnectionLimits record component