Interface AccessControlRule.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<AccessControlRule.Builder,,AccessControlRule> SdkBuilder<AccessControlRule.Builder,,AccessControlRule> SdkPojo
- Enclosing class:
AccessControlRule
@Mutable
@NotThreadSafe
public static interface AccessControlRule.Builder
extends SdkPojo, CopyableBuilder<AccessControlRule.Builder,AccessControlRule>
-
Method Summary
Modifier and TypeMethodDescriptiondefault AccessControlRule.BuilderanyAuthenticatedUser(Consumer<Unit.Builder> anyAuthenticatedUser) Admits any user who signs in successfully.anyAuthenticatedUser(Unit anyAuthenticatedUser) Admits any user who signs in successfully.userClaims(Collection<AccessRuleCondition> userClaims) Admits users whose token claims match the specified conditions.userClaims(Consumer<AccessRuleCondition.Builder>... userClaims) Admits users whose token claims match the specified conditions.userClaims(AccessRuleCondition... userClaims) Admits users whose token claims match the specified conditions.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
-
anyAuthenticatedUser
Admits any user who signs in successfully.
- Parameters:
anyAuthenticatedUser- Admits any user who signs in successfully.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
anyAuthenticatedUser
Admits any user who signs in successfully.
This is a convenience method that creates an instance of theUnit.Builderavoiding the need to create one manually viaUnit.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toanyAuthenticatedUser(Unit).- Parameters:
anyAuthenticatedUser- a consumer that will call methods onUnit.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
userClaims
Admits users whose token claims match the specified conditions.
- Parameters:
userClaims- Admits users whose token claims match the specified conditions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
userClaims
Admits users whose token claims match the specified conditions.
- Parameters:
userClaims- Admits users whose token claims match the specified conditions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
userClaims
Admits users whose token claims match the specified conditions.
This is a convenience method that creates an instance of theAccessRuleCondition.Builderavoiding the need to create one manually viaAccessRuleCondition.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed touserClaims(List<AccessRuleCondition>).- Parameters:
userClaims- a consumer that will call methods onAccessRuleCondition.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-