ConsolePatchProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.networkcloud.fluent.models.ConsolePatchProperties

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 ConsolePatchProperties class.

Method Summary

Modifier and Type Method and Description
ConsoleEnabled enabled()

Get the enabled property: The indicator of whether the console access is enabled.

OffsetDateTime expiration()

Get the expiration property: The date and time after which the key will be disallowed access.

static ConsolePatchProperties fromJson(JsonReader jsonReader)

Reads an instance of ConsolePatchProperties from the JsonReader.

SshPublicKey sshPublicKey()

Get the sshPublicKey property: The SSH public key that will be provisioned for user access.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ConsolePatchProperties withEnabled(ConsoleEnabled enabled)

Set the enabled property: The indicator of whether the console access is enabled.

ConsolePatchProperties withExpiration(OffsetDateTime expiration)

Set the expiration property: The date and time after which the key will be disallowed access.

ConsolePatchProperties withSshPublicKey(SshPublicKey sshPublicKey)

Set the sshPublicKey property: The SSH public key that will be provisioned for user access.

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:

the enabled value.

expiration

public OffsetDateTime expiration()

Get the expiration property: The date and time after which the key will be disallowed access.

Returns:

the expiration value.

fromJson

public static ConsolePatchProperties fromJson(JsonReader jsonReader)

Reads an instance of ConsolePatchProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ConsolePatchProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the ConsolePatchProperties.

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:

the sshPublicKey value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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:

enabled - the enabled value to set.

Returns:

the ConsolePatchProperties object itself.

withExpiration

public ConsolePatchProperties withExpiration(OffsetDateTime expiration)

Set the expiration property: The date and time after which the key will be disallowed access.

Parameters:

expiration - the expiration value to set.

Returns:

the ConsolePatchProperties object itself.

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:

sshPublicKey - the sshPublicKey value to set.

Returns:

the ConsolePatchProperties object itself.

Applies to