Interface ImpersonationRule.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<ImpersonationRule.Builder,ImpersonationRule>,SdkBuilder<ImpersonationRule.Builder,ImpersonationRule>,SdkPojo
- Enclosing class:
- ImpersonationRule
public static interface ImpersonationRule.Builder extends SdkPojo, CopyableBuilder<ImpersonationRule.Builder,ImpersonationRule>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ImpersonationRule.Builderdescription(String description)The rule description.ImpersonationRule.Buildereffect(String effect)The effect of the rule when it matches the input.ImpersonationRule.Buildereffect(AccessEffect effect)The effect of the rule when it matches the input.ImpersonationRule.BuilderimpersonationRuleId(String impersonationRuleId)The identifier of the rule.ImpersonationRule.Buildername(String name)The rule name.ImpersonationRule.BuildernotTargetUsers(String... notTargetUsers)A list of user IDs that don't match the rule.ImpersonationRule.BuildernotTargetUsers(Collection<String> notTargetUsers)A list of user IDs that don't match the rule.ImpersonationRule.BuildertargetUsers(String... targetUsers)A list of user IDs that match the rule.ImpersonationRule.BuildertargetUsers(Collection<String> targetUsers)A list of user IDs that match the rule.-
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, sdkFields
-
-
-
-
Method Detail
-
impersonationRuleId
ImpersonationRule.Builder impersonationRuleId(String impersonationRuleId)
The identifier of the rule.
- Parameters:
impersonationRuleId- The identifier of the rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
ImpersonationRule.Builder name(String name)
The rule name.
- Parameters:
name- The rule name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
ImpersonationRule.Builder description(String description)
The rule description.
- Parameters:
description- The rule description.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
effect
ImpersonationRule.Builder effect(String effect)
The effect of the rule when it matches the input. Allowed effect values are
ALLOWorDENY.- Parameters:
effect- The effect of the rule when it matches the input. Allowed effect values areALLOWorDENY.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
AccessEffect,AccessEffect
-
effect
ImpersonationRule.Builder effect(AccessEffect effect)
The effect of the rule when it matches the input. Allowed effect values are
ALLOWorDENY.- Parameters:
effect- The effect of the rule when it matches the input. Allowed effect values areALLOWorDENY.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
AccessEffect,AccessEffect
-
targetUsers
ImpersonationRule.Builder targetUsers(Collection<String> targetUsers)
A list of user IDs that match the rule.
- Parameters:
targetUsers- A list of user IDs that match the rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targetUsers
ImpersonationRule.Builder targetUsers(String... targetUsers)
A list of user IDs that match the rule.
- Parameters:
targetUsers- A list of user IDs that match the rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
notTargetUsers
ImpersonationRule.Builder notTargetUsers(Collection<String> notTargetUsers)
A list of user IDs that don't match the rule.
- Parameters:
notTargetUsers- A list of user IDs that don't match the rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
notTargetUsers
ImpersonationRule.Builder notTargetUsers(String... notTargetUsers)
A list of user IDs that don't match the rule.
- Parameters:
notTargetUsers- A list of user IDs that don't match the rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-