Interface UpdateCrossAccountAttachmentResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<UpdateCrossAccountAttachmentResponse.Builder,,UpdateCrossAccountAttachmentResponse> GlobalAcceleratorResponse.Builder,SdkBuilder<UpdateCrossAccountAttachmentResponse.Builder,,UpdateCrossAccountAttachmentResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
UpdateCrossAccountAttachmentResponse
@Mutable
@NotThreadSafe
public static interface UpdateCrossAccountAttachmentResponse.Builder
extends GlobalAcceleratorResponse.Builder, SdkPojo, CopyableBuilder<UpdateCrossAccountAttachmentResponse.Builder,UpdateCrossAccountAttachmentResponse>
-
Method Summary
Modifier and TypeMethodDescriptioncrossAccountAttachment(Consumer<Attachment.Builder> crossAccountAttachment) Information about the updated cross-account attachment.crossAccountAttachment(Attachment crossAccountAttachment) Information about the updated cross-account attachment.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.globalaccelerator.model.GlobalAcceleratorResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
crossAccountAttachment
UpdateCrossAccountAttachmentResponse.Builder crossAccountAttachment(Attachment crossAccountAttachment) Information about the updated cross-account attachment.
- Parameters:
crossAccountAttachment- Information about the updated cross-account attachment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
crossAccountAttachment
default UpdateCrossAccountAttachmentResponse.Builder crossAccountAttachment(Consumer<Attachment.Builder> crossAccountAttachment) Information about the updated cross-account attachment.
This is a convenience method that creates an instance of theAttachment.Builderavoiding the need to create one manually viaAttachment.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocrossAccountAttachment(Attachment).- Parameters:
crossAccountAttachment- a consumer that will call methods onAttachment.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-