Interface CreateTrafficPolicyRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateTrafficPolicyRequest.Builder,CreateTrafficPolicyRequest>,MailManagerRequest.Builder,SdkBuilder<CreateTrafficPolicyRequest.Builder,CreateTrafficPolicyRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- CreateTrafficPolicyRequest
public static interface CreateTrafficPolicyRequest.Builder extends MailManagerRequest.Builder, SdkPojo, CopyableBuilder<CreateTrafficPolicyRequest.Builder,CreateTrafficPolicyRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CreateTrafficPolicyRequest.BuilderclientToken(String clientToken)A unique token that Amazon SES uses to recognize subsequent retries of the same request.CreateTrafficPolicyRequest.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 statementsCreateTrafficPolicyRequest.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 statementsCreateTrafficPolicyRequest.BuildermaxMessageSizeBytes(Integer maxMessageSizeBytes)The maximum message size in bytes of email which is allowed in by this traffic policy—anything larger will be blocked.CreateTrafficPolicyRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)CreateTrafficPolicyRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)CreateTrafficPolicyRequest.BuilderpolicyStatements(Collection<PolicyStatement> policyStatements)Conditional statements for filtering email traffic.CreateTrafficPolicyRequest.BuilderpolicyStatements(Consumer<PolicyStatement.Builder>... policyStatements)Conditional statements for filtering email traffic.CreateTrafficPolicyRequest.BuilderpolicyStatements(PolicyStatement... policyStatements)Conditional statements for filtering email traffic.CreateTrafficPolicyRequest.Buildertags(Collection<Tag> tags)The tags used to organize, track, or control access for the resource.CreateTrafficPolicyRequest.Buildertags(Consumer<Tag.Builder>... tags)The tags used to organize, track, or control access for the resource.CreateTrafficPolicyRequest.Buildertags(Tag... tags)The tags used to organize, track, or control access for the resource.CreateTrafficPolicyRequest.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
-
clientToken
CreateTrafficPolicyRequest.Builder clientToken(String 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
CreateTrafficPolicyRequest.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
CreateTrafficPolicyRequest.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
CreateTrafficPolicyRequest.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
CreateTrafficPolicyRequest.Builder policyStatements(Collection<PolicyStatement> 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(PolicyStatement... 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.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)
-
tags
CreateTrafficPolicyRequest.Builder tags(Collection<Tag> 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
CreateTrafficPolicyRequest.Builder tags(Tag... 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
CreateTrafficPolicyRequest.Builder tags(Consumer<Tag.Builder>... 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.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#tags(List.) - 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:
#tags(java.util.Collection)
-
trafficPolicyName
CreateTrafficPolicyRequest.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
CreateTrafficPolicyRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
CreateTrafficPolicyRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-