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.HBCommandType,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
ConstructorsConstructorDescriptionIdACommandMaintenanceModeSet(Optional<String> message) Move the server to/from maintenance mode. -
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.message()Returns the value of themessagerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
IdACommandMaintenanceModeSet
-
-
Method Details
-
responseClass
- Specified by:
responseClassin interfaceIdACommandType<IdAResponseMaintenanceModeSet>- Returns:
- The response type associated with this command
-
toString
-
hashCode
-
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
-