Interface MatchedPolicy.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<MatchedPolicy.Builder,,MatchedPolicy> SdkBuilder<MatchedPolicy.Builder,,MatchedPolicy> SdkPojo
- Enclosing class:
MatchedPolicy
@Mutable
@NotThreadSafe
public static interface MatchedPolicy.Builder
extends SdkPojo, CopyableBuilder<MatchedPolicy.Builder,MatchedPolicy>
-
Method Summary
Modifier and TypeMethodDescriptionmatchedStatements(Collection<MatchedStatement> matchedStatements) The statements within the policy that matched during the evaluation.matchedStatements(Consumer<MatchedStatement.Builder>... matchedStatements) The statements within the policy that matched during the evaluation.matchedStatements(MatchedStatement... matchedStatements) The statements within the policy that matched during the evaluation.The URI of the policy.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
-
uri
The URI of the policy. This cross-references an entry in the top-level policies list. The value depends on the policy type:
-
For managed policies, this is the policy ARN.
-
For inline policies, this is an opaque identifier.
- Parameters:
uri- The URI of the policy. This cross-references an entry in the top-level policies list. The value depends on the policy type:-
For managed policies, this is the policy ARN.
-
For inline policies, this is an opaque identifier.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
matchedStatements
The statements within the policy that matched during the evaluation.
- Parameters:
matchedStatements- The statements within the policy that matched during the evaluation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
matchedStatements
The statements within the policy that matched during the evaluation.
- Parameters:
matchedStatements- The statements within the policy that matched during the evaluation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
matchedStatements
The statements within the policy that matched during the evaluation.
This is a convenience method that creates an instance of theMatchedStatement.Builderavoiding the need to create one manually viaMatchedStatement.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tomatchedStatements(List<MatchedStatement>).- Parameters:
matchedStatements- a consumer that will call methods onMatchedStatement.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-