public class MaintenanceOptions extends Object
| Constructor and Description |
|---|
MaintenanceOptions()
Default constructor
|
MaintenanceOptions(JsonObject options)
Constructor from JSON
|
MaintenanceOptions(MaintenanceOptions options)
Copy constructor
|
| Modifier and Type | Method and Description |
|---|---|
String |
getId()
Get the ID of service
|
String |
getReason()
Get the reason message
|
boolean |
isEnable()
Get maintenance mode
|
MaintenanceOptions |
setEnable(boolean enable)
Set maintenance mode to enabled:
true to enter maintenance mode or false to resume normal operation. |
MaintenanceOptions |
setId(String id)
Set the ID of service.
|
MaintenanceOptions |
setReason(String reason)
Set the reason message.
|
JsonObject |
toJson()
Convert to JSON
|
public MaintenanceOptions()
public MaintenanceOptions(MaintenanceOptions options)
options - the one to copypublic MaintenanceOptions(JsonObject options)
options - the JSONpublic JsonObject toJson()
public MaintenanceOptions setId(String id)
id - the ID of servicepublic String getId()
public MaintenanceOptions setEnable(boolean enable)
true to enter maintenance mode or false to resume normal operation.
This flag is required.enable - maintenance modepublic boolean isEnable()
public MaintenanceOptions setReason(String reason)
reason - the reason messagepublic String getReason()
Copyright © 2021 Eclipse. All rights reserved.