Interface PolicyStatement.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<PolicyStatement.Builder,PolicyStatement>,SdkBuilder<PolicyStatement.Builder,PolicyStatement>,SdkPojo
- Enclosing class:
- PolicyStatement
public static interface PolicyStatement.Builder extends SdkPojo, CopyableBuilder<PolicyStatement.Builder,PolicyStatement>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PolicyStatement.Builderaction(String 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.PolicyStatement.Builderaction(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.PolicyStatement.Builderconditions(Collection<PolicyCondition> conditions)The list of conditions to apply to incoming messages for filtering email traffic.PolicyStatement.Builderconditions(Consumer<PolicyCondition.Builder>... conditions)The list of conditions to apply to incoming messages for filtering email traffic.PolicyStatement.Builderconditions(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, sdkFields
-
-
-
-
Method Detail
-
action
PolicyStatement.Builder action(String 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:
AcceptAction,AcceptAction
-
action
PolicyStatement.Builder 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.
- 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:
AcceptAction,AcceptAction
-
conditions
PolicyStatement.Builder conditions(Collection<PolicyCondition> 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
PolicyStatement.Builder conditions(PolicyCondition... 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
PolicyStatement.Builder conditions(Consumer<PolicyCondition.Builder>... 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.Builderavoiding the need to create one manually viaPolicyCondition.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#conditions(List.) - 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:
#conditions(java.util.Collection)
-
-