public static interface ResourceInUseException.Builder extends CopyableBuilder<ResourceInUseException.Builder,ResourceInUseException>, LexModelBuildingException.Builder
Modifier and Type | Method and Description |
---|---|
ResourceInUseException.Builder |
awsErrorDetails(AwsErrorDetails awsErrorDetails)
Specifies the additional awsErrorDetails from the service response.
|
ResourceInUseException.Builder |
cause(Throwable cause)
Specifies the exception that caused this exception to occur.
|
default ResourceInUseException.Builder |
exampleReference(Consumer<ResourceReference.Builder> exampleReference)
Sets the value of the ExampleReference property for this object.
|
ResourceInUseException.Builder |
exampleReference(ResourceReference exampleReference)
Sets the value of the ExampleReference property for this object.
|
ResourceInUseException.Builder |
message(String message)
Specifies the details of this exception.
|
ResourceInUseException.Builder |
referenceType(ReferenceType referenceType)
Sets the value of the ReferenceType property for this object.
|
ResourceInUseException.Builder |
referenceType(String referenceType)
Sets the value of the ReferenceType property for this object.
|
ResourceInUseException.Builder |
requestId(String requestId)
Specifies the requestId returned by the called service.
|
ResourceInUseException.Builder |
statusCode(int statusCode)
Specifies the status code returned by the service.
|
copy
applyMutation, build
awsErrorDetails, build
requestId, statusCode
cause, message
ResourceInUseException.Builder referenceType(String referenceType)
referenceType
- The new value for the ReferenceType property for this object.ReferenceType
,
ReferenceType
ResourceInUseException.Builder referenceType(ReferenceType referenceType)
referenceType
- The new value for the ReferenceType property for this object.ReferenceType
,
ReferenceType
ResourceInUseException.Builder exampleReference(ResourceReference exampleReference)
exampleReference
- The new value for the ExampleReference property for this object.default ResourceInUseException.Builder exampleReference(Consumer<ResourceReference.Builder> exampleReference)
ResourceReference.Builder
avoiding the need to
create one manually via ResourceReference.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to exampleReference(ResourceReference)
.exampleReference
- a consumer that will call methods on ResourceReference.Builder
exampleReference(ResourceReference)
ResourceInUseException.Builder awsErrorDetails(AwsErrorDetails awsErrorDetails)
AwsServiceException.Builder
awsErrorDetails
in interface AwsServiceException.Builder
awsErrorDetails
in interface LexModelBuildingException.Builder
awsErrorDetails
- Object containing additional details from the response.ResourceInUseException.Builder message(String message)
SdkException.Builder
message
in interface AwsServiceException.Builder
message
in interface LexModelBuildingException.Builder
message
in interface SdkException.Builder
message
in interface SdkServiceException.Builder
message
- The details of this exception.ResourceInUseException.Builder requestId(String requestId)
SdkServiceException.Builder
requestId
in interface AwsServiceException.Builder
requestId
in interface LexModelBuildingException.Builder
requestId
in interface SdkServiceException.Builder
requestId
- A string that identifies the request made to a service.ResourceInUseException.Builder statusCode(int statusCode)
SdkServiceException.Builder
statusCode
in interface AwsServiceException.Builder
statusCode
in interface LexModelBuildingException.Builder
statusCode
in interface SdkServiceException.Builder
statusCode
- an int containing the status code returned by the service.ResourceInUseException.Builder cause(Throwable cause)
SdkException.Builder
cause
in interface AwsServiceException.Builder
cause
in interface LexModelBuildingException.Builder
cause
in interface SdkException.Builder
cause
in interface SdkServiceException.Builder
cause
- The exception that caused this exception to occur.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.