public static final class Storage.Builder extends AbstractGoogleJsonClient.Builder
Storage
.
Implementation is not thread-safe.
Constructor and Description |
---|
Storage.Builder(HttpTransport transport,
JsonFactory jsonFactory,
HttpRequestInitializer httpRequestInitializer)
Returns an instance of a new builder.
|
Modifier and Type | Method and Description |
---|---|
Storage |
build()
Builds a new instance of
Storage . |
Storage.Builder |
setApplicationName(String applicationName) |
Storage.Builder |
setGoogleClientRequestInitializer(GoogleClientRequestInitializer googleClientRequestInitializer) |
Storage.Builder |
setHttpRequestInitializer(HttpRequestInitializer httpRequestInitializer) |
Storage.Builder |
setRootUrl(String rootUrl) |
Storage.Builder |
setServicePath(String servicePath) |
Storage.Builder |
setStorageRequestInitializer(StorageRequestInitializer storageRequestInitializer)
Set the
StorageRequestInitializer . |
Storage.Builder |
setSuppressPatternChecks(boolean suppressPatternChecks) |
getJsonFactory, getObjectParser
getApplicationName, getGoogleClientRequestInitializer, getHttpRequestInitializer, getRootUrl, getServicePath, getSuppressPatternChecks, getTransport
public Storage.Builder(HttpTransport transport, JsonFactory jsonFactory, HttpRequestInitializer httpRequestInitializer)
transport
- HTTP transportjsonFactory
- JSON factoryhttpRequestInitializer
- HTTP request initializer or null
for nonepublic Storage build()
Storage
.build
in class AbstractGoogleJsonClient.Builder
public Storage.Builder setRootUrl(String rootUrl)
setRootUrl
in class AbstractGoogleJsonClient.Builder
public Storage.Builder setServicePath(String servicePath)
setServicePath
in class AbstractGoogleJsonClient.Builder
public Storage.Builder setHttpRequestInitializer(HttpRequestInitializer httpRequestInitializer)
setHttpRequestInitializer
in class AbstractGoogleJsonClient.Builder
public Storage.Builder setApplicationName(String applicationName)
setApplicationName
in class AbstractGoogleJsonClient.Builder
public Storage.Builder setSuppressPatternChecks(boolean suppressPatternChecks)
setSuppressPatternChecks
in class AbstractGoogleJsonClient.Builder
public Storage.Builder setStorageRequestInitializer(StorageRequestInitializer storageRequestInitializer)
StorageRequestInitializer
.public Storage.Builder setGoogleClientRequestInitializer(GoogleClientRequestInitializer googleClientRequestInitializer)
setGoogleClientRequestInitializer
in class AbstractGoogleJsonClient.Builder