Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See License.txt in the project root for license information. Code generated by Microsoft (R) AutoRest Code Generator.
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. */
package com.microsoft.azure.management.compute.implementation; import com.microsoft.azure.management.compute.HyperVGenerationType; import com.microsoft.azure.management.compute.VirtualMachineAgentInstanceView; import com.microsoft.azure.management.compute.MaintenanceRedeployStatus; import java.util.List; import com.microsoft.azure.management.compute.DiskInstanceView; import com.microsoft.azure.management.compute.VirtualMachineExtensionInstanceView; import com.microsoft.azure.management.compute.VirtualMachineHealthStatus; import com.microsoft.azure.management.compute.BootDiagnosticsInstanceView; import com.microsoft.azure.management.compute.InstanceViewStatus; import com.microsoft.azure.management.compute.VirtualMachinePatchStatus; import com.fasterxml.jackson.annotation.JsonProperty;
The instance view of a virtual machine.
/** * The instance view of a virtual machine. */
public class VirtualMachineInstanceViewInner {
Specifies the update domain of the virtual machine.
/** * Specifies the update domain of the virtual machine. */
@JsonProperty(value = "platformUpdateDomain") private Integer platformUpdateDomain;
Specifies the fault domain of the virtual machine.
/** * Specifies the fault domain of the virtual machine. */
@JsonProperty(value = "platformFaultDomain") private Integer platformFaultDomain;
The computer name assigned to the virtual machine.
/** * The computer name assigned to the virtual machine. */
@JsonProperty(value = "computerName") private String computerName;
The Operating System running on the virtual machine.
/** * The Operating System running on the virtual machine. */
@JsonProperty(value = "osName") private String osName;
The version of Operating System running on the virtual machine.
/** * The version of Operating System running on the virtual machine. */
@JsonProperty(value = "osVersion") private String osVersion;
Specifies the HyperVGeneration Type associated with a resource. Possible values include: 'V1', 'V2'.
/** * Specifies the HyperVGeneration Type associated with a resource. Possible * values include: 'V1', 'V2'. */
@JsonProperty(value = "hyperVGeneration") private HyperVGenerationType hyperVGeneration;
The Remote desktop certificate thumbprint.
/** * The Remote desktop certificate thumbprint. */
@JsonProperty(value = "rdpThumbPrint") private String rdpThumbPrint;
The VM Agent running on the virtual machine.
/** * The VM Agent running on the virtual machine. */
@JsonProperty(value = "vmAgent") private VirtualMachineAgentInstanceView vmAgent;
The Maintenance Operation status on the virtual machine.
/** * The Maintenance Operation status on the virtual machine. */
@JsonProperty(value = "maintenanceRedeployStatus") private MaintenanceRedeployStatus maintenanceRedeployStatus;
The virtual machine disk information.
/** * The virtual machine disk information. */
@JsonProperty(value = "disks") private List<DiskInstanceView> disks;
The extensions information.
/** * The extensions information. */
@JsonProperty(value = "extensions") private List<VirtualMachineExtensionInstanceView> extensions;
The health status for the VM.
/** * The health status for the VM. */
@JsonProperty(value = "vmHealth", access = JsonProperty.Access.WRITE_ONLY) private VirtualMachineHealthStatus vmHealth;
Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. <br><br> You can easily view the output of your console log. <br><br> Azure also enables you to see a screenshot of the VM from the hypervisor.
/** * Boot Diagnostics is a debugging feature which allows you to view Console * Output and Screenshot to diagnose VM status. &lt;br&gt;&lt;br&gt; You * can easily view the output of your console log. &lt;br&gt;&lt;br&gt; * Azure also enables you to see a screenshot of the VM from the * hypervisor. */
@JsonProperty(value = "bootDiagnostics") private BootDiagnosticsInstanceView bootDiagnostics;
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. <br><br>Minimum api-version: 2020-06-01.
/** * 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. &lt;br&gt;&lt;br&gt;Minimum api-version: 2020-06-01. */
@JsonProperty(value = "assignedHost", access = JsonProperty.Access.WRITE_ONLY) private String assignedHost;
The resource status information.
/** * The resource status information. */
@JsonProperty(value = "statuses") private List<InstanceViewStatus> statuses;
[Preview Feature] The status of virtual machine patch operations.
/** * [Preview Feature] The status of virtual machine patch operations. */
@JsonProperty(value = "patchStatus") private VirtualMachinePatchStatus patchStatus;
Get specifies the update domain of the virtual machine.
Returns:the platformUpdateDomain value
/** * Get specifies the update domain of the virtual machine. * * @return the platformUpdateDomain value */
public Integer platformUpdateDomain() { return this.platformUpdateDomain; }
Set specifies the update domain of the virtual machine.
Params:
  • platformUpdateDomain – the platformUpdateDomain value to set
Returns:the VirtualMachineInstanceViewInner object itself.
/** * Set specifies the update domain of the virtual machine. * * @param platformUpdateDomain the platformUpdateDomain value to set * @return the VirtualMachineInstanceViewInner object itself. */
public VirtualMachineInstanceViewInner withPlatformUpdateDomain(Integer platformUpdateDomain) { this.platformUpdateDomain = platformUpdateDomain; return this; }
Get specifies the fault domain of the virtual machine.
Returns:the platformFaultDomain value
/** * Get specifies the fault domain of the virtual machine. * * @return the platformFaultDomain value */
public Integer platformFaultDomain() { return this.platformFaultDomain; }
Set specifies the fault domain of the virtual machine.
Params:
  • platformFaultDomain – the platformFaultDomain value to set
Returns:the VirtualMachineInstanceViewInner object itself.
/** * Set specifies the fault domain of the virtual machine. * * @param platformFaultDomain the platformFaultDomain value to set * @return the VirtualMachineInstanceViewInner object itself. */
public VirtualMachineInstanceViewInner withPlatformFaultDomain(Integer platformFaultDomain) { this.platformFaultDomain = platformFaultDomain; return this; }
Get the computer name assigned to the virtual machine.
Returns:the computerName value
/** * Get the computer name assigned to the virtual machine. * * @return the computerName value */
public String computerName() { return this.computerName; }
Set the computer name assigned to the virtual machine.
Params:
  • computerName – the computerName value to set
Returns:the VirtualMachineInstanceViewInner object itself.
/** * Set the computer name assigned to the virtual machine. * * @param computerName the computerName value to set * @return the VirtualMachineInstanceViewInner object itself. */
public VirtualMachineInstanceViewInner withComputerName(String computerName) { this.computerName = computerName; return this; }
Get the Operating System running on the virtual machine.
Returns:the osName value
/** * Get the Operating System running on the virtual machine. * * @return the osName value */
public String osName() { return this.osName; }
Set the Operating System running on the virtual machine.
Params:
  • osName – the osName value to set
Returns:the VirtualMachineInstanceViewInner object itself.
/** * Set the Operating System running on the virtual machine. * * @param osName the osName value to set * @return the VirtualMachineInstanceViewInner object itself. */
public VirtualMachineInstanceViewInner withOsName(String osName) { this.osName = osName; return this; }
Get the version of Operating System running on the virtual machine.
Returns:the osVersion value
/** * Get the version of Operating System running on the virtual machine. * * @return the osVersion value */
public String osVersion() { return this.osVersion; }
Set the version of Operating System running on the virtual machine.
Params:
  • osVersion – the osVersion value to set
Returns:the VirtualMachineInstanceViewInner object itself.
/** * Set the version of Operating System running on the virtual machine. * * @param osVersion the osVersion value to set * @return the VirtualMachineInstanceViewInner object itself. */
public VirtualMachineInstanceViewInner withOsVersion(String osVersion) { this.osVersion = osVersion; return this; }
Get specifies the HyperVGeneration Type associated with a resource. Possible values include: 'V1', 'V2'.
Returns:the hyperVGeneration value
/** * Get specifies the HyperVGeneration Type associated with a resource. Possible values include: 'V1', 'V2'. * * @return the hyperVGeneration value */
public HyperVGenerationType hyperVGeneration() { return this.hyperVGeneration; }
Set specifies the HyperVGeneration Type associated with a resource. Possible values include: 'V1', 'V2'.
Params:
  • hyperVGeneration – the hyperVGeneration value to set
Returns:the VirtualMachineInstanceViewInner object itself.
/** * Set specifies the HyperVGeneration Type associated with a resource. Possible values include: 'V1', 'V2'. * * @param hyperVGeneration the hyperVGeneration value to set * @return the VirtualMachineInstanceViewInner object itself. */
public VirtualMachineInstanceViewInner withHyperVGeneration(HyperVGenerationType hyperVGeneration) { this.hyperVGeneration = hyperVGeneration; return this; }
Get the Remote desktop certificate thumbprint.
Returns:the rdpThumbPrint value
/** * Get the Remote desktop certificate thumbprint. * * @return the rdpThumbPrint value */
public String rdpThumbPrint() { return this.rdpThumbPrint; }
Set the Remote desktop certificate thumbprint.
Params:
  • rdpThumbPrint – the rdpThumbPrint value to set
Returns:the VirtualMachineInstanceViewInner object itself.
/** * Set the Remote desktop certificate thumbprint. * * @param rdpThumbPrint the rdpThumbPrint value to set * @return the VirtualMachineInstanceViewInner object itself. */
public VirtualMachineInstanceViewInner withRdpThumbPrint(String rdpThumbPrint) { this.rdpThumbPrint = rdpThumbPrint; return this; }
Get the VM Agent running on the virtual machine.
Returns:the vmAgent value
/** * Get the VM Agent running on the virtual machine. * * @return the vmAgent value */
public VirtualMachineAgentInstanceView vmAgent() { return this.vmAgent; }
Set the VM Agent running on the virtual machine.
Params:
  • vmAgent – the vmAgent value to set
Returns:the VirtualMachineInstanceViewInner object itself.
/** * Set the VM Agent running on the virtual machine. * * @param vmAgent the vmAgent value to set * @return the VirtualMachineInstanceViewInner object itself. */
public VirtualMachineInstanceViewInner withVmAgent(VirtualMachineAgentInstanceView vmAgent) { this.vmAgent = vmAgent; return this; }
Get the Maintenance Operation status on the virtual machine.
Returns:the maintenanceRedeployStatus value
/** * Get the Maintenance Operation status on the virtual machine. * * @return the maintenanceRedeployStatus value */
public MaintenanceRedeployStatus maintenanceRedeployStatus() { return this.maintenanceRedeployStatus; }
Set the Maintenance Operation status on the virtual machine.
Params:
  • maintenanceRedeployStatus – the maintenanceRedeployStatus value to set
Returns:the VirtualMachineInstanceViewInner object itself.
/** * Set the Maintenance Operation status on the virtual machine. * * @param maintenanceRedeployStatus the maintenanceRedeployStatus value to set * @return the VirtualMachineInstanceViewInner object itself. */
public VirtualMachineInstanceViewInner withMaintenanceRedeployStatus(MaintenanceRedeployStatus maintenanceRedeployStatus) { this.maintenanceRedeployStatus = maintenanceRedeployStatus; return this; }
Get the virtual machine disk information.
Returns:the disks value
/** * Get the virtual machine disk information. * * @return the disks value */
public List<DiskInstanceView> disks() { return this.disks; }
Set the virtual machine disk information.
Params:
  • disks – the disks value to set
Returns:the VirtualMachineInstanceViewInner object itself.
/** * Set the virtual machine disk information. * * @param disks the disks value to set * @return the VirtualMachineInstanceViewInner object itself. */
public VirtualMachineInstanceViewInner withDisks(List<DiskInstanceView> disks) { this.disks = disks; return this; }
Get the extensions information.
Returns:the extensions value
/** * Get the extensions information. * * @return the extensions value */
public List<VirtualMachineExtensionInstanceView> extensions() { return this.extensions; }
Set the extensions information.
Params:
  • extensions – the extensions value to set
Returns:the VirtualMachineInstanceViewInner object itself.
/** * Set the extensions information. * * @param extensions the extensions value to set * @return the VirtualMachineInstanceViewInner object itself. */
public VirtualMachineInstanceViewInner withExtensions(List<VirtualMachineExtensionInstanceView> extensions) { this.extensions = extensions; return this; }
Get the health status for the VM.
Returns:the vmHealth value
/** * Get the health status for the VM. * * @return the vmHealth value */
public VirtualMachineHealthStatus vmHealth() { return this.vmHealth; }
Get boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. <br><br> You can easily view the output of your console log. <br><br> Azure also enables you to see a screenshot of the VM from the hypervisor.
Returns:the bootDiagnostics value
/** * Get boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. &lt;br&gt;&lt;br&gt; You can easily view the output of your console log. &lt;br&gt;&lt;br&gt; Azure also enables you to see a screenshot of the VM from the hypervisor. * * @return the bootDiagnostics value */
public BootDiagnosticsInstanceView bootDiagnostics() { return this.bootDiagnostics; }
Set boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. <br><br> You can easily view the output of your console log. <br><br> Azure also enables you to see a screenshot of the VM from the hypervisor.
Params:
  • bootDiagnostics – the bootDiagnostics value to set
Returns:the VirtualMachineInstanceViewInner object itself.
/** * Set boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. &lt;br&gt;&lt;br&gt; You can easily view the output of your console log. &lt;br&gt;&lt;br&gt; Azure also enables you to see a screenshot of the VM from the hypervisor. * * @param bootDiagnostics the bootDiagnostics value to set * @return the VirtualMachineInstanceViewInner object itself. */
public VirtualMachineInstanceViewInner withBootDiagnostics(BootDiagnosticsInstanceView bootDiagnostics) { this.bootDiagnostics = bootDiagnostics; return this; }
Get 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. <br><br>Minimum api-version: 2020-06-01.
Returns:the assignedHost value
/** * Get 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. &lt;br&gt;&lt;br&gt;Minimum api-version: 2020-06-01. * * @return the assignedHost value */
public String assignedHost() { return this.assignedHost; }
Get the resource status information.
Returns:the statuses value
/** * Get the resource status information. * * @return the statuses value */
public List<InstanceViewStatus> statuses() { return this.statuses; }
Set the resource status information.
Params:
  • statuses – the statuses value to set
Returns:the VirtualMachineInstanceViewInner object itself.
/** * Set the resource status information. * * @param statuses the statuses value to set * @return the VirtualMachineInstanceViewInner object itself. */
public VirtualMachineInstanceViewInner withStatuses(List<InstanceViewStatus> statuses) { this.statuses = statuses; return this; }
Get [Preview Feature] The status of virtual machine patch operations.
Returns:the patchStatus value
/** * Get [Preview Feature] The status of virtual machine patch operations. * * @return the patchStatus value */
public VirtualMachinePatchStatus patchStatus() { return this.patchStatus; }
Set [Preview Feature] The status of virtual machine patch operations.
Params:
  • patchStatus – the patchStatus value to set
Returns:the VirtualMachineInstanceViewInner object itself.
/** * Set [Preview Feature] The status of virtual machine patch operations. * * @param patchStatus the patchStatus value to set * @return the VirtualMachineInstanceViewInner object itself. */
public VirtualMachineInstanceViewInner withPatchStatus(VirtualMachinePatchStatus patchStatus) { this.patchStatus = patchStatus; return this; } }