Interface Attachment.Builder
- All Superinterfaces:
 Buildable,CopyableBuilder<Attachment.Builder,,Attachment> SdkBuilder<Attachment.Builder,,Attachment> SdkPojo
- Enclosing class:
 Attachment
public static interface Attachment.Builder
extends SdkPojo, CopyableBuilder<Attachment.Builder,Attachment> 
- 
Method Summary
Modifier and TypeMethodDescriptionattachmentArn(String attachmentArn) The Amazon Resource Name (ARN) of the cross-account attachment.createdTime(Instant createdTime) The date and time that the cross-account attachment was created.lastModifiedTime(Instant lastModifiedTime) The date and time that the cross-account attachment was last modified.The name of the cross-account attachment.principals(String... principals) The principals included in the cross-account attachment.principals(Collection<String> principals) The principals included in the cross-account attachment.resources(Collection<Resource> resources) The resources included in the cross-account attachment.resources(Consumer<Resource.Builder>... resources) The resources included in the cross-account attachment.The resources included in the cross-account attachment.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
- 
attachmentArn
The Amazon Resource Name (ARN) of the cross-account attachment.
- Parameters:
 attachmentArn- The Amazon Resource Name (ARN) of the cross-account attachment.- Returns:
 - Returns a reference to this object so that method calls can be chained together.
 
 - 
name
The name of the cross-account attachment.
- Parameters:
 name- The name of the cross-account attachment.- Returns:
 - Returns a reference to this object so that method calls can be chained together.
 
 - 
principals
The principals included in the cross-account attachment.
- Parameters:
 principals- The principals included in the cross-account attachment.- Returns:
 - Returns a reference to this object so that method calls can be chained together.
 
 - 
principals
The principals included in the cross-account attachment.
- Parameters:
 principals- The principals included in the cross-account attachment.- Returns:
 - Returns a reference to this object so that method calls can be chained together.
 
 - 
resources
The resources included in the cross-account attachment.
- Parameters:
 resources- The resources included in the cross-account attachment.- Returns:
 - Returns a reference to this object so that method calls can be chained together.
 
 - 
resources
The resources included in the cross-account attachment.
- Parameters:
 resources- The resources included in the cross-account attachment.- Returns:
 - Returns a reference to this object so that method calls can be chained together.
 
 - 
resources
The resources included in the cross-account attachment.
This is a convenience method that creates an instance of theResource.Builderavoiding the need to create one manually viaResource.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toresources(List<Resource>).- Parameters:
 resources- a consumer that will call methods onResource.Builder- Returns:
 - Returns a reference to this object so that method calls can be chained together.
 - See Also:
 
 - 
lastModifiedTime
The date and time that the cross-account attachment was last modified.
- Parameters:
 lastModifiedTime- The date and time that the cross-account attachment was last modified.- Returns:
 - Returns a reference to this object so that method calls can be chained together.
 
 - 
createdTime
The date and time that the cross-account attachment was created.
- Parameters:
 createdTime- The date and time that the cross-account attachment was created.- Returns:
 - Returns a reference to this object so that method calls can be chained together.
 
 
 -