VirtualMachinePatchStatus Class

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

Implements

public final class VirtualMachinePatchStatus
implements JsonSerializable<VirtualMachinePatchStatus>

The status of virtual machine patch operations.

Constructor Summary

Constructor Description
VirtualMachinePatchStatus()

Creates an instance of VirtualMachinePatchStatus class.

Method Summary

Modifier and Type Method and Description
AvailablePatchSummary availablePatchSummary()

Get the availablePatchSummary property: The available patch summary of the latest assessment operation for the virtual machine.

List<InstanceViewStatus> configurationStatuses()

Get the configurationStatuses property: The enablement status of the specified patchMode.

static VirtualMachinePatchStatus fromJson(JsonReader jsonReader)

Reads an instance of VirtualMachinePatchStatus from the JsonReader.

LastPatchInstallationSummary lastPatchInstallationSummary()

Get the lastPatchInstallationSummary property: The installation summary of the latest installation operation for the virtual machine.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

VirtualMachinePatchStatus withAvailablePatchSummary(AvailablePatchSummary availablePatchSummary)

Set the availablePatchSummary property: The available patch summary of the latest assessment operation for the virtual machine.

VirtualMachinePatchStatus withLastPatchInstallationSummary(LastPatchInstallationSummary lastPatchInstallationSummary)

Set the lastPatchInstallationSummary property: The installation summary of the latest installation operation for the virtual machine.

Methods inherited from java.lang.Object

Constructor Details

VirtualMachinePatchStatus

public VirtualMachinePatchStatus()

Creates an instance of VirtualMachinePatchStatus class.

Method Details

availablePatchSummary

public AvailablePatchSummary availablePatchSummary()

Get the availablePatchSummary property: The available patch summary of the latest assessment operation for the virtual machine.

Returns:

the availablePatchSummary value.

configurationStatuses

public List configurationStatuses()

Get the configurationStatuses property: The enablement status of the specified patchMode.

Returns:

the configurationStatuses value.

fromJson

public static VirtualMachinePatchStatus fromJson(JsonReader jsonReader)

Reads an instance of VirtualMachinePatchStatus from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of VirtualMachinePatchStatus 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 VirtualMachinePatchStatus.

lastPatchInstallationSummary

public LastPatchInstallationSummary lastPatchInstallationSummary()

Get the lastPatchInstallationSummary property: The installation summary of the latest installation operation for the virtual machine.

Returns:

the lastPatchInstallationSummary value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAvailablePatchSummary

public VirtualMachinePatchStatus withAvailablePatchSummary(AvailablePatchSummary availablePatchSummary)

Set the availablePatchSummary property: The available patch summary of the latest assessment operation for the virtual machine.

Parameters:

availablePatchSummary - the availablePatchSummary value to set.

Returns:

the VirtualMachinePatchStatus object itself.

withLastPatchInstallationSummary

public VirtualMachinePatchStatus withLastPatchInstallationSummary(LastPatchInstallationSummary lastPatchInstallationSummary)

Set the lastPatchInstallationSummary property: The installation summary of the latest installation operation for the virtual machine.

Parameters:

lastPatchInstallationSummary - the lastPatchInstallationSummary value to set.

Returns:

the VirtualMachinePatchStatus object itself.

Applies to