Class KeyVaultCertificateProperties

java.lang.Object
com.azure.resourcemanager.appplatform.models.CertificateProperties
com.azure.resourcemanager.appplatform.models.KeyVaultCertificateProperties
All Implemented Interfaces:
com.azure.json.JsonSerializable<CertificateProperties>

public final class KeyVaultCertificateProperties extends CertificateProperties
Properties of certificate imported from key vault.
  • Constructor Details

    • KeyVaultCertificateProperties

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

    • type

      public String type()
      Get the type property: The type of the certificate source.
      Overrides:
      type in class CertificateProperties
      Returns:
      the type value.
    • vaultUri

      public String vaultUri()
      Get the vaultUri property: The vault uri of user key vault.
      Returns:
      the vaultUri value.
    • withVaultUri

      public KeyVaultCertificateProperties withVaultUri(String vaultUri)
      Set the vaultUri property: The vault uri of user key vault.
      Parameters:
      vaultUri - the vaultUri value to set.
      Returns:
      the KeyVaultCertificateProperties object itself.
    • keyVaultCertName

      public String keyVaultCertName()
      Get the keyVaultCertName property: The certificate name of key vault.
      Returns:
      the keyVaultCertName value.
    • withKeyVaultCertName

      public KeyVaultCertificateProperties withKeyVaultCertName(String keyVaultCertName)
      Set the keyVaultCertName property: The certificate name of key vault.
      Parameters:
      keyVaultCertName - the keyVaultCertName value to set.
      Returns:
      the KeyVaultCertificateProperties object itself.
    • certVersion

      public String certVersion()
      Get the certVersion property: The certificate version of key vault.
      Returns:
      the certVersion value.
    • withCertVersion

      public KeyVaultCertificateProperties withCertVersion(String certVersion)
      Set the certVersion property: The certificate version of key vault.
      Parameters:
      certVersion - the certVersion value to set.
      Returns:
      the KeyVaultCertificateProperties object itself.
    • excludePrivateKey

      public Boolean excludePrivateKey()
      Get the excludePrivateKey property: Optional. If set to true, it will not import private key from key vault.
      Returns:
      the excludePrivateKey value.
    • withExcludePrivateKey

      public KeyVaultCertificateProperties withExcludePrivateKey(Boolean excludePrivateKey)
      Set the excludePrivateKey property: Optional. If set to true, it will not import private key from key vault.
      Parameters:
      excludePrivateKey - the excludePrivateKey value to set.
      Returns:
      the KeyVaultCertificateProperties object itself.
    • autoSync

      public KeyVaultCertificateAutoSync autoSync()
      Get the autoSync property: Indicates whether to automatically synchronize certificate from key vault or not.
      Returns:
      the autoSync value.
    • withAutoSync

      Set the autoSync property: Indicates whether to automatically synchronize certificate from key vault or not.
      Parameters:
      autoSync - the autoSync value to set.
      Returns:
      the KeyVaultCertificateProperties object itself.
    • thumbprint

      public String thumbprint()
      Get the thumbprint property: The thumbprint of certificate.
      Overrides:
      thumbprint in class CertificateProperties
      Returns:
      the thumbprint value.
    • issuer

      public String issuer()
      Get the issuer property: The issuer of certificate.
      Overrides:
      issuer in class CertificateProperties
      Returns:
      the issuer value.
    • issuedDate

      public String issuedDate()
      Get the issuedDate property: The issue date of certificate.
      Overrides:
      issuedDate in class CertificateProperties
      Returns:
      the issuedDate value.
    • expirationDate

      public String expirationDate()
      Get the expirationDate property: The expiration date of certificate.
      Overrides:
      expirationDate in class CertificateProperties
      Returns:
      the expirationDate value.
    • activateDate

      public String activateDate()
      Get the activateDate property: The activate date of certificate.
      Overrides:
      activateDate in class CertificateProperties
      Returns:
      the activateDate value.
    • subjectName

      public String subjectName()
      Get the subjectName property: The subject name of certificate.
      Overrides:
      subjectName in class CertificateProperties
      Returns:
      the subjectName value.
    • dnsNames

      public List<String> dnsNames()
      Get the dnsNames property: The domain list of certificate.
      Overrides:
      dnsNames in class CertificateProperties
      Returns:
      the dnsNames value.
    • provisioningState

      public CertificateResourceProvisioningState provisioningState()
      Get the provisioningState property: Provisioning state of the Certificate.
      Overrides:
      provisioningState in class CertificateProperties
      Returns:
      the provisioningState value.
    • validate

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

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