Partager via


CloudServiceVaultCertificate Class

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

Implements

public final class CloudServiceVaultCertificate
implements JsonSerializable<CloudServiceVaultCertificate>

Describes a single certificate reference in a Key Vault, and where the certificate should reside on the role instance.

Constructor Summary

Constructor Description
CloudServiceVaultCertificate()

Creates an instance of CloudServiceVaultCertificate class.

Method Summary

Modifier and Type Method and Description
String certificateUrl()

Get the certificateUrl property: This is the URL of a certificate that has been uploaded to Key Vault as a secret.

static CloudServiceVaultCertificate fromJson(JsonReader jsonReader)

Reads an instance of CloudServiceVaultCertificate from the JsonReader.

Boolean isBootstrapCertificate()

Get the isBootstrapCertificate property: Flag indicating if the certificate provided is a bootstrap certificate to be used by the Key Vault Extension to fetch the remaining certificates.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

CloudServiceVaultCertificate withCertificateUrl(String certificateUrl)

Set the certificateUrl property: This is the URL of a certificate that has been uploaded to Key Vault as a secret.

CloudServiceVaultCertificate withIsBootstrapCertificate(Boolean isBootstrapCertificate)

Set the isBootstrapCertificate property: Flag indicating if the certificate provided is a bootstrap certificate to be used by the Key Vault Extension to fetch the remaining certificates.

Methods inherited from java.lang.Object

Constructor Details

CloudServiceVaultCertificate

public CloudServiceVaultCertificate()

Creates an instance of CloudServiceVaultCertificate class.

Method Details

certificateUrl

public String certificateUrl()

Get the certificateUrl property: This is the URL of a certificate that has been uploaded to Key Vault as a secret.

Returns:

the certificateUrl value.

fromJson

public static CloudServiceVaultCertificate fromJson(JsonReader jsonReader)

Reads an instance of CloudServiceVaultCertificate from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

isBootstrapCertificate

public Boolean isBootstrapCertificate()

Get the isBootstrapCertificate property: Flag indicating if the certificate provided is a bootstrap certificate to be used by the Key Vault Extension to fetch the remaining certificates.

Returns:

the isBootstrapCertificate value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withCertificateUrl

public CloudServiceVaultCertificate withCertificateUrl(String certificateUrl)

Set the certificateUrl property: This is the URL of a certificate that has been uploaded to Key Vault as a secret.

Parameters:

certificateUrl - the certificateUrl value to set.

Returns:

the CloudServiceVaultCertificate object itself.

withIsBootstrapCertificate

public CloudServiceVaultCertificate withIsBootstrapCertificate(Boolean isBootstrapCertificate)

Set the isBootstrapCertificate property: Flag indicating if the certificate provided is a bootstrap certificate to be used by the Key Vault Extension to fetch the remaining certificates.

Parameters:

isBootstrapCertificate - the isBootstrapCertificate value to set.

Returns:

the CloudServiceVaultCertificate object itself.

Applies to