Class CustomDomainConfiguration

java.lang.Object
com.azure.resourcemanager.appcontainers.models.CustomDomainConfiguration
All Implemented Interfaces:
com.azure.json.JsonSerializable<CustomDomainConfiguration>

public final class CustomDomainConfiguration extends Object implements com.azure.json.JsonSerializable<CustomDomainConfiguration>
Configuration properties for apps environment custom domain.
  • Constructor Details

    • CustomDomainConfiguration

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

    • customDomainVerificationId

      public String customDomainVerificationId()
      Get the customDomainVerificationId property: Id used to verify domain name ownership.
      Returns:
      the customDomainVerificationId value.
    • dnsSuffix

      public String dnsSuffix()
      Get the dnsSuffix property: Dns suffix for the environment domain.
      Returns:
      the dnsSuffix value.
    • withDnsSuffix

      public CustomDomainConfiguration withDnsSuffix(String dnsSuffix)
      Set the dnsSuffix property: Dns suffix for the environment domain.
      Parameters:
      dnsSuffix - the dnsSuffix value to set.
      Returns:
      the CustomDomainConfiguration object itself.
    • certificateKeyVaultProperties

      public CertificateKeyVaultProperties certificateKeyVaultProperties()
      Get the certificateKeyVaultProperties property: Certificate stored in Azure Key Vault.
      Returns:
      the certificateKeyVaultProperties value.
    • withCertificateKeyVaultProperties

      public CustomDomainConfiguration withCertificateKeyVaultProperties(CertificateKeyVaultProperties certificateKeyVaultProperties)
      Set the certificateKeyVaultProperties property: Certificate stored in Azure Key Vault.
      Parameters:
      certificateKeyVaultProperties - the certificateKeyVaultProperties value to set.
      Returns:
      the CustomDomainConfiguration object itself.
    • certificateValue

      public byte[] certificateValue()
      Get the certificateValue property: PFX or PEM blob.
      Returns:
      the certificateValue value.
    • withCertificateValue

      public CustomDomainConfiguration withCertificateValue(byte[] certificateValue)
      Set the certificateValue property: PFX or PEM blob.
      Parameters:
      certificateValue - the certificateValue value to set.
      Returns:
      the CustomDomainConfiguration object itself.
    • certificatePassword

      public String certificatePassword()
      Get the certificatePassword property: Certificate password.
      Returns:
      the certificatePassword value.
    • withCertificatePassword

      public CustomDomainConfiguration withCertificatePassword(String certificatePassword)
      Set the certificatePassword property: Certificate password.
      Parameters:
      certificatePassword - the certificatePassword value to set.
      Returns:
      the CustomDomainConfiguration object itself.
    • expirationDate

      public OffsetDateTime expirationDate()
      Get the expirationDate property: Certificate expiration date.
      Returns:
      the expirationDate value.
    • thumbprint

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

      public String subjectName()
      Get the subjectName property: Subject name of the certificate.
      Returns:
      the subjectName value.
    • validate

      public void validate()
      Validates the instance.
      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<CustomDomainConfiguration>
      Throws:
      IOException
    • fromJson

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