Interface CreateTrafficPolicyRequest.Builder

  • Method Details

    • 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:
    • 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:
    • 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

      Conditional statements for filtering email traffic.

      This is a convenience method that creates an instance of the PolicyStatement.Builder avoiding the need to create one manually via PolicyStatement.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to policyStatements(List<PolicyStatement>).

      Parameters:
      policyStatements - a consumer that will call methods on PolicyStatement.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 the Tag.Builder avoiding the need to create one manually via Tag.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to tags(List<Tag>).

      Parameters:
      tags - a consumer that will call methods on Tag.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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)
      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.