Interface UpdateTrafficPolicyRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<UpdateTrafficPolicyRequest.Builder,,UpdateTrafficPolicyRequest> MailManagerRequest.Builder,SdkBuilder<UpdateTrafficPolicyRequest.Builder,,UpdateTrafficPolicyRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
UpdateTrafficPolicyRequest
-
Method Summary
Modifier and TypeMethodDescriptiondefaultAction(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 statementsdefaultAction(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 statementsmaxMessageSizeBytes(Integer maxMessageSizeBytes) The maximum message size in bytes of email which is allowed in by this traffic policy—anything larger will be blocked.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.policyStatements(Collection<PolicyStatement> policyStatements) The list of conditions to be updated for filtering email traffic.policyStatements(Consumer<PolicyStatement.Builder>... policyStatements) The list of conditions to be updated for filtering email traffic.policyStatements(PolicyStatement... policyStatements) The list of conditions to be updated for filtering email traffic.trafficPolicyId(String trafficPolicyId) The identifier of the traffic policy that you want to update.trafficPolicyName(String trafficPolicyName) A user-friendly name for the traffic policy resource.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.mailmanager.model.MailManagerRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
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:
-
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:
-
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
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
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 topolicyStatements(List<PolicyStatement>).- 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:
-
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
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) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
UpdateTrafficPolicyRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-