Class StorageOptions.Builder (2.11.2)

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
TypeDescription
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
NameDescription
storageRetryStrategyStorageRetryStrategy

a non-null storageRetryStrategy to use

Returns
TypeDescription
StorageOptions.Builder

the builder

setTransportOptions(TransportOptions transportOptions)

public StorageOptions.Builder setTransportOptions(TransportOptions transportOptions)
Parameter
NameDescription
transportOptionscom.google.cloud.TransportOptions
Returns
TypeDescription
StorageOptions.Builder
Overrides
com.google.cloud.ServiceOptions.Builder.setTransportOptions(com.google.cloud.TransportOptions)