Interface ConflictException.Builder
-
- All Superinterfaces:
AwsServiceException.Builder,Buildable,CopyableBuilder<ConflictException.Builder,ConflictException>,MgnException.Builder,SdkBuilder<ConflictException.Builder,ConflictException>,SdkException.Builder,SdkPojo,SdkServiceException.Builder
- Enclosing class:
- ConflictException
public static interface ConflictException.Builder extends SdkPojo, CopyableBuilder<ConflictException.Builder,ConflictException>, MgnException.Builder
-
-
Method Summary
-
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
-
code
ConflictException.Builder code(String code)
Sets the value of the Code property for this object.- Parameters:
code- The new value for the Code property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
errors
ConflictException.Builder errors(Collection<ErrorDetails> errors)
Conflict Exception specific errors.
- Parameters:
errors- Conflict Exception specific errors.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
errors
ConflictException.Builder errors(ErrorDetails... errors)
Conflict Exception specific errors.
- Parameters:
errors- Conflict Exception specific errors.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
errors
ConflictException.Builder errors(Consumer<ErrorDetails.Builder>... errors)
Conflict Exception specific errors.
This is a convenience method that creates an instance of theErrorDetails.Builderavoiding the need to create one manually viaErrorDetails.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#errors(List.) - Parameters:
errors- a consumer that will call methods onErrorDetails.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#errors(java.util.Collection)
-
resourceId
ConflictException.Builder resourceId(String resourceId)
A conflict occurred when prompting for the Resource ID.
- Parameters:
resourceId- A conflict occurred when prompting for the Resource ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceType
ConflictException.Builder resourceType(String resourceType)
A conflict occurred when prompting for resource type.
- Parameters:
resourceType- A conflict occurred when prompting for resource type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
awsErrorDetails
ConflictException.Builder awsErrorDetails(AwsErrorDetails awsErrorDetails)
- Specified by:
awsErrorDetailsin interfaceAwsServiceException.Builder- Specified by:
awsErrorDetailsin interfaceMgnException.Builder
-
message
ConflictException.Builder message(String message)
- Specified by:
messagein interfaceAwsServiceException.Builder- Specified by:
messagein interfaceMgnException.Builder- Specified by:
messagein interfaceSdkException.Builder- Specified by:
messagein interfaceSdkServiceException.Builder
-
requestId
ConflictException.Builder requestId(String requestId)
- Specified by:
requestIdin interfaceAwsServiceException.Builder- Specified by:
requestIdin interfaceMgnException.Builder- Specified by:
requestIdin interfaceSdkServiceException.Builder
-
statusCode
ConflictException.Builder statusCode(int statusCode)
- Specified by:
statusCodein interfaceAwsServiceException.Builder- Specified by:
statusCodein interfaceMgnException.Builder- Specified by:
statusCodein interfaceSdkServiceException.Builder
-
cause
ConflictException.Builder cause(Throwable cause)
- Specified by:
causein interfaceAwsServiceException.Builder- Specified by:
causein interfaceMgnException.Builder- Specified by:
causein interfaceSdkException.Builder- Specified by:
causein interfaceSdkServiceException.Builder
-
writableStackTrace
ConflictException.Builder writableStackTrace(Boolean writableStackTrace)
- Specified by:
writableStackTracein interfaceMgnException.Builder- Specified by:
writableStackTracein interfaceSdkException.Builder- Specified by:
writableStackTracein interfaceSdkServiceException.Builder
-
-