VirtualMachinePatchProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.networkcloud.fluent.models.VirtualMachinePatchProperties

Implements

public final class VirtualMachinePatchProperties
implements JsonSerializable<VirtualMachinePatchProperties>

VirtualMachinePatchProperties represents the properties of the virtual machine that can be patched.

Constructor Summary

Constructor Description
VirtualMachinePatchProperties()

Creates an instance of VirtualMachinePatchProperties class.

Method Summary

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

Reads an instance of VirtualMachinePatchProperties from the JsonReader.

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.

VirtualMachinePatchProperties 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

VirtualMachinePatchProperties

public VirtualMachinePatchProperties()

Creates an instance of VirtualMachinePatchProperties class.

Method Details

fromJson

public static VirtualMachinePatchProperties fromJson(JsonReader jsonReader)

Reads an instance of VirtualMachinePatchProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

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.

withVmImageRepositoryCredentials

public VirtualMachinePatchProperties 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 VirtualMachinePatchProperties object itself.

Applies to