Class ProductApiLinkContractProperties

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

public final class ProductApiLinkContractProperties extends Object implements com.azure.json.JsonSerializable<ProductApiLinkContractProperties>
Product-API link entity properties.
  • Constructor Details

    • ProductApiLinkContractProperties

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

    • apiId

      public String apiId()
      Get the apiId property: Full resource Id of an API.
      Returns:
      the apiId value.
    • withApiId

      public ProductApiLinkContractProperties withApiId(String apiId)
      Set the apiId property: Full resource Id of an API.
      Parameters:
      apiId - the apiId value to set.
      Returns:
      the ProductApiLinkContractProperties 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<ProductApiLinkContractProperties>
      Throws:
      IOException
    • fromJson

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