Class ApiBuilder<A>

  • Type Parameters:
    A - the type of API to create

    public class ApiBuilder<A>
    extends Object
    Builder for creating instances of the Cloud Manager APIs
    • Constructor Detail

      • ApiBuilder

        public ApiBuilder​(Class<A> clazz)
        Create new instance of an API Builder, scoped to the desired interface.
        Parameters:
        clazz - the type of API desired.
    • Method Detail

      • workspace

        public ApiBuilder<A> workspace​(@NotNull
                                       @NotNull com.adobe.aio.workspace.Workspace workspace)
        (Required) Workspace context for the API.
        Parameters:
        workspace - the workspace
        Returns:
        this builder
      • url

        public ApiBuilder<A> url​(@NotNull
                                 @NotNull URL url)
        (Optional) Base url for this API. Can be used to change destination for requests, to the Stage environment for example. If not provided, then the default production value will be used.wqa9]
        Parameters:
        url - the url context for requests
        Returns:
        this builder