VirtualMachinePatchParameters Class

  • java.lang.Object
    • com.azure.resourcemanager.networkcloud.models.VirtualMachinePatchParameters

Implements

public final class VirtualMachinePatchParameters
implements JsonSerializable<VirtualMachinePatchParameters>

VirtualMachinePatchParameters represents the body of the request to patch the virtual machine.

Constructor Summary

Constructor Description
VirtualMachinePatchParameters()

Creates an instance of VirtualMachinePatchParameters class.

Method Summary

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

Reads an instance of VirtualMachinePatchParameters from the JsonReader.

ManagedServiceIdentity identity()

Get the identity property: The identity for the resource.

Map<String,String> tags()

Get the tags property: The Azure resource tags that will replace the existing ones.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ImageRepositoryCredentials vmImageRepositoryCredentials()

Get the vmImageRepositoryCredentials property: The credentials used to login to the image repository that has access to the specified image.

VirtualMachinePatchParameters withIdentity(ManagedServiceIdentity identity)

Set the identity property: The identity for the resource.

VirtualMachinePatchParameters withTags(Map<String,String> tags)

Set the tags property: The Azure resource tags that will replace the existing ones.

VirtualMachinePatchParameters withVmImageRepositoryCredentials(ImageRepositoryCredentials vmImageRepositoryCredentials)

Set the vmImageRepositoryCredentials property: The credentials used to login to the image repository that has access to the specified image.

Methods inherited from java.lang.Object

Constructor Details

VirtualMachinePatchParameters

public VirtualMachinePatchParameters()

Creates an instance of VirtualMachinePatchParameters class.

Method Details

fromJson

public static VirtualMachinePatchParameters fromJson(JsonReader jsonReader)

Reads an instance of VirtualMachinePatchParameters from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

identity

public ManagedServiceIdentity identity()

Get the identity property: The identity for the resource.

Returns:

the identity value.

tags

public Map<String,String> tags()

Get the tags property: The Azure resource tags that will replace the existing ones.

Returns:

the tags value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

vmImageRepositoryCredentials

public ImageRepositoryCredentials vmImageRepositoryCredentials()

Get the vmImageRepositoryCredentials property: The credentials used to login to the image repository that has access to the specified image.

Returns:

the vmImageRepositoryCredentials value.

withIdentity

public VirtualMachinePatchParameters withIdentity(ManagedServiceIdentity identity)

Set the identity property: The identity for the resource.

Parameters:

identity - the identity value to set.

Returns:

the VirtualMachinePatchParameters object itself.

withTags

public VirtualMachinePatchParameters withTags(Map<String,String> tags)

Set the tags property: The Azure resource tags that will replace the existing ones.

Parameters:

tags - the tags value to set.

Returns:

the VirtualMachinePatchParameters object itself.

withVmImageRepositoryCredentials

public VirtualMachinePatchParameters withVmImageRepositoryCredentials(ImageRepositoryCredentials vmImageRepositoryCredentials)

Set the vmImageRepositoryCredentials property: The credentials used to login to the image repository that has access to the specified image.

Parameters:

vmImageRepositoryCredentials - the vmImageRepositoryCredentials value to set.

Returns:

the VirtualMachinePatchParameters object itself.

Applies to