Package energy.eddie.cim.agnostic
Record Class PermissionCommand.Terminate
java.lang.Object
java.lang.Record
energy.eddie.cim.agnostic.PermissionCommand.Terminate
- All Implemented Interfaces:
PermissionCommand
- Enclosing interface:
PermissionCommand
public static record PermissionCommand.Terminate(String regionConnectorId, UUID permissionId)
extends Record
implements PermissionCommand
Terminates a permission, causing the region connector to stop transmitting data for it and clean up any associated resources.
-
Nested Class Summary
Nested classes/interfaces inherited from interface energy.eddie.cim.agnostic.PermissionCommand
PermissionCommand.Action, PermissionCommand.SetTransmissionEnabled, PermissionCommand.Terminate, PermissionCommand.UpdateTransmissionSchedule -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal 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.Returns the value of theregionConnectorIdrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface energy.eddie.cim.agnostic.PermissionCommand
action
-
Constructor Details
-
Terminate
Creates an instance of aTerminaterecord class.- Parameters:
regionConnectorId- the value for theregionConnectorIdrecord componentpermissionId- the value for thepermissionIdrecord 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). -
regionConnectorId
Returns the value of theregionConnectorIdrecord component.- Specified by:
regionConnectorIdin interfacePermissionCommand- Returns:
- the value of the
regionConnectorIdrecord component
-
permissionId
Returns the value of thepermissionIdrecord component.- Specified by:
permissionIdin interfacePermissionCommand- Returns:
- the value of the
permissionIdrecord component
-