MaintenanceRedeployStatus Class

  • java.lang.Object
    • com.azure.resourcemanager.compute.models.MaintenanceRedeployStatus

Implements

public final class MaintenanceRedeployStatus
implements JsonSerializable<MaintenanceRedeployStatus>

Maintenance Operation Status.

Constructor Summary

Constructor Description
MaintenanceRedeployStatus()

Creates an instance of MaintenanceRedeployStatus class.

Method Summary

Modifier and Type Method and Description
static MaintenanceRedeployStatus fromJson(JsonReader jsonReader)

Reads an instance of MaintenanceRedeployStatus from the JsonReader.

Boolean isCustomerInitiatedMaintenanceAllowed()

Get the isCustomerInitiatedMaintenanceAllowed property: True, if customer is allowed to perform Maintenance.

String lastOperationMessage()

Get the lastOperationMessage property: Message returned for the last Maintenance Operation.

MaintenanceOperationResultCodeTypes lastOperationResultCode()

Get the lastOperationResultCode property: The Last Maintenance Operation Result Code.

OffsetDateTime maintenanceWindowEndTime()

Get the maintenanceWindowEndTime property: End Time for the Maintenance Window.

OffsetDateTime maintenanceWindowStartTime()

Get the maintenanceWindowStartTime property: Start Time for the Maintenance Window.

OffsetDateTime preMaintenanceWindowEndTime()

Get the preMaintenanceWindowEndTime property: End Time for the Pre Maintenance Window.

OffsetDateTime preMaintenanceWindowStartTime()

Get the preMaintenanceWindowStartTime property: Start Time for the Pre Maintenance Window.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

MaintenanceRedeployStatus withIsCustomerInitiatedMaintenanceAllowed(Boolean isCustomerInitiatedMaintenanceAllowed)

Set the isCustomerInitiatedMaintenanceAllowed property: True, if customer is allowed to perform Maintenance.

MaintenanceRedeployStatus withLastOperationMessage(String lastOperationMessage)

Set the lastOperationMessage property: Message returned for the last Maintenance Operation.

MaintenanceRedeployStatus withLastOperationResultCode(MaintenanceOperationResultCodeTypes lastOperationResultCode)

Set the lastOperationResultCode property: The Last Maintenance Operation Result Code.

MaintenanceRedeployStatus withMaintenanceWindowEndTime(OffsetDateTime maintenanceWindowEndTime)

Set the maintenanceWindowEndTime property: End Time for the Maintenance Window.

MaintenanceRedeployStatus withMaintenanceWindowStartTime(OffsetDateTime maintenanceWindowStartTime)

Set the maintenanceWindowStartTime property: Start Time for the Maintenance Window.

MaintenanceRedeployStatus withPreMaintenanceWindowEndTime(OffsetDateTime preMaintenanceWindowEndTime)

Set the preMaintenanceWindowEndTime property: End Time for the Pre Maintenance Window.

MaintenanceRedeployStatus withPreMaintenanceWindowStartTime(OffsetDateTime preMaintenanceWindowStartTime)

Set the preMaintenanceWindowStartTime property: Start Time for the Pre Maintenance Window.

Methods inherited from java.lang.Object

Constructor Details

MaintenanceRedeployStatus

public MaintenanceRedeployStatus()

Creates an instance of MaintenanceRedeployStatus class.

Method Details

fromJson

public static MaintenanceRedeployStatus fromJson(JsonReader jsonReader)

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.

isCustomerInitiatedMaintenanceAllowed

public Boolean isCustomerInitiatedMaintenanceAllowed()

Get the isCustomerInitiatedMaintenanceAllowed property: True, if customer is allowed to perform Maintenance.

Returns:

the isCustomerInitiatedMaintenanceAllowed value.

lastOperationMessage

public String lastOperationMessage()

Get the lastOperationMessage property: Message returned for the last Maintenance Operation.

Returns:

the lastOperationMessage value.

lastOperationResultCode

public MaintenanceOperationResultCodeTypes lastOperationResultCode()

Get the lastOperationResultCode property: The Last Maintenance Operation Result Code.

Returns:

the lastOperationResultCode value.

maintenanceWindowEndTime

public OffsetDateTime maintenanceWindowEndTime()

Get the maintenanceWindowEndTime property: End Time for the Maintenance Window.

Returns:

the maintenanceWindowEndTime value.

maintenanceWindowStartTime

public OffsetDateTime maintenanceWindowStartTime()

Get the maintenanceWindowStartTime property: Start Time for the Maintenance Window.

Returns:

the maintenanceWindowStartTime value.

preMaintenanceWindowEndTime

public OffsetDateTime preMaintenanceWindowEndTime()

Get the preMaintenanceWindowEndTime property: End Time for the Pre Maintenance Window.

Returns:

the preMaintenanceWindowEndTime value.

preMaintenanceWindowStartTime

public OffsetDateTime preMaintenanceWindowStartTime()

Get the preMaintenanceWindowStartTime property: Start Time for the Pre Maintenance Window.

Returns:

the preMaintenanceWindowStartTime value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

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.

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.

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.

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.

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.

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.

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.

Applies to