JavaScript is disabled on your browser.
Skip navigation links

AWS SDK for Java 1.x API Reference - 1.12.795

We announced the upcoming end-of-support for AWS SDK for Java (v1). We recommend that you migrate to AWS SDK for Java v2. For dates, additional details, and information on how to migrate, please refer to the linked announcement.
com.amazonaws.services.mailmanager.model

Class CreateTrafficPolicyRequest

    • Constructor Detail

      • CreateTrafficPolicyRequest

        public CreateTrafficPolicyRequest()
    • Method Detail

      • setClientToken

        public void setClientToken(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.
      • getClientToken

        public String getClientToken()

        A unique token that Amazon SES uses to recognize subsequent retries of the same request.

        Returns:
        A unique token that Amazon SES uses to recognize subsequent retries of the same request.
      • withClientToken

        public CreateTrafficPolicyRequest withClientToken(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.
      • setDefaultAction

        public void setDefaultAction(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
        See Also:
        AcceptAction
      • getDefaultAction

        public String getDefaultAction()

        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:
        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
        See Also:
        AcceptAction
      • withDefaultAction

        public CreateTrafficPolicyRequest withDefaultAction(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
      • withDefaultAction

        public CreateTrafficPolicyRequest withDefaultAction(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
      • setMaxMessageSizeBytes

        public void setMaxMessageSizeBytes(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.
      • getMaxMessageSizeBytes

        public Integer getMaxMessageSizeBytes()

        The maximum message size in bytes of email which is allowed in by this traffic policy—anything larger will be blocked.

        Returns:
        The maximum message size in bytes of email which is allowed in by this traffic policy—anything larger will be blocked.
      • withMaxMessageSizeBytes

        public CreateTrafficPolicyRequest withMaxMessageSizeBytes(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.
      • getPolicyStatements

        public List<PolicyStatement> getPolicyStatements()

        Conditional statements for filtering email traffic.

        Returns:
        Conditional statements for filtering email traffic.
      • setPolicyStatements

        public void setPolicyStatements(Collection<PolicyStatement> policyStatements)

        Conditional statements for filtering email traffic.

        Parameters:
        policyStatements - Conditional statements for filtering email traffic.
      • withPolicyStatements

        public CreateTrafficPolicyRequest withPolicyStatements(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.
      • getTags

        public List<Tag> getTags()

        The tags used to organize, track, or control access for the resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.

        Returns:
        The tags used to organize, track, or control access for the resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
      • setTags

        public void setTags(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"} }.
      • withTags

        public CreateTrafficPolicyRequest withTags(Tag... tags)

        The tags used to organize, track, or control access for the resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.

        NOTE: This method appends the values to the existing list (if any). Use setTags(java.util.Collection) or withTags(java.util.Collection) if you want to override the existing values.

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

        public CreateTrafficPolicyRequest withTags(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.
      • setTrafficPolicyName

        public void setTrafficPolicyName(String trafficPolicyName)

        A user-friendly name for the traffic policy resource.

        Parameters:
        trafficPolicyName - A user-friendly name for the traffic policy resource.
      • getTrafficPolicyName

        public String getTrafficPolicyName()

        A user-friendly name for the traffic policy resource.

        Returns:
        A user-friendly name for the traffic policy resource.
      • withTrafficPolicyName

        public CreateTrafficPolicyRequest withTrafficPolicyName(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.
      • toString

        public String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
        Returns:
        A string representation of this object.
        See Also:
        Object.toString()
Skip navigation links

AltStyle によって変換されたページ (->オリジナル) /