Class CustomerCertificateParameters

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

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

    • CustomerCertificateParameters

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

    • type

      public SecretType type()
      Get the type property: The type of the secret resource.
      Overrides:
      type in class SecretParameters
      Returns:
      the type value.
    • 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 CustomerCertificateParameters 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 CustomerCertificateParameters object itself.
    • secretVersion

      public String secretVersion()
      Get the secretVersion property: Version of the secret to be used.
      Returns:
      the secretVersion value.
    • withSecretVersion

      public CustomerCertificateParameters withSecretVersion(String secretVersion)
      Set the secretVersion property: Version of the secret to be used.
      Parameters:
      secretVersion - the secretVersion value to set.
      Returns:
      the CustomerCertificateParameters object itself.
    • useLatestVersion

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

      public CustomerCertificateParameters 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 CustomerCertificateParameters object itself.
    • subject

      public String subject()
      Get the subject property: Subject name in the certificate.
      Returns:
      the subject value.
    • expirationDate

      public String expirationDate()
      Get the expirationDate property: Certificate expiration date.
      Returns:
      the expirationDate value.
    • certificateAuthority

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

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

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

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

      public void validate()
      Validates the instance.
      Overrides:
      validate in class SecretParameters
      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<SecretParameters>
      Overrides:
      toJson in class SecretParameters
      Throws:
      IOException
    • fromJson

      public static CustomerCertificateParameters fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of CustomerCertificateParameters from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of CustomerCertificateParameters if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the CustomerCertificateParameters.