Class VirtualMachineScaleSetVMInstanceViewInner
java.lang.Object
com.azure.resourcemanager.compute.fluent.models.VirtualMachineScaleSetVMInstanceViewInner
The instance view of a virtual machine scale set VM.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of VirtualMachineScaleSetVMInstanceViewInner 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: Specifies the host OS name of the virtual machine.disks()Get the disks property: The disks information.Get the extensions property: The extensions information.Get the hyperVGeneration property: The hypervisor generation of the Virtual Machine [V1, V2].Get the maintenanceRedeployStatus property: The Maintenance Operation status on the virtual machine.osName()Get the osName property: The Operating System running on the hybrid machine.Get the osVersion property: The version of Operating System running on the hybrid machine.Get the placementGroupId property: The placement group in which the VM is running.Get the platformFaultDomain property: The Fault Domain count.Get the platformUpdateDomain property: The Update Domain count.Get the rdpThumbPrint property: The Remote desktop certificate thumbprint.statuses()Get the statuses property: The resource status information.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: Specifies the host OS name of the virtual machine.withDisks(List<DiskInstanceView> disks) Set the disks property: The disks information.withExtensions(List<VirtualMachineExtensionInstanceView> extensions) Set the extensions property: The extensions information.withHyperVGeneration(HyperVGeneration hyperVGeneration) Set the hyperVGeneration property: The hypervisor generation of the Virtual Machine [V1, V2].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 hybrid machine.withOsVersion(String osVersion) Set the osVersion property: The version of Operating System running on the hybrid machine.withPlacementGroupId(String placementGroupId) Set the placementGroupId property: The placement group in which the VM is running.withPlatformFaultDomain(Integer platformFaultDomain) Set the platformFaultDomain property: The Fault Domain count.withPlatformUpdateDomain(Integer platformUpdateDomain) Set the platformUpdateDomain property: The Update Domain count.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.
-
Constructor Details
-
VirtualMachineScaleSetVMInstanceViewInner
public VirtualMachineScaleSetVMInstanceViewInner()Creates an instance of VirtualMachineScaleSetVMInstanceViewInner class.
-
-
Method Details
-
platformUpdateDomain
Get the platformUpdateDomain property: The Update Domain count.- Returns:
- the platformUpdateDomain value.
-
withPlatformUpdateDomain
public VirtualMachineScaleSetVMInstanceViewInner withPlatformUpdateDomain(Integer platformUpdateDomain) Set the platformUpdateDomain property: The Update Domain count.- Parameters:
platformUpdateDomain- the platformUpdateDomain value to set.- Returns:
- the VirtualMachineScaleSetVMInstanceViewInner object itself.
-
platformFaultDomain
Get the platformFaultDomain property: The Fault Domain count.- Returns:
- the platformFaultDomain value.
-
withPlatformFaultDomain
public VirtualMachineScaleSetVMInstanceViewInner withPlatformFaultDomain(Integer platformFaultDomain) Set the platformFaultDomain property: The Fault Domain count.- Parameters:
platformFaultDomain- the platformFaultDomain value to set.- Returns:
- the VirtualMachineScaleSetVMInstanceViewInner 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 VirtualMachineScaleSetVMInstanceViewInner object itself.
-
vmAgent
Get the vmAgent property: The VM Agent running on the virtual machine.- Returns:
- the vmAgent value.
-
withVmAgent
public VirtualMachineScaleSetVMInstanceViewInner withVmAgent(VirtualMachineAgentInstanceView vmAgent) Set the vmAgent property: The VM Agent running on the virtual machine.- Parameters:
vmAgent- the vmAgent value to set.- Returns:
- the VirtualMachineScaleSetVMInstanceViewInner object itself.
-
maintenanceRedeployStatus
Get the maintenanceRedeployStatus property: The Maintenance Operation status on the virtual machine.- Returns:
- the maintenanceRedeployStatus value.
-
withMaintenanceRedeployStatus
public VirtualMachineScaleSetVMInstanceViewInner withMaintenanceRedeployStatus(MaintenanceRedeployStatus maintenanceRedeployStatus) Set the maintenanceRedeployStatus property: The Maintenance Operation status on the virtual machine.- Parameters:
maintenanceRedeployStatus- the maintenanceRedeployStatus value to set.- Returns:
- the VirtualMachineScaleSetVMInstanceViewInner object itself.
-
disks
Get the disks property: The disks information.- Returns:
- the disks value.
-
withDisks
Set the disks property: The disks information.- Parameters:
disks- the disks value to set.- Returns:
- the VirtualMachineScaleSetVMInstanceViewInner object itself.
-
extensions
Get the extensions property: The extensions information.- Returns:
- the extensions value.
-
withExtensions
public VirtualMachineScaleSetVMInstanceViewInner withExtensions(List<VirtualMachineExtensionInstanceView> extensions) Set the extensions property: The extensions information.- Parameters:
extensions- the extensions value to set.- Returns:
- the VirtualMachineScaleSetVMInstanceViewInner 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 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:
bootDiagnostics- the bootDiagnostics value to set.- Returns:
- the VirtualMachineScaleSetVMInstanceViewInner object itself.
-
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 VirtualMachineScaleSetVMInstanceViewInner 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.
-
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:
- the placementGroupId value.
-
withPlacementGroupId
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:
placementGroupId- the placementGroupId value to set.- Returns:
- the VirtualMachineScaleSetVMInstanceViewInner object itself.
-
computerName
Get the computerName property: Specifies the host OS name of the virtual machine. <br><br> This name cannot be updated after the VM is created. <br><br> **Max-length (Windows):** 15 characters <br><br> **Max-length (Linux):** 64 characters. <br><br> 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:
- the computerName value.
-
withComputerName
Set the computerName property: Specifies the host OS name of the virtual machine. <br><br> This name cannot be updated after the VM is created. <br><br> **Max-length (Windows):** 15 characters <br><br> **Max-length (Linux):** 64 characters. <br><br> 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:
computerName- the computerName value to set.- Returns:
- the VirtualMachineScaleSetVMInstanceViewInner object itself.
-
osName
Get the osName property: The Operating System running on the hybrid machine.- Returns:
- the osName value.
-
withOsName
Set the osName property: The Operating System running on the hybrid machine.- Parameters:
osName- the osName value to set.- Returns:
- the VirtualMachineScaleSetVMInstanceViewInner object itself.
-
osVersion
Get the osVersion property: The version of Operating System running on the hybrid machine.- Returns:
- the osVersion value.
-
withOsVersion
Set the osVersion property: The version of Operating System running on the hybrid machine.- Parameters:
osVersion- the osVersion value to set.- Returns:
- the VirtualMachineScaleSetVMInstanceViewInner object itself.
-
hyperVGeneration
Get the hyperVGeneration property: The hypervisor generation of the Virtual Machine [V1, V2].- Returns:
- the hyperVGeneration value.
-
withHyperVGeneration
public VirtualMachineScaleSetVMInstanceViewInner withHyperVGeneration(HyperVGeneration hyperVGeneration) Set the hyperVGeneration property: The hypervisor generation of the Virtual Machine [V1, V2].- Parameters:
hyperVGeneration- the hyperVGeneration value to set.- Returns:
- the VirtualMachineScaleSetVMInstanceViewInner object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-