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)
extends Record
implements PermissionRequest
-
Constructor Summary
ConstructorsConstructorDescriptionSimulationPermissionRequest(String connectionId, String permissionId, String dataNeedId, PermissionProcessStatus status) 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()The end date from which data is requested.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()The start date from which data is requested.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SimulationPermissionRequest
-
SimulationPermissionRequest
public SimulationPermissionRequest(@Nullable String connectionId, @Nullable String permissionId, @Nullable String dataNeedId, @Nullable PermissionProcessStatus status) 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 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
Description copied from interface:PermissionRequestThe start date from which data is requested. (inclusive)- Specified by:
startin interfacePermissionRequest
-
end
Description copied from interface:PermissionRequestThe end date from which data is requested. (inclusive)- Specified by:
endin interfacePermissionRequest
-
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
-