ConsolePatchParameters Class
- java.
lang. Object - com.
azure. resourcemanager. networkcloud. models. ConsolePatchParameters
- com.
Implements
public final class ConsolePatchParameters
implements JsonSerializable<ConsolePatchParameters>
ConsolePatchParameters represents the body of the request to patch the virtual machine console.
Constructor Summary
| Constructor | Description |
|---|---|
| ConsolePatchParameters() |
Creates an instance of Console |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Console |
enabled()
Get the enabled property: The indicator of whether the console access is enabled. |
|
Offset |
expiration()
Get the expiration property: The date and time after which the key will be disallowed access. |
|
static
Console |
fromJson(JsonReader jsonReader)
Reads an instance of Console |
|
Ssh |
sshPublicKey()
Get the ssh |
| Map<String,String> |
tags()
Get the tags property: The Azure resource tags that will replace the existing ones. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Console |
withEnabled(ConsoleEnabled enabled)
Set the enabled property: The indicator of whether the console access is enabled. |
|
Console |
withExpiration(OffsetDateTime expiration)
Set the expiration property: The date and time after which the key will be disallowed access. |
|
Console |
withSshPublicKey(SshPublicKey sshPublicKey)
Set the ssh |
|
Console |
withTags(Map<String,String> tags)
Set the tags property: The Azure resource tags that will replace the existing ones. |
Methods inherited from java.lang.Object
Constructor Details
ConsolePatchParameters
public ConsolePatchParameters()
Creates an instance of ConsolePatchParameters class.
Method Details
enabled
public ConsoleEnabled enabled()
Get the enabled property: The indicator of whether the console access is enabled.
Returns:
expiration
public OffsetDateTime expiration()
Get the expiration property: The date and time after which the key will be disallowed access.
Returns:
fromJson
public static ConsolePatchParameters fromJson(JsonReader jsonReader)
Reads an instance of ConsolePatchParameters from the JsonReader.
Parameters:
Returns:
Throws:
sshPublicKey
public SshPublicKey sshPublicKey()
Get the sshPublicKey property: The SSH public key that will be provisioned for user access. The user is expected to have the corresponding SSH private key for logging in.
Returns:
tags
public Map<String,String> tags()
Get the tags property: The Azure resource tags that will replace the existing ones.
Returns:
toJson
validate
public void validate()
Validates the instance.
withEnabled
public ConsolePatchParameters withEnabled(ConsoleEnabled enabled)
Set the enabled property: The indicator of whether the console access is enabled.
Parameters:
Returns:
withExpiration
public ConsolePatchParameters withExpiration(OffsetDateTime expiration)
Set the expiration property: The date and time after which the key will be disallowed access.
Parameters:
Returns:
withSshPublicKey
public ConsolePatchParameters withSshPublicKey(SshPublicKey sshPublicKey)
Set the sshPublicKey property: The SSH public key that will be provisioned for user access. The user is expected to have the corresponding SSH private key for logging in.
Parameters:
Returns:
withTags
public ConsolePatchParameters withTags(Map<String,String> tags)
Set the tags property: The Azure resource tags that will replace the existing ones.
Parameters:
Returns: