ConsolePatchProperties Class
- java.
lang. Object - com.
azure. resourcemanager. networkcloud. fluent. models. ConsolePatchProperties
- com.
Implements
public final class ConsolePatchProperties
implements JsonSerializable<ConsolePatchProperties>
ConsolePatchProperties represents the properties of the virtual machine console that can be patched.
Constructor Summary
| Constructor | Description |
|---|---|
| ConsolePatchProperties() |
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 |
|
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 |
Methods inherited from java.lang.Object
Constructor Details
ConsolePatchProperties
public ConsolePatchProperties()
Creates an instance of ConsolePatchProperties 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 ConsolePatchProperties fromJson(JsonReader jsonReader)
Reads an instance of ConsolePatchProperties 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:
toJson
validate
public void validate()
Validates the instance.
withEnabled
public ConsolePatchProperties withEnabled(ConsoleEnabled enabled)
Set the enabled property: The indicator of whether the console access is enabled.
Parameters:
Returns:
withExpiration
public ConsolePatchProperties withExpiration(OffsetDateTime expiration)
Set the expiration property: The date and time after which the key will be disallowed access.
Parameters:
Returns:
withSshPublicKey
public ConsolePatchProperties 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: