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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Attachment.BuilderattachmentArn(String attachmentArn)The Amazon Resource Name (ARN) of the cross-account attachment.Attachment.BuildercreatedTime(Instant createdTime)The date and time that the cross-account attachment was created.Attachment.BuilderlastModifiedTime(Instant lastModifiedTime)The date and time that the cross-account attachment was last modified.Attachment.Buildername(String name)The name of the cross-account attachment.Attachment.Builderprincipals(String... principals)The principals included in the cross-account attachment.Attachment.Builderprincipals(Collection<String> principals)The principals included in the cross-account attachment.Attachment.Builderresources(Collection<Resource> resources)The resources included in the cross-account attachment.Attachment.Builderresources(Consumer<Resource.Builder>... resources)The resources included in the cross-account attachment.Attachment.Builderresources(Resource... resources)The resources included in the cross-account attachment.-
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 Detail
-
attachmentArn
Attachment.Builder attachmentArn(String 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
Attachment.Builder name(String 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
Attachment.Builder principals(Collection<String> 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
Attachment.Builder principals(String... 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
Attachment.Builder resources(Collection<Resource> 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
Attachment.Builder resources(Resource... 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
Attachment.Builder resources(Consumer<Resource.Builder>... 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 to#resources(List.) - 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:
#resources(java.util.Collection)
-
lastModifiedTime
Attachment.Builder lastModifiedTime(Instant 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
Attachment.Builder createdTime(Instant 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.
-
-