Class CertificateCreateOrUpdateParameters

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

public final class CertificateCreateOrUpdateParameters extends Object implements com.azure.json.JsonSerializable<CertificateCreateOrUpdateParameters>
Certificate create or update details.
  • Constructor Details

    • CertificateCreateOrUpdateParameters

      public CertificateCreateOrUpdateParameters()
      Creates an instance of CertificateCreateOrUpdateParameters 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 CertificateCreateOrUpdateParameters object itself.
    • password

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

      public CertificateCreateOrUpdateParameters withPassword(String password)
      Set the password property: Password for the Certificate.
      Parameters:
      password - the password value to set.
      Returns:
      the CertificateCreateOrUpdateParameters 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 CertificateCreateOrUpdateParameters 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<CertificateCreateOrUpdateParameters>
      Throws:
      IOException
    • fromJson

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