ConsolePatchParameters Class

  • java.lang.Object
    • com.azure.resourcemanager.networkcloud.models.ConsolePatchParameters

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 ConsolePatchParameters 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 ConsolePatchParameters fromJson(JsonReader jsonReader)

Reads an instance of ConsolePatchParameters from the JsonReader.

SshPublicKey sshPublicKey()

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

Map<String,String> tags()

Get the tags property: The Azure resource tags that will replace the existing ones.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ConsolePatchParameters withEnabled(ConsoleEnabled enabled)

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

ConsolePatchParameters withExpiration(OffsetDateTime expiration)

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

ConsolePatchParameters withSshPublicKey(SshPublicKey sshPublicKey)

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

ConsolePatchParameters 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:

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 ConsolePatchParameters fromJson(JsonReader jsonReader)

Reads an instance of ConsolePatchParameters from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ConsolePatchParameters 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 ConsolePatchParameters.

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.

tags

public Map<String,String> tags()

Get the tags property: The Azure resource tags that will replace the existing ones.

Returns:

the tags value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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:

enabled - the enabled value to set.

Returns:

the ConsolePatchParameters object itself.

withExpiration

public ConsolePatchParameters 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 ConsolePatchParameters object itself.

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:

sshPublicKey - the sshPublicKey value to set.

Returns:

the ConsolePatchParameters object itself.

withTags

public ConsolePatchParameters withTags(Map<String,String> tags)

Set the tags property: The Azure resource tags that will replace the existing ones.

Parameters:

tags - the tags value to set.

Returns:

the ConsolePatchParameters object itself.

Applies to