Record Class SimulationPermissionRequest
java.lang.Object
java.lang.Record
energy.eddie.regionconnector.simulation.permission.request.SimulationPermissionRequest
- All Implemented Interfaces:
PermissionRequest
public record SimulationPermissionRequest(@Nullable String connectionId, @Nullable String permissionId, @Nullable String dataNeedId, @Nullable PermissionProcessStatus status, LocalDate start, LocalDate end)
extends Record
implements PermissionRequest
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSimulationPermissionRequest(String connectionId, String permissionId, String dataNeedId, PermissionProcessStatus status) SimulationPermissionRequest(String connectionId, String permissionId, String dataNeedId, PermissionProcessStatus status, LocalDate start, LocalDate end) Creates an instance of aSimulationPermissionRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconnectionIdrecord component.created()The datetime when the permission request first was created.Returns the value of thedataNeedIdrecord component.Information about the data source associated with the permission request.end()Returns the value of theendrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thepermissionIdrecord component.start()Returns the value of thestartrecord component.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
DEFAULT_START
-
DEFAULT_END
-
-
Constructor Details
-
SimulationPermissionRequest
-
SimulationPermissionRequest
public SimulationPermissionRequest(@Nullable String connectionId, @Nullable String permissionId, @Nullable String dataNeedId, @Nullable PermissionProcessStatus status) -
SimulationPermissionRequest
public SimulationPermissionRequest(@Nullable String connectionId, @Nullable String permissionId, @Nullable String dataNeedId, @Nullable PermissionProcessStatus status, LocalDate start, LocalDate end) Creates an instance of aSimulationPermissionRequestrecord class.- Parameters:
connectionId- the value for theconnectionIdrecord componentpermissionId- the value for thepermissionIdrecord componentdataNeedId- the value for thedataNeedIdrecord componentstatus- the value for thestatusrecord componentstart- the value for thestartrecord componentend- the value for theendrecord component
-
-
Method Details
-
dataSourceInformation
Description copied from interface:PermissionRequestInformation about the data source associated with the permission request.- Specified by:
dataSourceInformationin interfacePermissionRequest- Returns:
- the DataSourceInformation of the PermissionRequest
-
created
Description copied from interface:PermissionRequestThe datetime when the permission request first was created.- Specified by:
createdin interfacePermissionRequest- Returns:
- the created datetime
-
start
Returns the value of thestartrecord component.- Specified by:
startin interfacePermissionRequest- Returns:
- the value of the
startrecord component
-
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). -
connectionId
Returns the value of theconnectionIdrecord component.- Specified by:
connectionIdin interfacePermissionRequest- Returns:
- the value of the
connectionIdrecord component
-
permissionId
Returns the value of thepermissionIdrecord component.- Specified by:
permissionIdin interfacePermissionRequest- Returns:
- the value of the
permissionIdrecord component
-
dataNeedId
Returns the value of thedataNeedIdrecord component.- Specified by:
dataNeedIdin interfacePermissionRequest- Returns:
- the value of the
dataNeedIdrecord component
-
status
Returns the value of thestatusrecord component.- Specified by:
statusin interfacePermissionRequest- Returns:
- the value of the
statusrecord component
-
end
Returns the value of theendrecord component.- Specified by:
endin interfacePermissionRequest- Returns:
- the value of the
endrecord component
-