Package com.io7m.idstore.protocol.admin
Record Class IdACommandMaintenanceModeSet
java.lang.Object
java.lang.Record
com.io7m.idstore.protocol.admin.IdACommandMaintenanceModeSet
- Record Components:
message
- The message
- All Implemented Interfaces:
com.io7m.hibiscus.api.HBMessageType
,IdACommandType<IdAResponseMaintenanceModeSet>
,IdAMessageType
,IdProtocolMessageType
public record IdACommandMaintenanceModeSet(Optional<String> message)
extends Record
implements IdACommandType<IdAResponseMaintenanceModeSet>
Move the server to/from maintenance mode. If a message is specified, the
server is moved into maintenance mode. If no message is specified, the
server is moved out of maintenance mode.
-
Constructor Summary
ConstructorDescriptionIdACommandMaintenanceModeSet
(Optional<String> message) Move the server to/from maintenance mode. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.message()
Returns the value of themessage
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
IdACommandMaintenanceModeSet
Move the server to/from maintenance mode. If a message is specified, the server is moved into maintenance mode. If no message is specified, the server is moved out of maintenance mode.- Parameters:
message
- The message
-
-
Method Details
-
responseClass
- Specified by:
responseClass
in interfaceIdACommandType<IdAResponseMaintenanceModeSet>
- Returns:
- The response type associated with this command
-
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)
. -
message
Returns the value of themessage
record component.- Returns:
- the value of the
message
record component
-