SshPublicKey Class
- java.
lang. Object - com.
azure. resourcemanager. storage. models. SshPublicKey
- com.
Implements
public final class SshPublicKey
implements JsonSerializable<SshPublicKey>
The SshPublicKey model.
Constructor Summary
Constructor | Description |
---|---|
SshPublicKey() |
Creates an instance of Ssh |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
description()
Get the description property: Optional. |
static
Ssh |
fromJson(JsonReader jsonReader)
Reads an instance of Ssh |
String |
key()
Get the key property: Ssh public key base64 encoded. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Ssh |
withDescription(String description)
Set the description property: Optional. |
Ssh |
withKey(String key)
Set the key property: Ssh public key base64 encoded. |
Methods inherited from java.lang.Object
Constructor Details
SshPublicKey
public SshPublicKey()
Creates an instance of SshPublicKey class.
Method Details
description
public String description()
Get the description property: Optional. It is used to store the function/usage of the key.
Returns:
fromJson
public static SshPublicKey fromJson(JsonReader jsonReader)
Reads an instance of SshPublicKey from the JsonReader.
Parameters:
Returns:
Throws:
key
public String key()
Get the key property: Ssh public key base64 encoded. The format should be: ' ', e.g. ssh-rsa AAAABBBB.
Returns:
toJson
validate
public void validate()
Validates the instance.
withDescription
public SshPublicKey withDescription(String description)
Set the description property: Optional. It is used to store the function/usage of the key.
Parameters:
Returns:
withKey
public SshPublicKey withKey(String key)
Set the key property: Ssh public key base64 encoded. The format should be: ' ', e.g. ssh-rsa AAAABBBB.
Parameters:
Returns:
Applies to
Azure SDK for Java