Class StorageOptions.Builder (2.3.0)

public static class StorageOptions.Builder extends ServiceOptions.Builder<Storage,StorageOptions,StorageOptions.Builder>

Inheritance

java.lang.Object > com.google.cloud.ServiceOptions.Builder > StorageOptions.Builder

Methods

build()

public StorageOptions build()
Returns
Type Description
StorageOptions
Overrides
com.google.cloud.ServiceOptions.Builder.build()

setStorageRetryStrategy(StorageRetryStrategy storageRetryStrategy)

public StorageOptions.Builder setStorageRetryStrategy(StorageRetryStrategy storageRetryStrategy)

Override the default retry handling behavior with an alternate strategy. See Also: StorageRetryStrategy#getDefaultStorageRetryStrategy()

Parameter
Name Description
storageRetryStrategy StorageRetryStrategy

a non-null storageRetryStrategy to use

Returns
Type Description
StorageOptions.Builder

the builder

setTransportOptions(TransportOptions transportOptions)

public StorageOptions.Builder setTransportOptions(TransportOptions transportOptions)
Parameter
Name Description
transportOptions com.google.cloud.TransportOptions
Returns
Type Description
StorageOptions.Builder
Overrides
com.google.cloud.ServiceOptions.Builder.setTransportOptions(com.google.cloud.TransportOptions)