SshPublicKeyGenerateKeyPairResultInner Class
- java.
lang. Object - com.
azure. resourcemanager. compute. fluent. models. SshPublicKeyGenerateKeyPairResultInner
- com.
Implements
public final class SshPublicKeyGenerateKeyPairResultInner
implements JsonSerializable<SshPublicKeyGenerateKeyPairResultInner>
Response from generation of an SSH key pair.
Constructor Summary
Constructor | Description |
---|---|
SshPublicKeyGenerateKeyPairResultInner() |
Creates an instance of Ssh |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Ssh |
fromJson(JsonReader jsonReader)
Reads an instance of Ssh |
String |
id()
Get the id property: The ARM resource id in the form of /subscriptions/{Subscription |
String |
privateKey()
Get the private |
String |
publicKey()
Get the public |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Ssh |
withId(String id)
Set the id property: The ARM resource id in the form of /subscriptions/{Subscription |
Ssh |
withPrivateKey(String privateKey)
Set the private |
Ssh |
withPublicKey(String publicKey)
Set the public |
Methods inherited from java.lang.Object
Constructor Details
SshPublicKeyGenerateKeyPairResultInner
public SshPublicKeyGenerateKeyPairResultInner()
Creates an instance of SshPublicKeyGenerateKeyPairResultInner class.
Method Details
fromJson
public static SshPublicKeyGenerateKeyPairResultInner fromJson(JsonReader jsonReader)
Reads an instance of SshPublicKeyGenerateKeyPairResultInner from the JsonReader.
Parameters:
Returns:
Throws:
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:
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:
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:
toJson
validate
public void validate()
Validates the instance.
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:
Returns:
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:
Returns:
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:
Returns:
Applies to
Azure SDK for Java