CertificateDescription Class

  • java.lang.Object
    • com.azure.resourcemanager.servicefabric.models.CertificateDescription

Implements

public final class CertificateDescription
implements JsonSerializable<CertificateDescription>

Describes the certificate details.

Constructor Summary

Constructor Description
CertificateDescription()

Creates an instance of CertificateDescription class.

Method Summary

Modifier and Type Method and Description
static CertificateDescription fromJson(JsonReader jsonReader)

Reads an instance of CertificateDescription from the JsonReader.

String thumbprint()

Get the thumbprint property: Thumbprint of the primary certificate.

String thumbprintSecondary()

Get the thumbprintSecondary property: Thumbprint of the secondary certificate.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

CertificateDescription withThumbprint(String thumbprint)

Set the thumbprint property: Thumbprint of the primary certificate.

CertificateDescription withThumbprintSecondary(String thumbprintSecondary)

Set the thumbprintSecondary property: Thumbprint of the secondary certificate.

CertificateDescription withX509StoreName(StoreName x509StoreName)

Set the x509StoreName property: The local certificate store location.

StoreName x509StoreName()

Get the x509StoreName property: The local certificate store location.

Methods inherited from java.lang.Object

Constructor Details

CertificateDescription

public CertificateDescription()

Creates an instance of CertificateDescription class.

Method Details

fromJson

public static CertificateDescription fromJson(JsonReader jsonReader)

Reads an instance of CertificateDescription from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

thumbprint

public String thumbprint()

Get the thumbprint property: Thumbprint of the primary certificate.

Returns:

the thumbprint value.

thumbprintSecondary

public String thumbprintSecondary()

Get the thumbprintSecondary property: Thumbprint of the secondary certificate.

Returns:

the thumbprintSecondary value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withThumbprint

public CertificateDescription withThumbprint(String thumbprint)

Set the thumbprint property: Thumbprint of the primary certificate.

Parameters:

thumbprint - the thumbprint value to set.

Returns:

the CertificateDescription object itself.

withThumbprintSecondary

public CertificateDescription withThumbprintSecondary(String thumbprintSecondary)

Set the thumbprintSecondary property: Thumbprint of the secondary certificate.

Parameters:

thumbprintSecondary - the thumbprintSecondary value to set.

Returns:

the CertificateDescription object itself.

withX509StoreName

public CertificateDescription withX509StoreName(StoreName x509StoreName)

Set the x509StoreName property: The local certificate store location.

Parameters:

x509StoreName - the x509StoreName value to set.

Returns:

the CertificateDescription object itself.

x509StoreName

public StoreName x509StoreName()

Get the x509StoreName property: The local certificate store location.

Returns:

the x509StoreName value.

Applies to