VirtualMachineInstanceUpdateRequest Class

  • java.lang.Object
    • com.azure.resourcemanager.azurestackhci.vm.models.VirtualMachineInstanceUpdateRequest

Implements

public final class VirtualMachineInstanceUpdateRequest
implements JsonSerializable<VirtualMachineInstanceUpdateRequest>

The virtual machine instance resource patch definition.

Constructor Summary

Constructor Description
VirtualMachineInstanceUpdateRequest()

Creates an instance of VirtualMachineInstanceUpdateRequest class.

Method Summary

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

Reads an instance of VirtualMachineInstanceUpdateRequest from the JsonReader.

Identity identity()

Get the identity property: Identity for the resource.

VirtualMachineInstanceUpdateProperties properties()

Get the properties property: Defines the resource properties for the update.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

VirtualMachineInstanceUpdateRequest withIdentity(Identity identity)

Set the identity property: Identity for the resource.

VirtualMachineInstanceUpdateRequest withProperties(VirtualMachineInstanceUpdateProperties properties)

Set the properties property: Defines the resource properties for the update.

Methods inherited from java.lang.Object

Constructor Details

VirtualMachineInstanceUpdateRequest

public VirtualMachineInstanceUpdateRequest()

Creates an instance of VirtualMachineInstanceUpdateRequest class.

Method Details

fromJson

public static VirtualMachineInstanceUpdateRequest fromJson(JsonReader jsonReader)

Reads an instance of VirtualMachineInstanceUpdateRequest from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

identity

public Identity identity()

Get the identity property: Identity for the resource.

Returns:

the identity value.

properties

public VirtualMachineInstanceUpdateProperties properties()

Get the properties property: Defines the resource properties for the update.

Returns:

the properties value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withIdentity

public VirtualMachineInstanceUpdateRequest withIdentity(Identity identity)

Set the identity property: Identity for the resource.

Parameters:

identity - the identity value to set.

Returns:

the VirtualMachineInstanceUpdateRequest object itself.

withProperties

public VirtualMachineInstanceUpdateRequest withProperties(VirtualMachineInstanceUpdateProperties properties)

Set the properties property: Defines the resource properties for the update.

Parameters:

properties - the properties value to set.

Returns:

the VirtualMachineInstanceUpdateRequest object itself.

Applies to