Class VirtualMachineInstanceViewInner
java.lang.Object
com.azure.resourcemanager.compute.fluent.models.VirtualMachineInstanceViewInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<VirtualMachineInstanceViewInner>
public final class VirtualMachineInstanceViewInner
extends Object
implements com.azure.json.JsonSerializable<VirtualMachineInstanceViewInner>
The instance view of a virtual machine.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of VirtualMachineInstanceViewInner class. -
Method Summary
Modifier and TypeMethodDescriptionGet 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.Get the bootDiagnostics property: Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status.Get the computerName property: The computer name assigned to the virtual machine.disks()Get the disks property: The virtual machine disk information.Get the extensions property: The extensions information.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of VirtualMachineInstanceViewInner from the JsonReader.Get the hyperVGeneration property: Specifies the HyperVGeneration Type associated with a resource.Get the isVMInStandbyPool property: [Preview Feature] Specifies whether the VM is currently in or out of the Standby Pool.Get the maintenanceRedeployStatus property: The Maintenance Operation status on the virtual machine.osName()Get the osName property: The Operating System running on the virtual machine.Get the osVersion property: The version of Operating System running on the virtual machine.Get the patchStatus property: [Preview Feature] The status of virtual machine patch operations.Get the platformFaultDomain property: Specifies the fault domain of the virtual machine.Get the platformUpdateDomain property: Specifies the update domain of the virtual machine.Get the rdpThumbPrint property: The Remote desktop certificate thumbprint.statuses()Get the statuses property: The resource status information.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.vmAgent()Get the vmAgent property: The VM Agent running on the virtual machine.vmHealth()Get the vmHealth property: The health status for the VM.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.withComputerName(String computerName) Set the computerName property: The computer name assigned to the virtual machine.withDisks(List<DiskInstanceView> disks) Set the disks property: The virtual machine disk information.withExtensions(List<VirtualMachineExtensionInstanceView> extensions) Set the extensions property: The extensions information.withHyperVGeneration(HyperVGenerationType hyperVGeneration) Set the hyperVGeneration property: Specifies the HyperVGeneration Type associated with a resource.withMaintenanceRedeployStatus(MaintenanceRedeployStatus maintenanceRedeployStatus) Set the maintenanceRedeployStatus property: The Maintenance Operation status on the virtual machine.withOsName(String osName) Set the osName property: The Operating System running on the virtual machine.withOsVersion(String osVersion) Set the osVersion property: The version of Operating System running on the virtual machine.withPatchStatus(VirtualMachinePatchStatus patchStatus) Set the patchStatus property: [Preview Feature] The status of virtual machine patch operations.withPlatformFaultDomain(Integer platformFaultDomain) Set the platformFaultDomain property: Specifies the fault domain of the virtual machine.withPlatformUpdateDomain(Integer platformUpdateDomain) Set the platformUpdateDomain property: Specifies the update domain of the virtual machine.withRdpThumbPrint(String rdpThumbPrint) Set the rdpThumbPrint property: The Remote desktop certificate thumbprint.withStatuses(List<InstanceViewStatus> statuses) Set the statuses property: The resource status information.Set the vmAgent property: The VM Agent running on the virtual machine.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
VirtualMachineInstanceViewInner
public VirtualMachineInstanceViewInner()Creates an instance of VirtualMachineInstanceViewInner class.
-
-
Method Details
-
platformUpdateDomain
Get the platformUpdateDomain property: Specifies the update domain of the virtual machine.- Returns:
- the platformUpdateDomain value.
-
withPlatformUpdateDomain
Set the platformUpdateDomain property: Specifies the update domain of the virtual machine.- Parameters:
platformUpdateDomain- the platformUpdateDomain value to set.- Returns:
- the VirtualMachineInstanceViewInner object itself.
-
platformFaultDomain
Get the platformFaultDomain property: Specifies the fault domain of the virtual machine.- Returns:
- the platformFaultDomain value.
-
withPlatformFaultDomain
Set the platformFaultDomain property: Specifies the fault domain of the virtual machine.- Parameters:
platformFaultDomain- the platformFaultDomain value to set.- Returns:
- the VirtualMachineInstanceViewInner object itself.
-
computerName
Get the computerName property: The computer name assigned to the virtual machine.- Returns:
- the computerName value.
-
withComputerName
Set the computerName property: The computer name assigned to the virtual machine.- Parameters:
computerName- the computerName value to set.- Returns:
- the VirtualMachineInstanceViewInner object itself.
-
osName
Get the osName property: The Operating System running on the virtual machine.- Returns:
- the osName value.
-
withOsName
Set the osName property: The Operating System running on the virtual machine.- Parameters:
osName- the osName value to set.- Returns:
- the VirtualMachineInstanceViewInner object itself.
-
osVersion
Get the osVersion property: The version of Operating System running on the virtual machine.- Returns:
- the osVersion value.
-
withOsVersion
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.
-
hyperVGeneration
Get the hyperVGeneration property: Specifies the HyperVGeneration Type associated with a resource.- Returns:
- the hyperVGeneration value.
-
withHyperVGeneration
Set the hyperVGeneration property: Specifies the HyperVGeneration Type associated with a resource.- Parameters:
hyperVGeneration- the hyperVGeneration value to set.- Returns:
- the VirtualMachineInstanceViewInner object itself.
-
rdpThumbPrint
Get the rdpThumbPrint property: The Remote desktop certificate thumbprint.- Returns:
- the rdpThumbPrint value.
-
withRdpThumbPrint
Set the rdpThumbPrint property: The Remote desktop certificate thumbprint.- Parameters:
rdpThumbPrint- the rdpThumbPrint value to set.- Returns:
- the VirtualMachineInstanceViewInner object itself.
-
vmAgent
Get the vmAgent property: The VM Agent running on the virtual machine.- Returns:
- the vmAgent value.
-
withVmAgent
Set the vmAgent property: The VM Agent running on the virtual machine.- Parameters:
vmAgent- the vmAgent value to set.- Returns:
- the VirtualMachineInstanceViewInner object itself.
-
maintenanceRedeployStatus
Get the maintenanceRedeployStatus property: The Maintenance Operation status on the virtual machine.- Returns:
- the maintenanceRedeployStatus value.
-
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.
-
disks
Get the disks property: The virtual machine disk information.- Returns:
- the disks value.
-
withDisks
Set the disks property: The virtual machine disk information.- Parameters:
disks- the disks value to set.- Returns:
- the VirtualMachineInstanceViewInner object itself.
-
extensions
Get the extensions property: The extensions information.- Returns:
- the extensions value.
-
withExtensions
public VirtualMachineInstanceViewInner withExtensions(List<VirtualMachineExtensionInstanceView> extensions) Set the extensions property: The extensions information.- Parameters:
extensions- the extensions value to set.- Returns:
- the VirtualMachineInstanceViewInner object itself.
-
vmHealth
Get the vmHealth property: The health status for the VM.- Returns:
- the vmHealth value.
-
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.
-
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.
-
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.
-
statuses
Get the statuses property: The resource status information.- Returns:
- the statuses value.
-
withStatuses
Set the statuses property: The resource status information.- Parameters:
statuses- the statuses value to set.- Returns:
- the VirtualMachineInstanceViewInner object itself.
-
patchStatus
Get the patchStatus property: [Preview Feature] The status of virtual machine patch operations.- Returns:
- the patchStatus value.
-
withPatchStatus
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.
-
isVMInStandbyPool
Get the isVMInStandbyPool property: [Preview Feature] Specifies whether the VM is currently in or out of the Standby Pool.- Returns:
- the isVMInStandbyPool value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<VirtualMachineInstanceViewInner>- Throws:
IOException
-
fromJson
public static VirtualMachineInstanceViewInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException 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.
-