VirtualMachineInstanceViewInner Class

  • java.lang.Object
    • com.azure.resourcemanager.compute.fluent.models.VirtualMachineInstanceViewInner

Implements

public final class VirtualMachineInstanceViewInner
implements JsonSerializable<VirtualMachineInstanceViewInner>

The instance view of a virtual machine.

Constructor Summary

Constructor Description
VirtualMachineInstanceViewInner()

Creates an instance of VirtualMachineInstanceViewInner class.

Method Summary

Modifier and Type Method and Description
String assignedHost()

Get the assignedHost property: Resource id of the dedicated host, on which the virtual machine is allocated through automatic placement, when the virtual machine is associated with a dedicated host group that has automatic placement enabled.

BootDiagnosticsInstanceView bootDiagnostics()

Get the bootDiagnostics property: Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status.

String computerName()

Get the computerName property: The computer name assigned to the virtual machine.

List<DiskInstanceView> disks()

Get the disks property: The virtual machine disk information.

List<VirtualMachineExtensionInstanceView> extensions()

Get the extensions property: The extensions information.

static VirtualMachineInstanceViewInner fromJson(JsonReader jsonReader)

Reads an instance of VirtualMachineInstanceViewInner from the JsonReader.

HyperVGenerationType hyperVGeneration()

Get the hyperVGeneration property: Specifies the HyperVGeneration Type associated with a resource.

Boolean isVMInStandbyPool()

Get the isVMInStandbyPool property: [Preview Feature] Specifies whether the VM is currently in or out of the Standby Pool.

MaintenanceRedeployStatus maintenanceRedeployStatus()

Get the maintenanceRedeployStatus property: The Maintenance Operation status on the virtual machine.

String osName()

Get the osName property: The Operating System running on the virtual machine.

String osVersion()

Get the osVersion property: The version of Operating System running on the virtual machine.

VirtualMachinePatchStatus patchStatus()

Get the patchStatus property: [Preview Feature] The status of virtual machine patch operations.

Integer platformFaultDomain()

Get the platformFaultDomain property: Specifies the fault domain of the virtual machine.

Integer platformUpdateDomain()

Get the platformUpdateDomain property: Specifies the update domain of the virtual machine.

String rdpThumbPrint()

Get the rdpThumbPrint property: The Remote desktop certificate thumbprint.

List<InstanceViewStatus> statuses()

Get the statuses property: The resource status information.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

VirtualMachineAgentInstanceView vmAgent()

Get the vmAgent property: The VM Agent running on the virtual machine.

VirtualMachineHealthStatus vmHealth()

Get the vmHealth property: The health status for the VM.

VirtualMachineInstanceViewInner withBootDiagnostics(BootDiagnosticsInstanceView bootDiagnostics)

Set the bootDiagnostics property: Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status.

VirtualMachineInstanceViewInner withComputerName(String computerName)

Set the computerName property: The computer name assigned to the virtual machine.

VirtualMachineInstanceViewInner withDisks(List<DiskInstanceView> disks)

Set the disks property: The virtual machine disk information.

VirtualMachineInstanceViewInner withExtensions(List<VirtualMachineExtensionInstanceView> extensions)

Set the extensions property: The extensions information.

VirtualMachineInstanceViewInner withHyperVGeneration(HyperVGenerationType hyperVGeneration)

Set the hyperVGeneration property: Specifies the HyperVGeneration Type associated with a resource.

VirtualMachineInstanceViewInner withMaintenanceRedeployStatus(MaintenanceRedeployStatus maintenanceRedeployStatus)

Set the maintenanceRedeployStatus property: The Maintenance Operation status on the virtual machine.

VirtualMachineInstanceViewInner withOsName(String osName)

Set the osName property: The Operating System running on the virtual machine.

VirtualMachineInstanceViewInner withOsVersion(String osVersion)

Set the osVersion property: The version of Operating System running on the virtual machine.

VirtualMachineInstanceViewInner withPatchStatus(VirtualMachinePatchStatus patchStatus)

Set the patchStatus property: [Preview Feature] The status of virtual machine patch operations.

VirtualMachineInstanceViewInner withPlatformFaultDomain(Integer platformFaultDomain)

Set the platformFaultDomain property: Specifies the fault domain of the virtual machine.

VirtualMachineInstanceViewInner withPlatformUpdateDomain(Integer platformUpdateDomain)

Set the platformUpdateDomain property: Specifies the update domain of the virtual machine.

VirtualMachineInstanceViewInner withRdpThumbPrint(String rdpThumbPrint)

Set the rdpThumbPrint property: The Remote desktop certificate thumbprint.

VirtualMachineInstanceViewInner withStatuses(List<InstanceViewStatus> statuses)

Set the statuses property: The resource status information.

VirtualMachineInstanceViewInner withVmAgent(VirtualMachineAgentInstanceView vmAgent)

Set the vmAgent property: The VM Agent running on the virtual machine.

Methods inherited from java.lang.Object

Constructor Details

VirtualMachineInstanceViewInner

public VirtualMachineInstanceViewInner()

Creates an instance of VirtualMachineInstanceViewInner class.

Method Details

assignedHost

public String assignedHost()

Get the assignedHost property: Resource id of the dedicated host, on which the virtual machine is allocated through automatic placement, when the virtual machine is associated with a dedicated host group that has automatic placement enabled. Minimum api-version: 2020-06-01.

Returns:

the assignedHost value.

bootDiagnostics

public BootDiagnosticsInstanceView bootDiagnostics()

Get the bootDiagnostics property: Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. You can easily view the output of your console log. Azure also enables you to see a screenshot of the VM from the hypervisor.

Returns:

the bootDiagnostics value.

computerName

public String computerName()

Get the computerName property: The computer name assigned to the virtual machine.

Returns:

the computerName value.

disks

public List disks()

Get the disks property: The virtual machine disk information.

Returns:

the disks value.

extensions

public List extensions()

Get the extensions property: The extensions information.

Returns:

the extensions value.

fromJson

public static VirtualMachineInstanceViewInner fromJson(JsonReader jsonReader)

Reads an instance of VirtualMachineInstanceViewInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

hyperVGeneration

public HyperVGenerationType hyperVGeneration()

Get the hyperVGeneration property: Specifies the HyperVGeneration Type associated with a resource.

Returns:

the hyperVGeneration value.

isVMInStandbyPool

public Boolean isVMInStandbyPool()

Get the isVMInStandbyPool property: [Preview Feature] Specifies whether the VM is currently in or out of the Standby Pool.

Returns:

the isVMInStandbyPool value.

maintenanceRedeployStatus

public MaintenanceRedeployStatus maintenanceRedeployStatus()

Get the maintenanceRedeployStatus property: The Maintenance Operation status on the virtual machine.

Returns:

the maintenanceRedeployStatus value.

osName

public String osName()

Get the osName property: The Operating System running on the virtual machine.

Returns:

the osName value.

osVersion

public String osVersion()

Get the osVersion property: The version of Operating System running on the virtual machine.

Returns:

the osVersion value.

patchStatus

public VirtualMachinePatchStatus patchStatus()

Get the patchStatus property: [Preview Feature] The status of virtual machine patch operations.

Returns:

the patchStatus value.

platformFaultDomain

public Integer platformFaultDomain()

Get the platformFaultDomain property: Specifies the fault domain of the virtual machine.

Returns:

the platformFaultDomain value.

platformUpdateDomain

public Integer platformUpdateDomain()

Get the platformUpdateDomain property: Specifies the update domain of the virtual machine.

Returns:

the platformUpdateDomain value.

rdpThumbPrint

public String rdpThumbPrint()

Get the rdpThumbPrint property: The Remote desktop certificate thumbprint.

Returns:

the rdpThumbPrint value.

statuses

public List statuses()

Get the statuses property: The resource status information.

Returns:

the statuses value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

vmAgent

public VirtualMachineAgentInstanceView vmAgent()

Get the vmAgent property: The VM Agent running on the virtual machine.

Returns:

the vmAgent value.

vmHealth

public VirtualMachineHealthStatus vmHealth()

Get the vmHealth property: The health status for the VM.

Returns:

the vmHealth value.

withBootDiagnostics

public VirtualMachineInstanceViewInner withBootDiagnostics(BootDiagnosticsInstanceView bootDiagnostics)

Set the bootDiagnostics property: Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. You can easily view the output of your console log. Azure also enables you to see a screenshot of the VM from the hypervisor.

Parameters:

bootDiagnostics - the bootDiagnostics value to set.

Returns:

the VirtualMachineInstanceViewInner object itself.

withComputerName

public VirtualMachineInstanceViewInner withComputerName(String computerName)

Set the computerName property: The computer name assigned to the virtual machine.

Parameters:

computerName - the computerName value to set.

Returns:

the VirtualMachineInstanceViewInner object itself.

withDisks

public VirtualMachineInstanceViewInner withDisks(List disks)

Set the disks property: The virtual machine disk information.

Parameters:

disks - the disks value to set.

Returns:

the VirtualMachineInstanceViewInner object itself.

withExtensions

public VirtualMachineInstanceViewInner withExtensions(List extensions)

Set the extensions property: The extensions information.

Parameters:

extensions - the extensions value to set.

Returns:

the VirtualMachineInstanceViewInner object itself.

withHyperVGeneration

public VirtualMachineInstanceViewInner withHyperVGeneration(HyperVGenerationType hyperVGeneration)

Set the hyperVGeneration property: Specifies the HyperVGeneration Type associated with a resource.

Parameters:

hyperVGeneration - the hyperVGeneration value to set.

Returns:

the VirtualMachineInstanceViewInner object itself.

withMaintenanceRedeployStatus

public VirtualMachineInstanceViewInner withMaintenanceRedeployStatus(MaintenanceRedeployStatus maintenanceRedeployStatus)

Set the maintenanceRedeployStatus property: The Maintenance Operation status on the virtual machine.

Parameters:

maintenanceRedeployStatus - the maintenanceRedeployStatus value to set.

Returns:

the VirtualMachineInstanceViewInner object itself.

withOsName

public VirtualMachineInstanceViewInner withOsName(String osName)

Set the osName property: The Operating System running on the virtual machine.

Parameters:

osName - the osName value to set.

Returns:

the VirtualMachineInstanceViewInner object itself.

withOsVersion

public VirtualMachineInstanceViewInner withOsVersion(String osVersion)

Set the osVersion property: The version of Operating System running on the virtual machine.

Parameters:

osVersion - the osVersion value to set.

Returns:

the VirtualMachineInstanceViewInner object itself.

withPatchStatus

public VirtualMachineInstanceViewInner withPatchStatus(VirtualMachinePatchStatus patchStatus)

Set the patchStatus property: [Preview Feature] The status of virtual machine patch operations.

Parameters:

patchStatus - the patchStatus value to set.

Returns:

the VirtualMachineInstanceViewInner object itself.

withPlatformFaultDomain

public VirtualMachineInstanceViewInner withPlatformFaultDomain(Integer platformFaultDomain)

Set the platformFaultDomain property: Specifies the fault domain of the virtual machine.

Parameters:

platformFaultDomain - the platformFaultDomain value to set.

Returns:

the VirtualMachineInstanceViewInner object itself.

withPlatformUpdateDomain

public VirtualMachineInstanceViewInner withPlatformUpdateDomain(Integer platformUpdateDomain)

Set the platformUpdateDomain property: Specifies the update domain of the virtual machine.

Parameters:

platformUpdateDomain - the platformUpdateDomain value to set.

Returns:

the VirtualMachineInstanceViewInner object itself.

withRdpThumbPrint

public VirtualMachineInstanceViewInner withRdpThumbPrint(String rdpThumbPrint)

Set the rdpThumbPrint property: The Remote desktop certificate thumbprint.

Parameters:

rdpThumbPrint - the rdpThumbPrint value to set.

Returns:

the VirtualMachineInstanceViewInner object itself.

withStatuses

public VirtualMachineInstanceViewInner withStatuses(List statuses)

Set the statuses property: The resource status information.

Parameters:

statuses - the statuses value to set.

Returns:

the VirtualMachineInstanceViewInner object itself.

withVmAgent

public VirtualMachineInstanceViewInner withVmAgent(VirtualMachineAgentInstanceView vmAgent)

Set the vmAgent property: The VM Agent running on the virtual machine.

Parameters:

vmAgent - the vmAgent value to set.

Returns:

the VirtualMachineInstanceViewInner object itself.

Applies to