VirtualMachineScaleSetVMInstanceViewInner Class
- java.
lang. Object - com.
azure. resourcemanager. compute. fluent. models. VirtualMachineScaleSetVMInstanceViewInner
- com.
Implements
public final class VirtualMachineScaleSetVMInstanceViewInner
implements JsonSerializable<VirtualMachineScaleSetVMInstanceViewInner>
The instance view of a virtual machine scale set VM.
Constructor Summary
Constructor | Description |
---|---|
VirtualMachineScaleSetVMInstanceViewInner() |
Creates an instance of Virtual |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
assignedHost()
Get the assigned |
Boot |
bootDiagnostics()
Get the boot |
String |
computerName()
Get the computer |
List<Disk |
disks()
Get the disks property: The disks information. |
List<Virtual |
extensions()
Get the extensions property: The extensions information. |
static
Virtual |
fromJson(JsonReader jsonReader)
Reads an instance of Virtual |
Hyper |
hyperVGeneration()
Get the hyper |
Maintenance |
maintenanceRedeployStatus()
Get the maintenance |
String |
osName()
Get the os |
String |
osVersion()
Get the os |
String |
placementGroupId()
Get the placement |
Integer |
platformFaultDomain()
Get the platform |
Integer |
platformUpdateDomain()
Get the platform |
String |
rdpThumbPrint()
Get the rdp |
List<Instance |
statuses()
Get the statuses property: The resource status information. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Virtual |
vmAgent()
Get the vm |
Virtual |
vmHealth()
Get the vm |
Virtual |
withBootDiagnostics(BootDiagnosticsInstanceView bootDiagnostics)
Set the boot |
Virtual |
withComputerName(String computerName)
Set the computer |
Virtual |
withDisks(List<DiskInstanceView> disks)
Set the disks property: The disks information. |
Virtual |
withExtensions(List<VirtualMachineExtensionInstanceView> extensions)
Set the extensions property: The extensions information. |
Virtual |
withHyperVGeneration(HyperVGeneration hyperVGeneration)
Set the hyper |
Virtual |
withMaintenanceRedeployStatus(MaintenanceRedeployStatus maintenanceRedeployStatus)
Set the maintenance |
Virtual |
withOsName(String osName)
Set the os |
Virtual |
withOsVersion(String osVersion)
Set the os |
Virtual |
withPlacementGroupId(String placementGroupId)
Set the placement |
Virtual |
withPlatformFaultDomain(Integer platformFaultDomain)
Set the platform |
Virtual |
withPlatformUpdateDomain(Integer platformUpdateDomain)
Set the platform |
Virtual |
withRdpThumbPrint(String rdpThumbPrint)
Set the rdp |
Virtual |
withStatuses(List<InstanceViewStatus> statuses)
Set the statuses property: The resource status information. |
Virtual |
withVmAgent(VirtualMachineAgentInstanceView vmAgent)
Set the vm |
Methods inherited from java.lang.Object
Constructor Details
VirtualMachineScaleSetVMInstanceViewInner
public VirtualMachineScaleSetVMInstanceViewInner()
Creates an instance of VirtualMachineScaleSetVMInstanceViewInner 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:
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:
computerName
public String computerName()
Get the computerName property: Specifies the host OS name of the virtual machine.
This name cannot be updated after the VM is created.
**Max-length (Windows):** 15 characters
**Max-length (Linux):** 64 characters.
For naming conventions and restrictions see [Azure infrastructure services implementation guidelines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-infrastructure-subscription-accounts-guidelines?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json\#1-naming-conventions).
Returns:
disks
public List
Get the disks property: The disks information.
Returns:
extensions
public List
Get the extensions property: The extensions information.
Returns:
fromJson
public static VirtualMachineScaleSetVMInstanceViewInner fromJson(JsonReader jsonReader)
Reads an instance of VirtualMachineScaleSetVMInstanceViewInner from the JsonReader.
Parameters:
Returns:
Throws:
hyperVGeneration
public HyperVGeneration hyperVGeneration()
Get the hyperVGeneration property: The hypervisor generation of the Virtual Machine [V1, V2].
Returns:
maintenanceRedeployStatus
public MaintenanceRedeployStatus maintenanceRedeployStatus()
Get the maintenanceRedeployStatus property: The Maintenance Operation status on the virtual machine.
Returns:
osName
public String osName()
Get the osName property: The Operating System running on the hybrid machine.
Returns:
osVersion
public String osVersion()
Get the osVersion property: The version of Operating System running on the hybrid machine.
Returns:
placementGroupId
public String placementGroupId()
Get the placementGroupId property: The placement group in which the VM is running. If the VM is deallocated it will not have a placementGroupId.
Returns:
platformFaultDomain
public Integer platformFaultDomain()
Get the platformFaultDomain property: The Fault Domain count.
Returns:
platformUpdateDomain
public Integer platformUpdateDomain()
Get the platformUpdateDomain property: The Update Domain count.
Returns:
rdpThumbPrint
public String rdpThumbPrint()
Get the rdpThumbPrint property: The Remote desktop certificate thumbprint.
Returns:
statuses
public List
Get the statuses property: The resource status information.
Returns:
toJson
validate
public void validate()
Validates the instance.
vmAgent
public VirtualMachineAgentInstanceView vmAgent()
Get the vmAgent property: The VM Agent running on the virtual machine.
Returns:
vmHealth
public VirtualMachineHealthStatus vmHealth()
Get the vmHealth property: The health status for the VM.
Returns:
withBootDiagnostics
public VirtualMachineScaleSetVMInstanceViewInner 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:
Returns:
withComputerName
public VirtualMachineScaleSetVMInstanceViewInner withComputerName(String computerName)
Set the computerName property: Specifies the host OS name of the virtual machine.
This name cannot be updated after the VM is created.
**Max-length (Windows):** 15 characters
**Max-length (Linux):** 64 characters.
For naming conventions and restrictions see [Azure infrastructure services implementation guidelines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-infrastructure-subscription-accounts-guidelines?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json\#1-naming-conventions).
Parameters:
Returns:
withDisks
public VirtualMachineScaleSetVMInstanceViewInner withDisks(List
Set the disks property: The disks information.
Parameters:
Returns:
withExtensions
public VirtualMachineScaleSetVMInstanceViewInner withExtensions(List
Set the extensions property: The extensions information.
Parameters:
Returns:
withHyperVGeneration
public VirtualMachineScaleSetVMInstanceViewInner withHyperVGeneration(HyperVGeneration hyperVGeneration)
Set the hyperVGeneration property: The hypervisor generation of the Virtual Machine [V1, V2].
Parameters:
Returns:
withMaintenanceRedeployStatus
public VirtualMachineScaleSetVMInstanceViewInner withMaintenanceRedeployStatus(MaintenanceRedeployStatus maintenanceRedeployStatus)
Set the maintenanceRedeployStatus property: The Maintenance Operation status on the virtual machine.
Parameters:
Returns:
withOsName
public VirtualMachineScaleSetVMInstanceViewInner withOsName(String osName)
Set the osName property: The Operating System running on the hybrid machine.
Parameters:
Returns:
withOsVersion
public VirtualMachineScaleSetVMInstanceViewInner withOsVersion(String osVersion)
Set the osVersion property: The version of Operating System running on the hybrid machine.
Parameters:
Returns:
withPlacementGroupId
public VirtualMachineScaleSetVMInstanceViewInner withPlacementGroupId(String placementGroupId)
Set the placementGroupId property: The placement group in which the VM is running. If the VM is deallocated it will not have a placementGroupId.
Parameters:
Returns:
withPlatformFaultDomain
public VirtualMachineScaleSetVMInstanceViewInner withPlatformFaultDomain(Integer platformFaultDomain)
Set the platformFaultDomain property: The Fault Domain count.
Parameters:
Returns:
withPlatformUpdateDomain
public VirtualMachineScaleSetVMInstanceViewInner withPlatformUpdateDomain(Integer platformUpdateDomain)
Set the platformUpdateDomain property: The Update Domain count.
Parameters:
Returns:
withRdpThumbPrint
public VirtualMachineScaleSetVMInstanceViewInner withRdpThumbPrint(String rdpThumbPrint)
Set the rdpThumbPrint property: The Remote desktop certificate thumbprint.
Parameters:
Returns:
withStatuses
public VirtualMachineScaleSetVMInstanceViewInner withStatuses(List
Set the statuses property: The resource status information.
Parameters:
Returns:
withVmAgent
public VirtualMachineScaleSetVMInstanceViewInner withVmAgent(VirtualMachineAgentInstanceView vmAgent)
Set the vmAgent property: The VM Agent running on the virtual machine.
Parameters:
Returns:
Applies to
Azure SDK for Java