Class PriceSearchRequest

java.lang.Object
com.eqixiac.equinix.internetaccess.model.json.creators.PriceSearchRequest

public class PriceSearchRequest extends Object
Request body (FilterBody) for searching Equinix Internet Access (EIA) v1 prices via POST /internetAccess/v1/prices/search.

Wraps a required AND group of equality expressions. Each expression matches a product/price property — expressed as a JSON pointer (for example /service/connection/type or /service/bandwidth) — against one or more values. Build it fluently:

PriceSearchRequest filter = new PriceSearchRequest()
    .equals("/account/accountNumber", "2-57689234")
    .equals("/service/connection/type", "IA_C")
    .equals("/service/bandwidth", "100");
  • Constructor Details

    • PriceSearchRequest

      public PriceSearchRequest()
  • Method Details

    • equals

      public PriceSearchRequest equals(String property, String... values)
      Adds an equality expression to the AND group.
      Parameters:
      property - the property pointer to match (e.g. /service/connection/type)
      values - the values to match against
      Returns:
      this request for chaining
    • equals

      public PriceSearchRequest equals(String property, List<String> values)
      Adds an equality expression to the AND group.
      Parameters:
      property - the property pointer to match (e.g. /service/connection/type)
      values - the values to match against
      Returns:
      this request for chaining