Class ComputeInstanceSshSettings


  • public final class ComputeInstanceSshSettings
    extends Object
    Specifies policy and settings for SSH access.
    • Constructor Detail

      • ComputeInstanceSshSettings

        public ComputeInstanceSshSettings()
    • Method Detail

      • sshPublicAccess

        public SshPublicAccess sshPublicAccess()
        Get the sshPublicAccess property: Access policy for SSH 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: Access policy for SSH 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.