Interface AccessControl.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<AccessControl.Builder,
,AccessControl> SdkBuilder<AccessControl.Builder,
,AccessControl> SdkPojo
- Enclosing class:
AccessControl
@Mutable
@NotThreadSafe
public static interface AccessControl.Builder
extends SdkPojo, CopyableBuilder<AccessControl.Builder,AccessControl>
-
Method Summary
Modifier and TypeMethodDescriptionmemberRelation
(String memberRelation) Describes the member relation within a principal list.memberRelation
(MemberRelation memberRelation) Describes the member relation within a principal list.principals
(Collection<Principal> principals) Contains a list of principals, where a principal can be either aUSER
or aGROUP
.principals
(Consumer<Principal.Builder>... principals) Contains a list of principals, where a principal can be either aUSER
or aGROUP
.principals
(Principal... principals) Contains a list of principals, where a principal can be either aUSER
or aGROUP
.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 Details
-
principals
Contains a list of principals, where a principal can be either a
USER
or aGROUP
. Each principal can be have the following type of document access:ALLOW
orDENY
.- Parameters:
principals
- Contains a list of principals, where a principal can be either aUSER
or aGROUP
. Each principal can be have the following type of document access:ALLOW
orDENY
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
principals
Contains a list of principals, where a principal can be either a
USER
or aGROUP
. Each principal can be have the following type of document access:ALLOW
orDENY
.- Parameters:
principals
- Contains a list of principals, where a principal can be either aUSER
or aGROUP
. Each principal can be have the following type of document access:ALLOW
orDENY
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
principals
Contains a list of principals, where a principal can be either a
This is a convenience method that creates an instance of theUSER
or aGROUP
. Each principal can be have the following type of document access:ALLOW
orDENY
.Principal.Builder
avoiding the need to create one manually viaPrincipal.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toprincipals(List<Principal>)
.- Parameters:
principals
- a consumer that will call methods onPrincipal.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
memberRelation
Describes the member relation within a principal list.
- Parameters:
memberRelation
- Describes the member relation within a principal list.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
memberRelation
Describes the member relation within a principal list.
- Parameters:
memberRelation
- Describes the member relation within a principal list.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-