Class VirtualMachine
- java.lang.Object
-
- com.azure.resourcemanager.machinelearning.models.Compute
-
- com.azure.resourcemanager.machinelearning.models.VirtualMachine
-
public final class VirtualMachine extends Compute
A Machine Learning compute based on Azure Virtual Machines.
-
-
Constructor Summary
Constructors Constructor Description VirtualMachine()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VirtualMachineSchemaProperties
properties()
Get the properties property: The properties property.void
validate()
Validates the instance.VirtualMachine
withDescription(String description)
Set the description property: The description of the Machine Learning compute.VirtualMachine
withDisableLocalAuth(Boolean disableLocalAuth)
Set the disableLocalAuth property: Opt-out of local authentication and ensure customers can use only MSI and AAD exclusively for authentication.VirtualMachine
withProperties(VirtualMachineSchemaProperties properties)
Set the properties property: The properties property.VirtualMachine
withResourceId(String resourceId)
Set the resourceId property: ARM resource id of the underlying compute.-
Methods inherited from class com.azure.resourcemanager.machinelearning.models.Compute
computeLocation, createdOn, description, disableLocalAuth, isAttachedCompute, modifiedOn, provisioningErrors, provisioningState, resourceId
-
-
-
-
Method Detail
-
properties
public VirtualMachineSchemaProperties properties()
Get the properties property: The properties property.- Returns:
- the properties value.
-
withProperties
public VirtualMachine withProperties(VirtualMachineSchemaProperties properties)
Set the properties property: The properties property.- Parameters:
properties
- the properties value to set.- Returns:
- the VirtualMachine object itself.
-
withDescription
public VirtualMachine withDescription(String description)
Set the description property: The description of the Machine Learning compute.- Overrides:
withDescription
in classCompute
- Parameters:
description
- the description value to set.- Returns:
- the Compute object itself.
-
withResourceId
public VirtualMachine withResourceId(String resourceId)
Set the resourceId property: ARM resource id of the underlying compute.- Overrides:
withResourceId
in classCompute
- Parameters:
resourceId
- the resourceId value to set.- Returns:
- the Compute object itself.
-
withDisableLocalAuth
public VirtualMachine withDisableLocalAuth(Boolean disableLocalAuth)
Set the disableLocalAuth property: Opt-out of local authentication and ensure customers can use only MSI and AAD exclusively for authentication.- Overrides:
withDisableLocalAuth
in classCompute
- Parameters:
disableLocalAuth
- the disableLocalAuth value to set.- Returns:
- the Compute object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validate
in classCompute
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-