Interface DisassociateResourceResponseElement.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<DisassociateResourceResponseElement.Builder,
,DisassociateResourceResponseElement> SdkBuilder<DisassociateResourceResponseElement.Builder,
,DisassociateResourceResponseElement> SdkPojo
- Enclosing class:
DisassociateResourceResponseElement
@Mutable
@NotThreadSafe
public static interface DisassociateResourceResponseElement.Builder
extends SdkPojo, CopyableBuilder<DisassociateResourceResponseElement.Builder,DisassociateResourceResponseElement>
-
Method Summary
Modifier and TypeMethodDescriptionThe resource ARN that was disassociated from the custom line item.AnAssociateResourceError
that's shown if the resource disassociation fails.error
(AssociateResourceError error) AnAssociateResourceError
that's shown if the resource disassociation fails.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.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
arn
The resource ARN that was disassociated from the custom line item.
- Parameters:
arn
- The resource ARN that was disassociated from the custom line item.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
error
An
AssociateResourceError
that's shown if the resource disassociation fails.- Parameters:
error
- AnAssociateResourceError
that's shown if the resource disassociation fails.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
error
default DisassociateResourceResponseElement.Builder error(Consumer<AssociateResourceError.Builder> error) An
This is a convenience method that creates an instance of theAssociateResourceError
that's shown if the resource disassociation fails.AssociateResourceError.Builder
avoiding the need to create one manually viaAssociateResourceError.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toerror(AssociateResourceError)
.- Parameters:
error
- a consumer that will call methods onAssociateResourceError.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-