Interface AssociateResourceResponseElement.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<AssociateResourceResponseElement.Builder,
,AssociateResourceResponseElement> SdkBuilder<AssociateResourceResponseElement.Builder,
,AssociateResourceResponseElement> SdkPojo
- Enclosing class:
AssociateResourceResponseElement
@Mutable
@NotThreadSafe
public static interface AssociateResourceResponseElement.Builder
extends SdkPojo, CopyableBuilder<AssociateResourceResponseElement.Builder,AssociateResourceResponseElement>
-
Method Summary
Modifier and TypeMethodDescriptionThe resource ARN that was associated to the custom line item.AnAssociateResourceError
that will populate if the resource association fails.error
(AssociateResourceError error) AnAssociateResourceError
that will populate if the resource association 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 associated to the custom line item.
- Parameters:
arn
- The resource ARN that was associated to the custom line item.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
error
An
AssociateResourceError
that will populate if the resource association fails.- Parameters:
error
- AnAssociateResourceError
that will populate if the resource association fails.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
error
default AssociateResourceResponseElement.Builder error(Consumer<AssociateResourceError.Builder> error) An
This is a convenience method that creates an instance of theAssociateResourceError
that will populate if the resource association 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:
-