Class CustomerCertificate

java.lang.Object
com.azure.resourcemanager.cdn.models.Certificate
com.azure.resourcemanager.cdn.models.CustomerCertificate
All Implemented Interfaces:
com.azure.json.JsonSerializable<Certificate>

public final class CustomerCertificate extends Certificate
Customer Certificate used for https.
  • Constructor Details

    • CustomerCertificate

      public CustomerCertificate()
      Creates an instance of CustomerCertificate class.
  • Method Details

    • secretSource

      public ResourceReference secretSource()
      Get the secretSource property: Resource reference to the Azure Key Vault certificate. Expected to be in format of /subscriptions/{​​​​​​​​​subscriptionId}​​​​​​​​​/resourceGroups/{​​​​​​​​​resourceGroupName}​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​/providers/Microsoft.KeyVault/vaults/{vaultName}​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​/secrets/{certificateName}​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​.
      Returns:
      the secretSource value.
    • withSecretSource

      public CustomerCertificate withSecretSource(ResourceReference secretSource)
      Set the secretSource property: Resource reference to the Azure Key Vault certificate. Expected to be in format of /subscriptions/{​​​​​​​​​subscriptionId}​​​​​​​​​/resourceGroups/{​​​​​​​​​resourceGroupName}​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​/providers/Microsoft.KeyVault/vaults/{vaultName}​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​/secrets/{certificateName}​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​.
      Parameters:
      secretSource - the secretSource value to set.
      Returns:
      the CustomerCertificate object itself.
    • secretVersion

      public String secretVersion()
      Get the secretVersion property: Certificate version.
      Returns:
      the secretVersion value.
    • withSecretVersion

      public CustomerCertificate withSecretVersion(String secretVersion)
      Set the secretVersion property: Certificate version.
      Parameters:
      secretVersion - the secretVersion value to set.
      Returns:
      the CustomerCertificate object itself.
    • certificateAuthority

      public String certificateAuthority()
      Get the certificateAuthority property: Certificate issuing authority.
      Returns:
      the certificateAuthority value.
    • useLatestVersion

      public Boolean useLatestVersion()
      Get the useLatestVersion property: Whether to use the latest version for the certificate.
      Returns:
      the useLatestVersion value.
    • withUseLatestVersion

      public CustomerCertificate withUseLatestVersion(Boolean useLatestVersion)
      Set the useLatestVersion property: Whether to use the latest version for the certificate.
      Parameters:
      useLatestVersion - the useLatestVersion value to set.
      Returns:
      the CustomerCertificate object itself.
    • subjectAlternativeNames

      public List<String> subjectAlternativeNames()
      Get the subjectAlternativeNames property: The list of SANs.
      Returns:
      the subjectAlternativeNames value.
    • withSubjectAlternativeNames

      public CustomerCertificate withSubjectAlternativeNames(List<String> subjectAlternativeNames)
      Set the subjectAlternativeNames property: The list of SANs.
      Parameters:
      subjectAlternativeNames - the subjectAlternativeNames value to set.
      Returns:
      the CustomerCertificate object itself.
    • thumbprint

      public String thumbprint()
      Get the thumbprint property: Certificate thumbprint.
      Returns:
      the thumbprint value.
    • expirationDate

      public String expirationDate()
      Get the expirationDate property: Certificate expiration date.
      Overrides:
      expirationDate in class Certificate
      Returns:
      the expirationDate value.
    • subject

      public String subject()
      Get the subject property: Subject name in the certificate.
      Overrides:
      subject in class Certificate
      Returns:
      the subject value.
    • withType

      public CustomerCertificate withType(SecretType type)
      Set the type property: The type of the secret resource.
      Overrides:
      withType in class Certificate
      Parameters:
      type - the type value to set.
      Returns:
      the Certificate object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class Certificate
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<Certificate>
      Overrides:
      toJson in class Certificate
      Throws:
      IOException
    • fromJson

      public static CustomerCertificate fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of CustomerCertificate from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of CustomerCertificate 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 CustomerCertificate.