Class BetaClientFactory

java.lang.Object
com.eqixiac.equinix.fabric.beta.client.internal.BetaClientFactory

@Beta public class BetaClientFactory extends Object
Creates and caches one BetaResourceClient per (resource group, model type) pair.
  • Constructor Details

    • BetaClientFactory

      public BetaClientFactory(EquinixClient equinixClient)
      Creates the factory.
      Parameters:
      equinixClient - the core client
  • Method Details

    • client

      public <J> BetaResourceClient<J> client(String requestParent, Class<J> type)
      Returns the cached client for a resource group and model type, creating it on first use.
      Type Parameters:
      J - the JSON model type
      Parameters:
      requestParent - the apiParams resource group
      type - the JSON model class
      Returns:
      the client