Class MaintenanceModeRequest

java.lang.Object
com.gentics.contentnode.rest.model.request.MaintenanceModeRequest
All Implemented Interfaces:
Serializable

public class MaintenanceModeRequest extends Object implements Serializable
Rest Model of the request to set/unset the maintenance mode
See Also:
  • Field Details

    • maintenance

      protected Boolean maintenance
      Maintenance mode flag
    • message

      protected String message
      Maintenance message
  • Constructor Details

    • MaintenanceModeRequest

      public MaintenanceModeRequest()
  • Method Details

    • getMaintenance

      public Boolean getMaintenance()
      Maintenance mode flag. True to activate maintenancemode, false to deactivate maintenancemode
      Returns:
      the maintenance
    • setMaintenance

      public MaintenanceModeRequest setMaintenance(Boolean maintenance)
      Set maintenance mode flag
      Parameters:
      maintenance - the maintenance to set
      Returns:
      fluent API
    • getBanner

      public Boolean getBanner()
      Flag to show the maintenance message in the banner
      Returns:
      banner flag
    • setBanner

      public MaintenanceModeRequest setBanner(Boolean banner)
      Set the banner flag
      Parameters:
      banner - flag
      Returns:
      fluent API
    • getMessage

      public String getMessage()
      Maintenance message. The message will be shown on the login screen, when the maintenance mode is active, and/or in the banner, if the banner flag is set.
      Returns:
      the message
    • setMessage

      public MaintenanceModeRequest setMessage(String message)
      Set the maintenance message
      Parameters:
      message - the message to set
      Returns:
      fluent API