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 Details

    • VirtualMachineSchemaProperties

      public VirtualMachineSchemaProperties()
      Creates an instance of VirtualMachineSchemaProperties class.
  • Method Details

    • virtualMachineSize

      public String virtualMachineSize()
      Get the virtualMachineSize property: Virtual Machine size.
      Returns:
      the virtualMachineSize value.
    • withVirtualMachineSize

      public VirtualMachineSchemaProperties withVirtualMachineSize(String virtualMachineSize)
      Set the virtualMachineSize property: Virtual Machine size.
      Parameters:
      virtualMachineSize - the virtualMachineSize value to set.
      Returns:
      the VirtualMachineSchemaProperties object itself.
    • sshPort

      public Integer sshPort()
      Get the sshPort property: Port open for ssh connections.
      Returns:
      the sshPort value.
    • withSshPort

      public VirtualMachineSchemaProperties withSshPort(Integer sshPort)
      Set the sshPort property: Port open for ssh connections.
      Parameters:
      sshPort - the sshPort value to set.
      Returns:
      the VirtualMachineSchemaProperties object itself.
    • notebookServerPort

      public Integer notebookServerPort()
      Get the notebookServerPort property: Notebook server port open for ssh connections.
      Returns:
      the notebookServerPort value.
    • withNotebookServerPort

      public VirtualMachineSchemaProperties withNotebookServerPort(Integer notebookServerPort)
      Set the notebookServerPort property: Notebook server port open for ssh connections.
      Parameters:
      notebookServerPort - the notebookServerPort value to set.
      Returns:
      the VirtualMachineSchemaProperties object itself.
    • address

      public String address()
      Get the address property: Public IP address of the virtual machine.
      Returns:
      the address value.
    • withAddress

      public VirtualMachineSchemaProperties withAddress(String address)
      Set the address property: Public IP address of the virtual machine.
      Parameters:
      address - the address value to set.
      Returns:
      the VirtualMachineSchemaProperties object itself.
    • administratorAccount

      public VirtualMachineSshCredentials 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

      public Boolean 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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.