Class MaintenanceRedeployStatus
java.lang.Object
com.azure.resourcemanager.compute.models.MaintenanceRedeployStatus
- All Implemented Interfaces:
com.azure.json.JsonSerializable<MaintenanceRedeployStatus>
public final class MaintenanceRedeployStatus
extends Object
implements com.azure.json.JsonSerializable<MaintenanceRedeployStatus>
Maintenance Operation Status.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of MaintenanceRedeployStatus class. -
Method Summary
Modifier and TypeMethodDescriptionstatic MaintenanceRedeployStatusfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of MaintenanceRedeployStatus from the JsonReader.Get the isCustomerInitiatedMaintenanceAllowed property: True, if customer is allowed to perform Maintenance.Get the lastOperationMessage property: Message returned for the last Maintenance Operation.Get the lastOperationResultCode property: The Last Maintenance Operation Result Code.Get the maintenanceWindowEndTime property: End Time for the Maintenance Window.Get the maintenanceWindowStartTime property: Start Time for the Maintenance Window.Get the preMaintenanceWindowEndTime property: End Time for the Pre Maintenance Window.Get the preMaintenanceWindowStartTime property: Start Time for the Pre Maintenance Window.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withIsCustomerInitiatedMaintenanceAllowed(Boolean isCustomerInitiatedMaintenanceAllowed) Set the isCustomerInitiatedMaintenanceAllowed property: True, if customer is allowed to perform Maintenance.withLastOperationMessage(String lastOperationMessage) Set the lastOperationMessage property: Message returned for the last Maintenance Operation.withLastOperationResultCode(MaintenanceOperationResultCodeTypes lastOperationResultCode) Set the lastOperationResultCode property: The Last Maintenance Operation Result Code.withMaintenanceWindowEndTime(OffsetDateTime maintenanceWindowEndTime) Set the maintenanceWindowEndTime property: End Time for the Maintenance Window.withMaintenanceWindowStartTime(OffsetDateTime maintenanceWindowStartTime) Set the maintenanceWindowStartTime property: Start Time for the Maintenance Window.withPreMaintenanceWindowEndTime(OffsetDateTime preMaintenanceWindowEndTime) Set the preMaintenanceWindowEndTime property: End Time for the Pre Maintenance Window.withPreMaintenanceWindowStartTime(OffsetDateTime preMaintenanceWindowStartTime) Set the preMaintenanceWindowStartTime property: Start Time for the Pre Maintenance Window.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
MaintenanceRedeployStatus
public MaintenanceRedeployStatus()Creates an instance of MaintenanceRedeployStatus class.
-
-
Method Details
-
isCustomerInitiatedMaintenanceAllowed
Get the isCustomerInitiatedMaintenanceAllowed property: True, if customer is allowed to perform Maintenance.- Returns:
- the isCustomerInitiatedMaintenanceAllowed value.
-
withIsCustomerInitiatedMaintenanceAllowed
public MaintenanceRedeployStatus withIsCustomerInitiatedMaintenanceAllowed(Boolean isCustomerInitiatedMaintenanceAllowed) Set the isCustomerInitiatedMaintenanceAllowed property: True, if customer is allowed to perform Maintenance.- Parameters:
isCustomerInitiatedMaintenanceAllowed- the isCustomerInitiatedMaintenanceAllowed value to set.- Returns:
- the MaintenanceRedeployStatus object itself.
-
preMaintenanceWindowStartTime
Get the preMaintenanceWindowStartTime property: Start Time for the Pre Maintenance Window.- Returns:
- the preMaintenanceWindowStartTime value.
-
withPreMaintenanceWindowStartTime
public MaintenanceRedeployStatus withPreMaintenanceWindowStartTime(OffsetDateTime preMaintenanceWindowStartTime) Set the preMaintenanceWindowStartTime property: Start Time for the Pre Maintenance Window.- Parameters:
preMaintenanceWindowStartTime- the preMaintenanceWindowStartTime value to set.- Returns:
- the MaintenanceRedeployStatus object itself.
-
preMaintenanceWindowEndTime
Get the preMaintenanceWindowEndTime property: End Time for the Pre Maintenance Window.- Returns:
- the preMaintenanceWindowEndTime value.
-
withPreMaintenanceWindowEndTime
public MaintenanceRedeployStatus withPreMaintenanceWindowEndTime(OffsetDateTime preMaintenanceWindowEndTime) Set the preMaintenanceWindowEndTime property: End Time for the Pre Maintenance Window.- Parameters:
preMaintenanceWindowEndTime- the preMaintenanceWindowEndTime value to set.- Returns:
- the MaintenanceRedeployStatus object itself.
-
maintenanceWindowStartTime
Get the maintenanceWindowStartTime property: Start Time for the Maintenance Window.- Returns:
- the maintenanceWindowStartTime value.
-
withMaintenanceWindowStartTime
public MaintenanceRedeployStatus withMaintenanceWindowStartTime(OffsetDateTime maintenanceWindowStartTime) Set the maintenanceWindowStartTime property: Start Time for the Maintenance Window.- Parameters:
maintenanceWindowStartTime- the maintenanceWindowStartTime value to set.- Returns:
- the MaintenanceRedeployStatus object itself.
-
maintenanceWindowEndTime
Get the maintenanceWindowEndTime property: End Time for the Maintenance Window.- Returns:
- the maintenanceWindowEndTime value.
-
withMaintenanceWindowEndTime
public MaintenanceRedeployStatus withMaintenanceWindowEndTime(OffsetDateTime maintenanceWindowEndTime) Set the maintenanceWindowEndTime property: End Time for the Maintenance Window.- Parameters:
maintenanceWindowEndTime- the maintenanceWindowEndTime value to set.- Returns:
- the MaintenanceRedeployStatus object itself.
-
lastOperationResultCode
Get the lastOperationResultCode property: The Last Maintenance Operation Result Code.- Returns:
- the lastOperationResultCode value.
-
withLastOperationResultCode
public MaintenanceRedeployStatus withLastOperationResultCode(MaintenanceOperationResultCodeTypes lastOperationResultCode) Set the lastOperationResultCode property: The Last Maintenance Operation Result Code.- Parameters:
lastOperationResultCode- the lastOperationResultCode value to set.- Returns:
- the MaintenanceRedeployStatus object itself.
-
lastOperationMessage
Get the lastOperationMessage property: Message returned for the last Maintenance Operation.- Returns:
- the lastOperationMessage value.
-
withLastOperationMessage
Set the lastOperationMessage property: Message returned for the last Maintenance Operation.- Parameters:
lastOperationMessage- the lastOperationMessage value to set.- Returns:
- the MaintenanceRedeployStatus object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<MaintenanceRedeployStatus>- Throws:
IOException
-
fromJson
public static MaintenanceRedeployStatus fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of MaintenanceRedeployStatus from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of MaintenanceRedeployStatus if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the MaintenanceRedeployStatus.
-