Interface CreateTrafficPolicyRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<CreateTrafficPolicyRequest.Builder,
,CreateTrafficPolicyRequest> MailManagerRequest.Builder
,SdkBuilder<CreateTrafficPolicyRequest.Builder,
,CreateTrafficPolicyRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
CreateTrafficPolicyRequest
-
Method Summary
Modifier and TypeMethodDescriptionclientToken
(String clientToken) A unique token that Amazon SES uses to recognize subsequent retries of the same request.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 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) Conditional statements for filtering email traffic.policyStatements
(Consumer<PolicyStatement.Builder>... policyStatements) Conditional statements for filtering email traffic.policyStatements
(PolicyStatement... policyStatements) Conditional statements for filtering email traffic.tags
(Collection<Tag> tags) The tags used to organize, track, or control access for the resource.tags
(Consumer<Tag.Builder>... tags) The tags used to organize, track, or control access for the resource.The tags used to organize, track, or control access for the resource.trafficPolicyName
(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, sdkFieldNameToField, sdkFields
-
Method Details
-
clientToken
A unique token that Amazon SES uses to recognize subsequent retries of the same request.
- Parameters:
clientToken
- A unique token that Amazon SES uses to recognize subsequent retries of the same request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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
Conditional statements for filtering email traffic.
- Parameters:
policyStatements
- Conditional statements for filtering email traffic.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policyStatements
Conditional statements for filtering email traffic.
- Parameters:
policyStatements
- Conditional statements for filtering email traffic.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policyStatements
CreateTrafficPolicyRequest.Builder policyStatements(Consumer<PolicyStatement.Builder>... policyStatements) Conditional statements for filtering email traffic.
This is a convenience method that creates an instance of thePolicyStatement.Builder
avoiding the need to create one manually viaPolicyStatement.builder()
.When the
Consumer
completes,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:
-
tags
The tags used to organize, track, or control access for the resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
- Parameters:
tags
- The tags used to organize, track, or control access for the resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The tags used to organize, track, or control access for the resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
- Parameters:
tags
- The tags used to organize, track, or control access for the resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The tags used to organize, track, or control access for the resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
This is a convenience method that creates an instance of theTag.Builder
avoiding the need to create one manually viaTag.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totags(List<Tag>)
.- Parameters:
tags
- a consumer that will call methods onTag.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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
CreateTrafficPolicyRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateTrafficPolicyRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-