Class CertificateCreateOrUpdateProperties

java.lang.Object
com.azure.resourcemanager.apimanagement.fluent.models.CertificateCreateOrUpdateProperties
All Implemented Interfaces:
com.azure.json.JsonSerializable<CertificateCreateOrUpdateProperties>

public final class CertificateCreateOrUpdateProperties extends Object implements com.azure.json.JsonSerializable<CertificateCreateOrUpdateProperties>
Parameters supplied to the CreateOrUpdate certificate operation.
  • Constructor Details

    • CertificateCreateOrUpdateProperties

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

    • data

      public String data()
      Get the data property: Base 64 encoded certificate using the application/x-pkcs12 representation.
      Returns:
      the data value.
    • withData

      Set the data property: Base 64 encoded certificate using the application/x-pkcs12 representation.
      Parameters:
      data - the data value to set.
      Returns:
      the CertificateCreateOrUpdateProperties object itself.
    • password

      public String password()
      Get the password property: Password for the Certificate.
      Returns:
      the password value.
    • withPassword

      public CertificateCreateOrUpdateProperties withPassword(String password)
      Set the password property: Password for the Certificate.
      Parameters:
      password - the password value to set.
      Returns:
      the CertificateCreateOrUpdateProperties object itself.
    • keyVault

      Get the keyVault property: KeyVault location details of the certificate.
      Returns:
      the keyVault value.
    • withKeyVault

      Set the keyVault property: KeyVault location details of the certificate.
      Parameters:
      keyVault - the keyVault value to set.
      Returns:
      the CertificateCreateOrUpdateProperties object itself.
    • 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<CertificateCreateOrUpdateProperties>
      Throws:
      IOException
    • fromJson

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