Partage via


SelectedCertificateInput Class

  • java.lang.Object
    • com.azure.resourcemanager.datamigration.models.SelectedCertificateInput

Implements

public final class SelectedCertificateInput
implements JsonSerializable<SelectedCertificateInput>

Info for certificate to be exported for TDE enabled databases.

Constructor Summary

Constructor Description
SelectedCertificateInput()

Creates an instance of SelectedCertificateInput class.

Method Summary

Modifier and Type Method and Description
String certificateName()

Get the certificateName property: Name of certificate to be exported.

static SelectedCertificateInput fromJson(JsonReader jsonReader)

Reads an instance of SelectedCertificateInput from the JsonReader.

String password()

Get the password property: Password to use for encrypting the exported certificate.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

SelectedCertificateInput withCertificateName(String certificateName)

Set the certificateName property: Name of certificate to be exported.

SelectedCertificateInput withPassword(String password)

Set the password property: Password to use for encrypting the exported certificate.

Methods inherited from java.lang.Object

Constructor Details

SelectedCertificateInput

public SelectedCertificateInput()

Creates an instance of SelectedCertificateInput class.

Method Details

certificateName

public String certificateName()

Get the certificateName property: Name of certificate to be exported.

Returns:

the certificateName value.

fromJson

public static SelectedCertificateInput fromJson(JsonReader jsonReader)

Reads an instance of SelectedCertificateInput from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

password

public String password()

Get the password property: Password to use for encrypting the exported certificate.

Returns:

the password value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withCertificateName

public SelectedCertificateInput withCertificateName(String certificateName)

Set the certificateName property: Name of certificate to be exported.

Parameters:

certificateName - the certificateName value to set.

Returns:

the SelectedCertificateInput object itself.

withPassword

public SelectedCertificateInput withPassword(String password)

Set the password property: Password to use for encrypting the exported certificate.

Parameters:

password - the password value to set.

Returns:

the SelectedCertificateInput object itself.

Applies to