Class AttachmentQuery

java.lang.Object
com.eqixiac.equinix.fabric.beta.client.AttachmentQuery

@Beta public class AttachmentQuery extends Object
Optional query parameters of the Application Connect "attached ..." list endpoints: a state filter (sent as state or attachmentStatus, as each endpoint names it), order and style. Paging (offset/limit) is handled by the returned list.
beta.appLinks().listAttachedAppDomains(linkId,
        new AttachmentQuery().states("ATTACHED").order(SortOrder.ASC).style(AttachmentQuery.Style.FULL));
  • Constructor Details

    • AttachmentQuery

      public AttachmentQuery()
      Creates an empty query.
  • Method Details

    • states

      public AttachmentQuery states(String... values)
      Adds lifecycle-state filter values (for example PROVISIONED or ATTACHED; the generated state enums' getValue() gives the wire values).
      Parameters:
      values - the state values
      Returns:
      this query
    • order

      public AttachmentQuery order(SortOrder order)
      Sets the sort order (service default DESC).
      Parameters:
      order - the order
      Returns:
      this query
    • style

      public AttachmentQuery style(AttachmentQuery.Style style)
      Sets the response detail level.
      Parameters:
      style - the style
      Returns:
      this query
    • toQueryParams

      public Map<String, List<String>> toQueryParams(String stateParameterName)
      Renders the query parameters.
      Parameters:
      stateParameterName - the endpoint's name for the state filter (state or attachmentStatus)
      Returns:
      the query parameters