Package energy.eddie.cim.agnostic
Record Class PermissionCommand.SetTransmissionEnabled
java.lang.Object
java.lang.Record
energy.eddie.cim.agnostic.PermissionCommand.SetTransmissionEnabled
- Record Components:
enabled- whether transmission should be enabled or disabled
- All Implemented Interfaces:
PermissionCommand
- Enclosing interface:
PermissionCommand
public static record PermissionCommand.SetTransmissionEnabled(String regionConnectorId, UUID permissionId, boolean enabled)
extends Record
implements PermissionCommand
Enables or disables transmission for a permission.
-
Nested Class Summary
Nested classes/interfaces inherited from interface energy.eddie.cim.agnostic.PermissionCommand
PermissionCommand.Action, PermissionCommand.SetTransmissionEnabled, PermissionCommand.Terminate, PermissionCommand.UpdateTransmissionSchedule -
Constructor Summary
ConstructorsConstructorDescriptionSetTransmissionEnabled(String regionConnectorId, UUID permissionId, boolean enabled) Creates an instance of aSetTransmissionEnabledrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanenabled()Returns the value of theenabledrecord 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.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
-
SetTransmissionEnabled
Creates an instance of aSetTransmissionEnabledrecord class.- Parameters:
regionConnectorId- the value for theregionConnectorIdrecord componentpermissionId- the value for thepermissionIdrecord componentenabled- the value for theenabledrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
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
-
enabled
public boolean enabled()Returns the value of theenabledrecord component.- Returns:
- the value of the
enabledrecord component
-