public final class SshPublicKeyGenerateKeyPairResultInner extends Object
| Constructor and Description |
|---|
SshPublicKeyGenerateKeyPairResultInner() |
| Modifier and Type | Method and Description |
|---|---|
String |
id()
Get the id property: The ARM resource id in the form of
/subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/providers/Microsoft.Compute/sshPublicKeys/{SshPublicKeyName}.
|
String |
privateKey()
Get the privateKey property: Private key portion of the key pair used to authenticate to a virtual machine
through ssh.
|
String |
publicKey()
Get the publicKey property: Public key portion of the key pair used to authenticate to a virtual machine through
ssh.
|
void |
validate()
Validates the instance.
|
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}.
|
SshPublicKeyGenerateKeyPairResultInner |
withPrivateKey(String privateKey)
Set the privateKey property: Private key portion of the key pair used to authenticate to a virtual machine
through ssh.
|
SshPublicKeyGenerateKeyPairResultInner |
withPublicKey(String publicKey)
Set the publicKey property: Public key portion of the key pair used to authenticate to a virtual machine through
ssh.
|
public SshPublicKeyGenerateKeyPairResultInner()
public String privateKey()
public SshPublicKeyGenerateKeyPairResultInner withPrivateKey(String privateKey)
privateKey - the privateKey value to set.public String publicKey()
public SshPublicKeyGenerateKeyPairResultInner withPublicKey(String publicKey)
publicKey - the publicKey value to set.public String id()
public SshPublicKeyGenerateKeyPairResultInner withId(String id)
id - the id value to set.public void validate()
IllegalArgumentException - thrown if the instance is not valid.Copyright © 2020 Microsoft Corporation. All rights reserved.