SshPublicKeyResourceInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. core. management. Resource - com.
azure. resourcemanager. compute. fluent. models. SshPublicKeyResourceInner
- com.
- com.
- com.
public final class SshPublicKeyResourceInner
extends Resource
Specifies information about the SSH public key.
Constructor Summary
Constructor | Description |
---|---|
SshPublicKeyResourceInner() |
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: Fully qualified resource Id for the resource. |
String |
name()
Get the name property: The name of the resource. |
String |
publicKey()
Get the public |
Json |
toJson(JsonWriter jsonWriter) |
String |
type()
Get the type property: The type of the resource. |
void |
validate()
Validates the instance. |
Ssh |
withLocation(String location) |
Ssh |
withPublicKey(String publicKey)
Set the public |
Ssh |
withTags(Map<String,String> tags) |
Methods inherited from ProxyResource
Methods inherited from Resource
Methods inherited from java.lang.Object
Constructor Details
SshPublicKeyResourceInner
public SshPublicKeyResourceInner()
Creates an instance of SshPublicKeyResourceInner class.
Method Details
fromJson
public static SshPublicKeyResourceInner fromJson(JsonReader jsonReader)
Reads an instance of SshPublicKeyResourceInner from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
SshPublicKeyResourceInner.id()Returns:
name
public String name()
Get the name property: The name of the resource.
Overrides:
SshPublicKeyResourceInner.name()Returns:
publicKey
public String publicKey()
Get the publicKey property: SSH public key used to authenticate to a virtual machine through ssh. If this property is not initially provided when the resource is created, the publicKey property will be populated when generateKeyPair is called. If the public key is provided upon resource creation, the provided public key needs to be at least 2048-bit and in ssh-rsa format.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
SshPublicKeyResourceInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
SshPublicKeyResourceInner.type()Returns:
validate
public void validate()
Validates the instance.
withLocation
public SshPublicKeyResourceInner withLocation(String location)
Overrides:
SshPublicKeyResourceInner.withLocation(String location)Parameters:
withPublicKey
public SshPublicKeyResourceInner withPublicKey(String publicKey)
Set the publicKey property: SSH public key used to authenticate to a virtual machine through ssh. If this property is not initially provided when the resource is created, the publicKey property will be populated when generateKeyPair is called. If the public key is provided upon resource creation, the provided public key needs to be at least 2048-bit and in ssh-rsa format.
Parameters:
Returns:
withTags
public SshPublicKeyResourceInner withTags(Map
Overrides:
SshPublicKeyResourceInner.withTags(Map<String,String> tags)Parameters:
Applies to
Azure SDK for Java