Class VirtualMachineSchemaProperties
java.lang.Object
com.azure.resourcemanager.machinelearning.models.VirtualMachineSchemaProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<VirtualMachineSchemaProperties>
public final class VirtualMachineSchemaProperties
extends Object
implements com.azure.json.JsonSerializable<VirtualMachineSchemaProperties>
The VirtualMachineSchemaProperties model.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of VirtualMachineSchemaProperties class. -
Method Summary
Modifier and TypeMethodDescriptionaddress()Get the address property: Public IP address of the virtual machine.Get the administratorAccount property: Admin credentials for virtual machine.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of VirtualMachineSchemaProperties from the JsonReader.Get the isNotebookInstanceCompute property: Indicates whether this compute will be used for running notebooks.Get the notebookServerPort property: Notebook server port open for ssh connections.sshPort()Get the sshPort property: Port open for ssh connections.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Get the virtualMachineSize property: Virtual Machine size.withAddress(String address) Set the address property: Public IP address of the virtual machine.withAdministratorAccount(VirtualMachineSshCredentials administratorAccount) Set the administratorAccount property: Admin credentials for virtual machine.withIsNotebookInstanceCompute(Boolean isNotebookInstanceCompute) Set the isNotebookInstanceCompute property: Indicates whether this compute will be used for running notebooks.withNotebookServerPort(Integer notebookServerPort) Set the notebookServerPort property: Notebook server port open for ssh connections.withSshPort(Integer sshPort) Set the sshPort property: Port open for ssh connections.withVirtualMachineSize(String virtualMachineSize) Set the virtualMachineSize property: Virtual Machine size.Methods inherited from class java.lang.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
-
VirtualMachineSchemaProperties
public VirtualMachineSchemaProperties()Creates an instance of VirtualMachineSchemaProperties class.
-
-
Method Details
-
virtualMachineSize
Get the virtualMachineSize property: Virtual Machine size.- Returns:
- the virtualMachineSize value.
-
withVirtualMachineSize
Set the virtualMachineSize property: Virtual Machine size.- Parameters:
virtualMachineSize- the virtualMachineSize value to set.- Returns:
- the VirtualMachineSchemaProperties object itself.
-
sshPort
Get the sshPort property: Port open for ssh connections.- Returns:
- the sshPort value.
-
withSshPort
Set the sshPort property: Port open for ssh connections.- Parameters:
sshPort- the sshPort value to set.- Returns:
- the VirtualMachineSchemaProperties object itself.
-
notebookServerPort
Get the notebookServerPort property: Notebook server port open for ssh connections.- Returns:
- the notebookServerPort value.
-
withNotebookServerPort
Set the notebookServerPort property: Notebook server port open for ssh connections.- Parameters:
notebookServerPort- the notebookServerPort value to set.- Returns:
- the VirtualMachineSchemaProperties object itself.
-
address
Get the address property: Public IP address of the virtual machine.- Returns:
- the address value.
-
withAddress
Set the address property: Public IP address of the virtual machine.- Parameters:
address- the address value to set.- Returns:
- the VirtualMachineSchemaProperties object itself.
-
administratorAccount
Get the administratorAccount property: Admin credentials for virtual machine.- Returns:
- the administratorAccount value.
-
withAdministratorAccount
public VirtualMachineSchemaProperties withAdministratorAccount(VirtualMachineSshCredentials administratorAccount) Set the administratorAccount property: Admin credentials for virtual machine.- Parameters:
administratorAccount- the administratorAccount value to set.- Returns:
- the VirtualMachineSchemaProperties object itself.
-
isNotebookInstanceCompute
Get the isNotebookInstanceCompute property: Indicates whether this compute will be used for running notebooks.- Returns:
- the isNotebookInstanceCompute value.
-
withIsNotebookInstanceCompute
public VirtualMachineSchemaProperties withIsNotebookInstanceCompute(Boolean isNotebookInstanceCompute) Set the isNotebookInstanceCompute property: Indicates whether this compute will be used for running notebooks.- Parameters:
isNotebookInstanceCompute- the isNotebookInstanceCompute value to set.- Returns:
- the VirtualMachineSchemaProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<VirtualMachineSchemaProperties>- Throws:
IOException
-
fromJson
public static VirtualMachineSchemaProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of VirtualMachineSchemaProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of VirtualMachineSchemaProperties 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 VirtualMachineSchemaProperties.
-