public static interface ServiceUnavailableErrorException.Builder extends CopyableBuilder<ServiceUnavailableErrorException.Builder,ServiceUnavailableErrorException>
Modifier and Type | Method and Description |
---|---|
default ServiceUnavailableErrorException.Builder |
error(Consumer<StorageGatewayError.Builder> error)
A StorageGatewayError that provides more information about the cause of the error.
|
ServiceUnavailableErrorException.Builder |
error(StorageGatewayError error)
A StorageGatewayError that provides more information about the cause of the error.
|
ServiceUnavailableErrorException.Builder |
message(String message) |
copy
apply, build
ServiceUnavailableErrorException.Builder error(StorageGatewayError error)
A StorageGatewayError that provides more information about the cause of the error.
error
- A StorageGatewayError that provides more information about the cause of the error.default ServiceUnavailableErrorException.Builder error(Consumer<StorageGatewayError.Builder> error)
A StorageGatewayError that provides more information about the cause of the error.
This is a convenience that creates an instance of theStorageGatewayError.Builder
avoiding the need
to create one manually via StorageGatewayError.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and
its result is passed to error(StorageGatewayError)
.error
- a consumer that will call methods on StorageGatewayError.Builder
error(StorageGatewayError)
ServiceUnavailableErrorException.Builder message(String message)
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.