Interface PolicyStatement.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<PolicyStatement.Builder,
,PolicyStatement> SdkBuilder<PolicyStatement.Builder,
,PolicyStatement> SdkPojo
- Enclosing class:
PolicyStatement
@Mutable
@NotThreadSafe
public static interface PolicyStatement.Builder
extends SdkPojo, CopyableBuilder<PolicyStatement.Builder,PolicyStatement>
-
Method Summary
Modifier and TypeMethodDescriptionThe action that informs a traffic policy resource to either allow or block the email if it matches a condition in the policy statement.action
(AcceptAction action) The action that informs a traffic policy resource to either allow or block the email if it matches a condition in the policy statement.conditions
(Collection<PolicyCondition> conditions) The list of conditions to apply to incoming messages for filtering email traffic.conditions
(Consumer<PolicyCondition.Builder>... conditions) The list of conditions to apply to incoming messages for filtering email traffic.conditions
(PolicyCondition... conditions) The list of conditions to apply to incoming messages for filtering email traffic.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
-
action
The action that informs a traffic policy resource to either allow or block the email if it matches a condition in the policy statement.
- Parameters:
action
- The action that informs a traffic policy resource to either allow or block the email if it matches a condition in the policy statement.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
action
The action that informs a traffic policy resource to either allow or block the email if it matches a condition in the policy statement.
- Parameters:
action
- The action that informs a traffic policy resource to either allow or block the email if it matches a condition in the policy statement.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
conditions
The list of conditions to apply to incoming messages for filtering email traffic.
- Parameters:
conditions
- The list of conditions to apply to incoming messages for filtering email traffic.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
conditions
The list of conditions to apply to incoming messages for filtering email traffic.
- Parameters:
conditions
- The list of conditions to apply to incoming messages for filtering email traffic.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
conditions
The list of conditions to apply to incoming messages for filtering email traffic.
This is a convenience method that creates an instance of thePolicyCondition.Builder
avoiding the need to create one manually viaPolicyCondition.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toconditions(List<PolicyCondition>)
.- Parameters:
conditions
- a consumer that will call methods onPolicyCondition.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-