Class AsyncS3Config.Builder
-
- All Implemented Interfaces:
public final class AsyncS3Config.Builder
-
-
Constructor Summary
Constructors Constructor Description AsyncS3Config.Builder()
-
Method Summary
Modifier and Type Method Description final StringgetHost()final UnitsetHost(String host)final IntegergetPort()final UnitsetPort(Integer port)final BooleangetHttps()final UnitsetHttps(Boolean https)final StringgetBucket()final UnitsetBucket(String bucket)final StringgetAccessToken()final UnitsetAccessToken(String accessToken)final StringgetSecretKey()final UnitsetSecretKey(String secretKey)final StringgetRootPath()final UnitsetRootPath(String rootPath)final AsyncS3Config.Builderhost(String h)Sets the hostname for the S3 store. final AsyncS3Config.Builderport(Integer p)Sets the port number for the S3 store. final AsyncS3Config.BuilderaccessToken(String u)Sets the access token for the S3 store. final AsyncS3Config.BuildersecretKey(String p)Sets the secret key for the S3 store. final AsyncS3Config.BuilderrootPath(String r)Sets the root 'directory' in which job workspaces will be created. final AsyncS3Config.Builderhttps(Boolean h)Sets whether HTTPS should be used when communicating with the S3 store. final AsyncS3Config.Builderbucket(String b)Sets the name of the S3 bucket this application will operate on. final AsyncS3Configbuild()Validates the contents of this builder and attempts to construct a new AsyncS3Config instance. -
-
Method Detail
-
getAccessToken
final String getAccessToken()
-
setAccessToken
final Unit setAccessToken(String accessToken)
-
getSecretKey
final String getSecretKey()
-
setSecretKey
final Unit setSecretKey(String secretKey)
-
getRootPath
final String getRootPath()
-
setRootPath
final Unit setRootPath(String rootPath)
-
host
final AsyncS3Config.Builder host(String h)
Sets the hostname for the S3 store.
-
port
final AsyncS3Config.Builder port(Integer p)
Sets the port number for the S3 store.
-
accessToken
final AsyncS3Config.Builder accessToken(String u)
Sets the access token for the S3 store.
-
secretKey
final AsyncS3Config.Builder secretKey(String p)
Sets the secret key for the S3 store.
-
rootPath
final AsyncS3Config.Builder rootPath(String r)
Sets the root 'directory' in which job workspaces will be created.
-
https
final AsyncS3Config.Builder https(Boolean h)
Sets whether HTTPS should be used when communicating with the S3 store.
-
bucket
final AsyncS3Config.Builder bucket(String b)
Sets the name of the S3 bucket this application will operate on.
-
build
final AsyncS3Config build()
Validates the contents of this builder and attempts to construct a new AsyncS3Config instance.
- Returns:
A new, configured AsyncS3Config instance.
-
-
-
-