Class BackendBaseParametersPool

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

public final class BackendBaseParametersPool extends BackendPool
The BackendBaseParametersPool model.
  • Constructor Details

    • BackendBaseParametersPool

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

    • withServices

      public BackendBaseParametersPool withServices(List<BackendPoolItem> services)
      Set the services property: The list of backend entities belonging to a pool.
      Overrides:
      withServices in class BackendPool
      Parameters:
      services - the services value to set.
      Returns:
      the BackendPool object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class BackendPool
      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<BackendPool>
      Overrides:
      toJson in class BackendPool
      Throws:
      IOException
    • fromJson

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