Class GatewayCertificateAuthorityContractProperties

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

public final class GatewayCertificateAuthorityContractProperties extends Object implements com.azure.json.JsonSerializable<GatewayCertificateAuthorityContractProperties>
Gateway certificate authority details.
  • Constructor Details

    • GatewayCertificateAuthorityContractProperties

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

    • isTrusted

      public Boolean isTrusted()
      Get the isTrusted property: Determines whether certificate authority is trusted.
      Returns:
      the isTrusted value.
    • withIsTrusted

      public GatewayCertificateAuthorityContractProperties withIsTrusted(Boolean isTrusted)
      Set the isTrusted property: Determines whether certificate authority is trusted.
      Parameters:
      isTrusted - the isTrusted value to set.
      Returns:
      the GatewayCertificateAuthorityContractProperties 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<GatewayCertificateAuthorityContractProperties>
      Throws:
      IOException
    • fromJson

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