Certificate Class

  • java.lang.Object
    • com.azure.resourcemanager.cosmos.models.Certificate

Implements

public final class Certificate
implements JsonSerializable<Certificate>

The Certificate model.

Constructor Summary

Constructor Description
Certificate()

Creates an instance of Certificate class.

Method Summary

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

Reads an instance of Certificate from the JsonReader.

String pem()

Get the pem property: PEM formatted public key.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Certificate withPem(String pem)

Set the pem property: PEM formatted public key.

Methods inherited from java.lang.Object

Constructor Details

Certificate

public Certificate()

Creates an instance of Certificate class.

Method Details

fromJson

public static Certificate fromJson(JsonReader jsonReader)

Reads an instance of Certificate from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

pem

public String pem()

Get the pem property: PEM formatted public key.

Returns:

the pem value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withPem

public Certificate withPem(String pem)

Set the pem property: PEM formatted public key.

Parameters:

pem - the pem value to set.

Returns:

the Certificate object itself.

Applies to