Class ComputeInstanceSshSettings

java.lang.Object
com.azure.resourcemanager.machinelearning.models.ComputeInstanceSshSettings
All Implemented Interfaces:
com.azure.json.JsonSerializable<ComputeInstanceSshSettings>

public final class ComputeInstanceSshSettings extends Object implements com.azure.json.JsonSerializable<ComputeInstanceSshSettings>
Specifies policy and settings for SSH access.
  • Constructor Details

    • ComputeInstanceSshSettings

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

    • sshPublicAccess

      public SshPublicAccess sshPublicAccess()
      Get the sshPublicAccess property: State of the public SSH port. Possible values are: Disabled - Indicates that the public ssh port is closed on this instance. Enabled - Indicates that the public ssh port is open and accessible according to the VNet/subnet policy if applicable.
      Returns:
      the sshPublicAccess value.
    • withSshPublicAccess

      public ComputeInstanceSshSettings withSshPublicAccess(SshPublicAccess sshPublicAccess)
      Set the sshPublicAccess property: State of the public SSH port. Possible values are: Disabled - Indicates that the public ssh port is closed on this instance. Enabled - Indicates that the public ssh port is open and accessible according to the VNet/subnet policy if applicable.
      Parameters:
      sshPublicAccess - the sshPublicAccess value to set.
      Returns:
      the ComputeInstanceSshSettings object itself.
    • adminUsername

      public String adminUsername()
      Get the adminUsername property: Describes the admin user name.
      Returns:
      the adminUsername value.
    • sshPort

      public Integer sshPort()
      Get the sshPort property: Describes the port for connecting through SSH.
      Returns:
      the sshPort value.
    • adminPublicKey

      public String adminPublicKey()
      Get the adminPublicKey property: Specifies the SSH rsa public key file as a string. Use "ssh-keygen -t rsa -b 2048" to generate your SSH key pairs.
      Returns:
      the adminPublicKey value.
    • withAdminPublicKey

      public ComputeInstanceSshSettings withAdminPublicKey(String adminPublicKey)
      Set the adminPublicKey property: Specifies the SSH rsa public key file as a string. Use "ssh-keygen -t rsa -b 2048" to generate your SSH key pairs.
      Parameters:
      adminPublicKey - the adminPublicKey value to set.
      Returns:
      the ComputeInstanceSshSettings 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<ComputeInstanceSshSettings>
      Throws:
      IOException
    • fromJson

      public static ComputeInstanceSshSettings fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ComputeInstanceSshSettings from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ComputeInstanceSshSettings 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 ComputeInstanceSshSettings.