Interface AssociateResourceResponseElement.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<AssociateResourceResponseElement.Builder,,AssociateResourceResponseElement> SdkBuilder<AssociateResourceResponseElement.Builder,,AssociateResourceResponseElement> SdkPojo
- Enclosing class:
AssociateResourceResponseElement
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.AnAssociateResourceErrorthat will populate if the resource association fails.error(AssociateResourceError error) AnAssociateResourceErrorthat will populate if the resource association fails.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, 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
AssociateResourceErrorthat will populate if the resource association fails.- Parameters:
error- AnAssociateResourceErrorthat 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 theAssociateResourceErrorthat will populate if the resource association fails.AssociateResourceError.Builderavoiding the need to create one manually viaAssociateResourceError.builder().When the
Consumercompletes,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:
-