Interface ServiceUnavailableErrorException.Builder
-
- All Superinterfaces:
AwsServiceException.Builder,Buildable,CopyableBuilder<ServiceUnavailableErrorException.Builder,ServiceUnavailableErrorException>,SdkBuilder<ServiceUnavailableErrorException.Builder,ServiceUnavailableErrorException>,SdkException.Builder,SdkPojo,SdkServiceException.Builder,StorageGatewayException.Builder
- Enclosing class:
- ServiceUnavailableErrorException
public static interface ServiceUnavailableErrorException.Builder extends SdkPojo, CopyableBuilder<ServiceUnavailableErrorException.Builder,ServiceUnavailableErrorException>, StorageGatewayException.Builder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ServiceUnavailableErrorException.BuilderawsErrorDetails(AwsErrorDetails awsErrorDetails)ServiceUnavailableErrorException.Buildercause(Throwable cause)default ServiceUnavailableErrorException.Buildererror(Consumer<StorageGatewayError.Builder> error)A StorageGatewayError that provides more information about the cause of the error.ServiceUnavailableErrorException.Buildererror(StorageGatewayError error)A StorageGatewayError that provides more information about the cause of the error.ServiceUnavailableErrorException.Buildermessage(String message)ServiceUnavailableErrorException.BuilderrequestId(String requestId)ServiceUnavailableErrorException.BuilderstatusCode(int statusCode)ServiceUnavailableErrorException.BuilderwritableStackTrace(Boolean writableStackTrace)-
Methods inherited from interface software.amazon.awssdk.awscore.exception.AwsServiceException.Builder
awsErrorDetails, build, clockSkew, clockSkew, extendedRequestId
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.exception.SdkException.Builder
cause, message, writableStackTrace
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.exception.SdkServiceException.Builder
extendedRequestId, requestId, statusCode
-
-
-
-
Method Detail
-
error
ServiceUnavailableErrorException.Builder error(StorageGatewayError error)
A StorageGatewayError that provides more information about the cause of the error.
- Parameters:
error- A StorageGatewayError that provides more information about the cause of the error.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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 method that creates an instance of theStorageGatewayError.Builderavoiding the need to create one manually viaStorageGatewayError.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toerror(StorageGatewayError).- Parameters:
error- a consumer that will call methods onStorageGatewayError.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
error(StorageGatewayError)
-
awsErrorDetails
ServiceUnavailableErrorException.Builder awsErrorDetails(AwsErrorDetails awsErrorDetails)
- Specified by:
awsErrorDetailsin interfaceAwsServiceException.Builder- Specified by:
awsErrorDetailsin interfaceStorageGatewayException.Builder
-
message
ServiceUnavailableErrorException.Builder message(String message)
- Specified by:
messagein interfaceAwsServiceException.Builder- Specified by:
messagein interfaceSdkException.Builder- Specified by:
messagein interfaceSdkServiceException.Builder- Specified by:
messagein interfaceStorageGatewayException.Builder
-
requestId
ServiceUnavailableErrorException.Builder requestId(String requestId)
- Specified by:
requestIdin interfaceAwsServiceException.Builder- Specified by:
requestIdin interfaceSdkServiceException.Builder- Specified by:
requestIdin interfaceStorageGatewayException.Builder
-
statusCode
ServiceUnavailableErrorException.Builder statusCode(int statusCode)
- Specified by:
statusCodein interfaceAwsServiceException.Builder- Specified by:
statusCodein interfaceSdkServiceException.Builder- Specified by:
statusCodein interfaceStorageGatewayException.Builder
-
cause
ServiceUnavailableErrorException.Builder cause(Throwable cause)
- Specified by:
causein interfaceAwsServiceException.Builder- Specified by:
causein interfaceSdkException.Builder- Specified by:
causein interfaceSdkServiceException.Builder- Specified by:
causein interfaceStorageGatewayException.Builder
-
writableStackTrace
ServiceUnavailableErrorException.Builder writableStackTrace(Boolean writableStackTrace)
- Specified by:
writableStackTracein interfaceSdkException.Builder- Specified by:
writableStackTracein interfaceSdkServiceException.Builder- Specified by:
writableStackTracein interfaceStorageGatewayException.Builder
-
-