Interface DocumentAcl.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<DocumentAcl.Builder,,DocumentAcl> SdkBuilder<DocumentAcl.Builder,,DocumentAcl> SdkPojo
- Enclosing class:
DocumentAcl
@Mutable
@NotThreadSafe
public static interface DocumentAcl.Builder
extends SdkPojo, CopyableBuilder<DocumentAcl.Builder,DocumentAcl>
-
Method Summary
Modifier and TypeMethodDescriptiondefault DocumentAcl.BuilderallowList(Consumer<DocumentAclMembership.Builder> allowList) The list of principals allowed access to the document.allowList(DocumentAclMembership allowList) The list of principals allowed access to the document.default DocumentAcl.BuilderdenyList(Consumer<DocumentAclMembership.Builder> denyList) The list of principals denied access to the document.denyList(DocumentAclMembership denyList) The list of principals denied access to the document.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, sdkFieldNameToField, sdkFields
-
Method Details
-
allowList
The list of principals allowed access to the document.
- Parameters:
allowList- The list of principals allowed access to the document.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
allowList
The list of principals allowed access to the document.
This is a convenience method that creates an instance of theDocumentAclMembership.Builderavoiding the need to create one manually viaDocumentAclMembership.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toallowList(DocumentAclMembership).- Parameters:
allowList- a consumer that will call methods onDocumentAclMembership.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
denyList
The list of principals denied access to the document.
- Parameters:
denyList- The list of principals denied access to the document.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
denyList
The list of principals denied access to the document.
This is a convenience method that creates an instance of theDocumentAclMembership.Builderavoiding the need to create one manually viaDocumentAclMembership.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todenyList(DocumentAclMembership).- Parameters:
denyList- a consumer that will call methods onDocumentAclMembership.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-