SshGenerateKeyPairInputParameters Class

  • java.lang.Object
    • com.azure.resourcemanager.compute.models.SshGenerateKeyPairInputParameters

Implements

public final class SshGenerateKeyPairInputParameters
implements JsonSerializable<SshGenerateKeyPairInputParameters>

Parameters for GenerateSshKeyPair.

Constructor Summary

Constructor Description
SshGenerateKeyPairInputParameters()

Creates an instance of SshGenerateKeyPairInputParameters class.

Method Summary

Modifier and Type Method and Description
SshEncryptionTypes encryptionType()

Get the encryptionType property: The encryption type of the SSH keys to be generated.

static SshGenerateKeyPairInputParameters fromJson(JsonReader jsonReader)

Reads an instance of SshGenerateKeyPairInputParameters from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

SshGenerateKeyPairInputParameters withEncryptionType(SshEncryptionTypes encryptionType)

Set the encryptionType property: The encryption type of the SSH keys to be generated.

Methods inherited from java.lang.Object

Constructor Details

SshGenerateKeyPairInputParameters

public SshGenerateKeyPairInputParameters()

Creates an instance of SshGenerateKeyPairInputParameters class.

Method Details

encryptionType

public SshEncryptionTypes encryptionType()

Get the encryptionType property: The encryption type of the SSH keys to be generated. See SshEncryptionTypes for possible set of values. If not provided, will default to RSA.

Returns:

the encryptionType value.

fromJson

public static SshGenerateKeyPairInputParameters fromJson(JsonReader jsonReader)

Reads an instance of SshGenerateKeyPairInputParameters from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withEncryptionType

public SshGenerateKeyPairInputParameters withEncryptionType(SshEncryptionTypes encryptionType)

Set the encryptionType property: The encryption type of the SSH keys to be generated. See SshEncryptionTypes for possible set of values. If not provided, will default to RSA.

Parameters:

encryptionType - the encryptionType value to set.

Returns:

the SshGenerateKeyPairInputParameters object itself.

Applies to