@NotThreadSafe public class ContentManagerAsyncBuilder extends ContentManagerBuilder
ContentManagerAsync
.
Use of the builder is required instead of constructors of the client class.Constructor and Description |
---|
ContentManagerAsyncBuilder() |
Modifier and Type | Method and Description |
---|---|
ContentManagerAsync |
build()
Construct ContentManager using the current builder configuration.
|
static ContentManagerAsync |
defaultContentManager() |
ExecutorService |
getExecutorService()
Gets executor service used for asynchronous calls.
|
void |
setExecutorService(ExecutorService executorService)
Sets executor service used for asynchronous calls.
|
static ContentManagerAsyncBuilder |
standard() |
ContentManagerAsyncBuilder |
withAuthenticationToken(String authenticationToken)
Sets authentication token for Amazon WorkDocs calls.
|
ContentManagerAsyncBuilder |
withExecutorService(ExecutorService executorService)
Sets executor service used for asynchronous calls.
|
ContentManagerAsyncBuilder |
withWorkDocsClient(AmazonWorkDocs workDocsClient)
Sets the low level client used to make the service calls to Amazon
WorkDocs.
|
getAuthenticationToken, getWorkDocsClient, setAuthenticationToken, setWorkDocsClient
public static ContentManagerAsyncBuilder standard()
public static ContentManagerAsync defaultContentManager()
public final ContentManagerAsyncBuilder withExecutorService(ExecutorService executorService)
executorService
- Executor service.public final void setExecutorService(ExecutorService executorService)
executorService
- Executor service.public final ExecutorService getExecutorService()
public final ContentManagerAsyncBuilder withAuthenticationToken(String authenticationToken)
withAuthenticationToken
in class ContentManagerBuilder
authenticationToken
- Token retrieved by OAuth flow.public final ContentManagerAsyncBuilder withWorkDocsClient(AmazonWorkDocs workDocsClient)
withWorkDocsClient
in class ContentManagerBuilder
workDocsClient
- Client implementation to use.public ContentManagerAsync build()
build
in class ContentManagerBuilder