VirtualMachineInstanceManagedDiskParameters Class

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

Implements

public final class VirtualMachineInstanceManagedDiskParameters
implements JsonSerializable<VirtualMachineInstanceManagedDiskParameters>

The parameters of a managed disk.

Constructor Summary

Constructor Description
VirtualMachineInstanceManagedDiskParameters()

Creates an instance of VirtualMachineInstanceManagedDiskParameters class.

Method Summary

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

Reads an instance of VirtualMachineInstanceManagedDiskParameters from the JsonReader.

VMDiskSecurityProfile securityProfile()

Get the securityProfile property: Specifies the security profile for the managed disk.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

VirtualMachineInstanceManagedDiskParameters withSecurityProfile(VMDiskSecurityProfile securityProfile)

Set the securityProfile property: Specifies the security profile for the managed disk.

Methods inherited from java.lang.Object

Constructor Details

VirtualMachineInstanceManagedDiskParameters

public VirtualMachineInstanceManagedDiskParameters()

Creates an instance of VirtualMachineInstanceManagedDiskParameters class.

Method Details

fromJson

public static VirtualMachineInstanceManagedDiskParameters fromJson(JsonReader jsonReader)

Reads an instance of VirtualMachineInstanceManagedDiskParameters from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

securityProfile

public VMDiskSecurityProfile securityProfile()

Get the securityProfile property: Specifies the security profile for the managed disk.

Returns:

the securityProfile value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withSecurityProfile

public VirtualMachineInstanceManagedDiskParameters withSecurityProfile(VMDiskSecurityProfile securityProfile)

Set the securityProfile property: Specifies the security profile for the managed disk.

Parameters:

securityProfile - the securityProfile value to set.

Returns:

the VirtualMachineInstanceManagedDiskParameters object itself.

Applies to