Class AccountClientImpl

All Implemented Interfaces:
Pageable<AccountDetails>, PageablePost<AccountDetails>, AccountClient

public class AccountClientImpl extends ResourceClientBase<AccountDetails, AccountDetailsJson> implements AccountClient
Internal client implementation for the Equinix Internet Access (EIA) v1 account lookups (GET /internetAccess/v1/accounts, GET /internetAccess/v1/accounts/{accountNumber} and GET /internetAccess/v1/accounts/{accountNumber}/agreements). The account responses are read-only, so the deserialized AccountDetailsJson (which implements AccountDetails directly) is returned without a wrapper. The agreements collection deserializes to a separate element type (AccountAgreementJson implementing AccountAgreement), so its paginated request - which carries both a path parameter and a query parameter - is built manually and carries its own page-item mapper for pages 2+ (see EquinixRequest#getPageItemMapper()).