Class Crc32MismatchException.BuilderImpl
- java.lang.Object
-
- software.amazon.awssdk.core.exception.SdkException.BuilderImpl
-
- software.amazon.awssdk.core.exception.SdkClientException.BuilderImpl
-
- software.amazon.awssdk.core.exception.Crc32MismatchException.BuilderImpl
-
- All Implemented Interfaces:
Crc32MismatchException.Builder,SdkClientException.Builder,SdkException.Builder,Buildable
- Enclosing class:
- Crc32MismatchException
protected static final class Crc32MismatchException.BuilderImpl extends SdkClientException.BuilderImpl implements Crc32MismatchException.Builder
-
-
Field Summary
-
Fields inherited from class software.amazon.awssdk.core.exception.SdkException.BuilderImpl
cause, message, numAttempts, writableStackTrace
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBuilderImpl()protectedBuilderImpl(Crc32MismatchException ex)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Crc32MismatchExceptionbuild()Creates a newSdkExceptionwith the specified properties.Crc32MismatchException.Buildercause(Throwable cause)Specifies the exception that caused this exception to occur.Crc32MismatchException.Buildermessage(String message)Specifies the details of this exception.Crc32MismatchException.BuildernumAttempts(Integer numAttempts)Crc32MismatchException.BuilderwritableStackTrace(Boolean writableStackTrace)Specifies whether the stack trace in this exception can be written.-
Methods inherited from class software.amazon.awssdk.core.exception.SdkException.BuilderImpl
cause, getCause, getMessage, getNumAttempts, getWritableStackTrace, message, numAttempts, setAttemptCount, setCause, setMessage, setWritableStackTrace, writableStackTrace
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.core.exception.SdkException.Builder
cause, message, numAttempts, writableStackTrace
-
-
-
-
Constructor Detail
-
BuilderImpl
protected BuilderImpl()
-
BuilderImpl
protected BuilderImpl(Crc32MismatchException ex)
-
-
Method Detail
-
message
public Crc32MismatchException.Builder message(String message)
Description copied from interface:SdkException.BuilderSpecifies the details of this exception.- Specified by:
messagein interfaceCrc32MismatchException.Builder- Specified by:
messagein interfaceSdkClientException.Builder- Specified by:
messagein interfaceSdkException.Builder- Overrides:
messagein classSdkClientException.BuilderImpl- Parameters:
message- The details of this exception.- Returns:
- This method for object chaining
-
cause
public Crc32MismatchException.Builder cause(Throwable cause)
Description copied from interface:SdkException.BuilderSpecifies the exception that caused this exception to occur.- Specified by:
causein interfaceCrc32MismatchException.Builder- Specified by:
causein interfaceSdkClientException.Builder- Specified by:
causein interfaceSdkException.Builder- Overrides:
causein classSdkClientException.BuilderImpl- Parameters:
cause- The exception that caused this exception to occur.- Returns:
- This object for method chaining.
-
writableStackTrace
public Crc32MismatchException.Builder writableStackTrace(Boolean writableStackTrace)
Description copied from interface:SdkException.BuilderSpecifies whether the stack trace in this exception can be written.- Specified by:
writableStackTracein interfaceCrc32MismatchException.Builder- Specified by:
writableStackTracein interfaceSdkClientException.Builder- Specified by:
writableStackTracein interfaceSdkException.Builder- Overrides:
writableStackTracein classSdkClientException.BuilderImpl- Parameters:
writableStackTrace- Whether the stack trace can be written.- Returns:
- This method for object chaining
-
numAttempts
public Crc32MismatchException.Builder numAttempts(Integer numAttempts)
- Specified by:
numAttemptsin interfaceCrc32MismatchException.Builder- Specified by:
numAttemptsin interfaceSdkClientException.Builder- Specified by:
numAttemptsin interfaceSdkException.Builder- Overrides:
numAttemptsin classSdkClientException.BuilderImpl- Parameters:
numAttempts- The attempt count- Returns:
- This method for object chaining
-
build
public Crc32MismatchException build()
Description copied from interface:SdkException.BuilderCreates a newSdkExceptionwith the specified properties.- Specified by:
buildin interfaceBuildable- Specified by:
buildin interfaceCrc32MismatchException.Builder- Specified by:
buildin interfaceSdkClientException.Builder- Specified by:
buildin interfaceSdkException.Builder- Overrides:
buildin classSdkClientException.BuilderImpl- Returns:
- The new
SdkException.
-
-