Interface CreateTrafficPolicyRequest.Builder

    • 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.
      • 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 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).

        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:
        #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.