Interface RejectedRecordsException.Builder
-
- All Superinterfaces:
AwsServiceException.Builder,Buildable,CopyableBuilder<RejectedRecordsException.Builder,RejectedRecordsException>,SdkBuilder<RejectedRecordsException.Builder,RejectedRecordsException>,SdkException.Builder,SdkPojo,SdkServiceException.Builder,TimestreamWriteException.Builder
- Enclosing class:
- RejectedRecordsException
public static interface RejectedRecordsException.Builder extends SdkPojo, CopyableBuilder<RejectedRecordsException.Builder,RejectedRecordsException>, TimestreamWriteException.Builder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RejectedRecordsException.BuilderawsErrorDetails(AwsErrorDetails awsErrorDetails)RejectedRecordsException.Buildercause(Throwable cause)RejectedRecordsException.Buildermessage(String message)RejectedRecordsException.BuilderrejectedRecords(Collection<RejectedRecord> rejectedRecords)RejectedRecordsException.BuilderrejectedRecords(Consumer<RejectedRecord.Builder>... rejectedRecords)RejectedRecordsException.BuilderrejectedRecords(RejectedRecord... rejectedRecords)RejectedRecordsException.BuilderrequestId(String requestId)RejectedRecordsException.BuilderstatusCode(int statusCode)RejectedRecordsException.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
-
rejectedRecords
RejectedRecordsException.Builder rejectedRecords(Collection<RejectedRecord> rejectedRecords)
- Parameters:
rejectedRecords-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rejectedRecords
RejectedRecordsException.Builder rejectedRecords(RejectedRecord... rejectedRecords)
- Parameters:
rejectedRecords-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rejectedRecords
RejectedRecordsException.Builder rejectedRecords(Consumer<RejectedRecord.Builder>... rejectedRecords)
This is a convenience method that creates an instance of theRejectedRecord.Builderavoiding the need to create one manually viaRejectedRecord.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#rejectedRecords(List.) - Parameters:
rejectedRecords- a consumer that will call methods onRejectedRecord.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#rejectedRecords(java.util.Collection)
-
awsErrorDetails
RejectedRecordsException.Builder awsErrorDetails(AwsErrorDetails awsErrorDetails)
- Specified by:
awsErrorDetailsin interfaceAwsServiceException.Builder- Specified by:
awsErrorDetailsin interfaceTimestreamWriteException.Builder
-
message
RejectedRecordsException.Builder message(String message)
- Specified by:
messagein interfaceAwsServiceException.Builder- Specified by:
messagein interfaceSdkException.Builder- Specified by:
messagein interfaceSdkServiceException.Builder- Specified by:
messagein interfaceTimestreamWriteException.Builder
-
requestId
RejectedRecordsException.Builder requestId(String requestId)
- Specified by:
requestIdin interfaceAwsServiceException.Builder- Specified by:
requestIdin interfaceSdkServiceException.Builder- Specified by:
requestIdin interfaceTimestreamWriteException.Builder
-
statusCode
RejectedRecordsException.Builder statusCode(int statusCode)
- Specified by:
statusCodein interfaceAwsServiceException.Builder- Specified by:
statusCodein interfaceSdkServiceException.Builder- Specified by:
statusCodein interfaceTimestreamWriteException.Builder
-
cause
RejectedRecordsException.Builder cause(Throwable cause)
- Specified by:
causein interfaceAwsServiceException.Builder- Specified by:
causein interfaceSdkException.Builder- Specified by:
causein interfaceSdkServiceException.Builder- Specified by:
causein interfaceTimestreamWriteException.Builder
-
writableStackTrace
RejectedRecordsException.Builder writableStackTrace(Boolean writableStackTrace)
- Specified by:
writableStackTracein interfaceSdkException.Builder- Specified by:
writableStackTracein interfaceSdkServiceException.Builder- Specified by:
writableStackTracein interfaceTimestreamWriteException.Builder
-
-