Class CertificateCreateOrUpdateParameters

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

public final class CertificateCreateOrUpdateParameters extends Object implements com.azure.json.JsonSerializable<CertificateCreateOrUpdateParameters>
The parameters supplied to the create or update or replace certificate operation.
  • Constructor Details

    • CertificateCreateOrUpdateParameters

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

    • name

      public String name()
      Get the name property: Gets or sets the name of the certificate.
      Returns:
      the name value.
    • withName

      Set the name property: Gets or sets the name of the certificate.
      Parameters:
      name - the name value to set.
      Returns:
      the CertificateCreateOrUpdateParameters object itself.
    • base64Value

      public String base64Value()
      Get the base64Value property: Gets or sets the base64 encoded value of the certificate.
      Returns:
      the base64Value value.
    • withBase64Value

      public CertificateCreateOrUpdateParameters withBase64Value(String base64Value)
      Set the base64Value property: Gets or sets the base64 encoded value of the certificate.
      Parameters:
      base64Value - the base64Value value to set.
      Returns:
      the CertificateCreateOrUpdateParameters object itself.
    • description

      public String description()
      Get the description property: Gets or sets the description of the certificate.
      Returns:
      the description value.
    • withDescription

      public CertificateCreateOrUpdateParameters withDescription(String description)
      Set the description property: Gets or sets the description of the certificate.
      Parameters:
      description - the description value to set.
      Returns:
      the CertificateCreateOrUpdateParameters object itself.
    • thumbprint

      public String thumbprint()
      Get the thumbprint property: Gets or sets the thumbprint of the certificate.
      Returns:
      the thumbprint value.
    • withThumbprint

      public CertificateCreateOrUpdateParameters withThumbprint(String thumbprint)
      Set the thumbprint property: Gets or sets the thumbprint of the certificate.
      Parameters:
      thumbprint - the thumbprint value to set.
      Returns:
      the CertificateCreateOrUpdateParameters object itself.
    • isExportable

      public Boolean isExportable()
      Get the isExportable property: Gets or sets the is exportable flag of the certificate.
      Returns:
      the isExportable value.
    • withIsExportable

      public CertificateCreateOrUpdateParameters withIsExportable(Boolean isExportable)
      Set the isExportable property: Gets or sets the is exportable flag of the certificate.
      Parameters:
      isExportable - the isExportable 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:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the CertificateCreateOrUpdateParameters.