Interface UpdateTrafficPolicyRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<UpdateTrafficPolicyRequest.Builder,UpdateTrafficPolicyRequest>,MailManagerRequest.Builder,SdkBuilder<UpdateTrafficPolicyRequest.Builder,UpdateTrafficPolicyRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- UpdateTrafficPolicyRequest
public static interface UpdateTrafficPolicyRequest.Builder extends MailManagerRequest.Builder, SdkPojo, CopyableBuilder<UpdateTrafficPolicyRequest.Builder,UpdateTrafficPolicyRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description UpdateTrafficPolicyRequest.BuilderdefaultAction(String defaultAction)Default action instructs the traffic policy to either Allow or Deny (block) messages that fall outside of (or not addressed by) the conditions of your policy statementsUpdateTrafficPolicyRequest.BuilderdefaultAction(AcceptAction defaultAction)Default action instructs the traffic policy to either Allow or Deny (block) messages that fall outside of (or not addressed by) the conditions of your policy statementsUpdateTrafficPolicyRequest.BuildermaxMessageSizeBytes(Integer maxMessageSizeBytes)The maximum message size in bytes of email which is allowed in by this traffic policy—anything larger will be blocked.UpdateTrafficPolicyRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)UpdateTrafficPolicyRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)UpdateTrafficPolicyRequest.BuilderpolicyStatements(Collection<PolicyStatement> policyStatements)The list of conditions to be updated for filtering email traffic.UpdateTrafficPolicyRequest.BuilderpolicyStatements(Consumer<PolicyStatement.Builder>... policyStatements)The list of conditions to be updated for filtering email traffic.UpdateTrafficPolicyRequest.BuilderpolicyStatements(PolicyStatement... policyStatements)The list of conditions to be updated for filtering email traffic.UpdateTrafficPolicyRequest.BuildertrafficPolicyId(String trafficPolicyId)The identifier of the traffic policy that you want to update.UpdateTrafficPolicyRequest.BuildertrafficPolicyName(String trafficPolicyName)A user-friendly name for the traffic policy resource.-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.mailmanager.model.MailManagerRequest.Builder
build
-
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
-
defaultAction
UpdateTrafficPolicyRequest.Builder defaultAction(String defaultAction)
Default action instructs the traffic policy to either Allow or Deny (block) messages that fall outside of (or not addressed by) the conditions of your policy statements
- Parameters:
defaultAction- Default action instructs the traffic policy to either Allow or Deny (block) messages that fall outside of (or not addressed by) the conditions of your policy statements- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
AcceptAction,AcceptAction
-
defaultAction
UpdateTrafficPolicyRequest.Builder defaultAction(AcceptAction defaultAction)
Default action instructs the traffic policy to either Allow or Deny (block) messages that fall outside of (or not addressed by) the conditions of your policy statements
- Parameters:
defaultAction- Default action instructs the traffic policy to either Allow or Deny (block) messages that fall outside of (or not addressed by) the conditions of your policy statements- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
AcceptAction,AcceptAction
-
maxMessageSizeBytes
UpdateTrafficPolicyRequest.Builder maxMessageSizeBytes(Integer maxMessageSizeBytes)
The maximum message size in bytes of email which is allowed in by this traffic policy—anything larger will be blocked.
- Parameters:
maxMessageSizeBytes- The maximum message size in bytes of email which is allowed in by this traffic policy—anything larger will be blocked.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policyStatements
UpdateTrafficPolicyRequest.Builder policyStatements(Collection<PolicyStatement> policyStatements)
The list of conditions to be updated for filtering email traffic.
- Parameters:
policyStatements- The list of conditions to be updated for filtering email traffic.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policyStatements
UpdateTrafficPolicyRequest.Builder policyStatements(PolicyStatement... policyStatements)
The list of conditions to be updated for filtering email traffic.
- Parameters:
policyStatements- The list of conditions to be updated for filtering email traffic.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policyStatements
UpdateTrafficPolicyRequest.Builder policyStatements(Consumer<PolicyStatement.Builder>... policyStatements)
The list of conditions to be updated for filtering email traffic.
This is a convenience method that creates an instance of thePolicyStatement.Builderavoiding the need to create one manually viaPolicyStatement.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#policyStatements(List.) - Parameters:
policyStatements- a consumer that will call methods onPolicyStatement.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#policyStatements(java.util.Collection)
-
trafficPolicyId
UpdateTrafficPolicyRequest.Builder trafficPolicyId(String trafficPolicyId)
The identifier of the traffic policy that you want to update.
- Parameters:
trafficPolicyId- The identifier of the traffic policy that you want to update.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
trafficPolicyName
UpdateTrafficPolicyRequest.Builder trafficPolicyName(String trafficPolicyName)
A user-friendly name for the traffic policy resource.
- Parameters:
trafficPolicyName- A user-friendly name for the traffic policy resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
UpdateTrafficPolicyRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
UpdateTrafficPolicyRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-