Class SshPublicKeyGenerateKeyPairResultInner
- java.lang.Object
-
- com.azure.resourcemanager.compute.fluent.models.SshPublicKeyGenerateKeyPairResultInner
-
public final class SshPublicKeyGenerateKeyPairResultInner extends Object
Response from generation of an SSH key pair.
-
-
Constructor Summary
Constructors Constructor Description SshPublicKeyGenerateKeyPairResultInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringid()Get the id property: The ARM resource id in the form of /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/providers/Microsoft.Compute/sshPublicKeys/{SshPublicKeyName}.StringprivateKey()Get the privateKey property: Private key portion of the key pair used to authenticate to a virtual machine through ssh.StringpublicKey()Get the publicKey property: Public key portion of the key pair used to authenticate to a virtual machine through ssh.voidvalidate()Validates the instance.SshPublicKeyGenerateKeyPairResultInnerwithId(String id)Set the id property: The ARM resource id in the form of /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/providers/Microsoft.Compute/sshPublicKeys/{SshPublicKeyName}.SshPublicKeyGenerateKeyPairResultInnerwithPrivateKey(String privateKey)Set the privateKey property: Private key portion of the key pair used to authenticate to a virtual machine through ssh.SshPublicKeyGenerateKeyPairResultInnerwithPublicKey(String publicKey)Set the publicKey property: Public key portion of the key pair used to authenticate to a virtual machine through ssh.
-
-
-
Method Detail
-
privateKey
public String privateKey()
Get the privateKey property: Private key portion of the key pair used to authenticate to a virtual machine through ssh. The private key is returned in RFC3447 format and should be treated as a secret.- Returns:
- the privateKey value.
-
withPrivateKey
public SshPublicKeyGenerateKeyPairResultInner withPrivateKey(String privateKey)
Set the privateKey property: Private key portion of the key pair used to authenticate to a virtual machine through ssh. The private key is returned in RFC3447 format and should be treated as a secret.- Parameters:
privateKey- the privateKey value to set.- Returns:
- the SshPublicKeyGenerateKeyPairResultInner object itself.
-
publicKey
public String publicKey()
Get the publicKey property: Public key portion of the key pair used to authenticate to a virtual machine through ssh. The public key is in ssh-rsa format.- Returns:
- the publicKey value.
-
withPublicKey
public SshPublicKeyGenerateKeyPairResultInner withPublicKey(String publicKey)
Set the publicKey property: Public key portion of the key pair used to authenticate to a virtual machine through ssh. The public key is in ssh-rsa format.- Parameters:
publicKey- the publicKey value to set.- Returns:
- the SshPublicKeyGenerateKeyPairResultInner object itself.
-
id
public String id()
Get the id property: The ARM resource id in the form of /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/providers/Microsoft.Compute/sshPublicKeys/{SshPublicKeyName}.- Returns:
- the id value.
-
withId
public SshPublicKeyGenerateKeyPairResultInner withId(String id)
Set the id property: The ARM resource id in the form of /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/providers/Microsoft.Compute/sshPublicKeys/{SshPublicKeyName}.- Parameters:
id- the id value to set.- Returns:
- the SshPublicKeyGenerateKeyPairResultInner object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-