Compartir a través de


VirtualMachineSoftwarePatchProperties Class

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

Implements

public final class VirtualMachineSoftwarePatchProperties
implements JsonSerializable<VirtualMachineSoftwarePatchProperties>

Describes the properties of a Virtual Machine software patch.

Constructor Summary

Constructor Description
VirtualMachineSoftwarePatchProperties()

Creates an instance of VirtualMachineSoftwarePatchProperties class.

Method Summary

Modifier and Type Method and Description
String activityId()

Get the activityId property: The activity ID of the operation that produced this result.

PatchAssessmentState assessmentState()

Get the assessmentState property: Describes the availability of a given patch.

List<String> classifications()

Get the classifications property: The classification(s) of the patch as provided by the patch publisher.

static VirtualMachineSoftwarePatchProperties fromJson(JsonReader jsonReader)

Reads an instance of VirtualMachineSoftwarePatchProperties from the JsonReader.

String kbId()

Get the kbId property: The KBID of the patch.

OffsetDateTime lastModifiedDateTime()

Get the lastModifiedDateTime property: The UTC timestamp of the last update to this patch record.

String name()

Get the name property: The friendly name of the patch.

String patchId()

Get the patchId property: A unique identifier for the patch.

OffsetDateTime publishedDate()

Get the publishedDate property: The UTC timestamp when the repository published this patch.

VMGuestPatchRebootBehavior rebootBehavior()

Get the rebootBehavior property: Describes the reboot requirements of the patch.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

String version()

Get the version property: The version number of the patch.

Methods inherited from java.lang.Object

Constructor Details

VirtualMachineSoftwarePatchProperties

public VirtualMachineSoftwarePatchProperties()

Creates an instance of VirtualMachineSoftwarePatchProperties class.

Method Details

activityId

public String activityId()

Get the activityId property: The activity ID of the operation that produced this result. It is used to correlate across CRP and extension logs.

Returns:

the activityId value.

assessmentState

public PatchAssessmentState assessmentState()

Get the assessmentState property: Describes the availability of a given patch.

Returns:

the assessmentState value.

classifications

public List classifications()

Get the classifications property: The classification(s) of the patch as provided by the patch publisher.

Returns:

the classifications value.

fromJson

public static VirtualMachineSoftwarePatchProperties fromJson(JsonReader jsonReader)

Reads an instance of VirtualMachineSoftwarePatchProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

kbId

public String kbId()

Get the kbId property: The KBID of the patch. Only applies to Windows patches.

Returns:

the kbId value.

lastModifiedDateTime

public OffsetDateTime lastModifiedDateTime()

Get the lastModifiedDateTime property: The UTC timestamp of the last update to this patch record.

Returns:

the lastModifiedDateTime value.

name

public String name()

Get the name property: The friendly name of the patch.

Returns:

the name value.

patchId

public String patchId()

Get the patchId property: A unique identifier for the patch.

Returns:

the patchId value.

publishedDate

public OffsetDateTime publishedDate()

Get the publishedDate property: The UTC timestamp when the repository published this patch.

Returns:

the publishedDate value.

rebootBehavior

public VMGuestPatchRebootBehavior rebootBehavior()

Get the rebootBehavior property: Describes the reboot requirements of the patch.

Returns:

the rebootBehavior value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

version

public String version()

Get the version property: The version number of the patch. This property applies only to Linux patches.

Returns:

the version value.

Applies to