Class ComputeInstanceSshSettings
- java.lang.Object
-
- com.azure.resourcemanager.machinelearning.models.ComputeInstanceSshSettings
-
public final class ComputeInstanceSshSettings extends Object
Specifies policy and settings for SSH access.
-
-
Constructor Summary
Constructors Constructor Description ComputeInstanceSshSettings()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
adminPublicKey()
Get the adminPublicKey property: Specifies the SSH rsa public key file as a string.String
adminUsername()
Get the adminUsername property: Describes the admin user name.Integer
sshPort()
Get the sshPort property: Describes the port for connecting through SSH.SshPublicAccess
sshPublicAccess()
Get the sshPublicAccess property: Access policy for SSH State of the public SSH port.void
validate()
Validates the instance.ComputeInstanceSshSettings
withAdminPublicKey(String adminPublicKey)
Set the adminPublicKey property: Specifies the SSH rsa public key file as a string.ComputeInstanceSshSettings
withSshPublicAccess(SshPublicAccess sshPublicAccess)
Set the sshPublicAccess property: Access policy for SSH State of the public SSH port.
-
-
-
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.
-
-