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 Details

    • MaintenanceRedeployStatus

      public MaintenanceRedeployStatus()
      Creates an instance of MaintenanceRedeployStatus class.
  • Method Details

    • isCustomerInitiatedMaintenanceAllowed

      public Boolean 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

      public OffsetDateTime 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

      public OffsetDateTime 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

      public OffsetDateTime 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

      public OffsetDateTime 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

      public MaintenanceOperationResultCodeTypes 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

      public String lastOperationMessage()
      Get the lastOperationMessage property: Message returned for the last Maintenance Operation.
      Returns:
      the lastOperationMessage value.
    • withLastOperationMessage

      public MaintenanceRedeployStatus withLastOperationMessage(String lastOperationMessage)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.