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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MaintenanceModeRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Boolean
getBanner()
Flag to show the maintenance message in the bannerBoolean
getMaintenance()
Maintenance mode flag.String
getMessage()
Maintenance message.MaintenanceModeRequest
setBanner(Boolean banner)
Set the banner flagMaintenanceModeRequest
setMaintenance(Boolean maintenance)
Set maintenance mode flagMaintenanceModeRequest
setMessage(String message)
Set the maintenance message
-
-
-
Method Detail
-
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
-
-