Interface UpdateTrafficPolicyRequest.Builder

  • Method Details

    • defaultAction

      UpdateTrafficPolicyRequest.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

      UpdateTrafficPolicyRequest.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

      UpdateTrafficPolicyRequest.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

      UpdateTrafficPolicyRequest.Builder policyStatements(Collection<PolicyStatement> policyStatements)

      The list of conditions to be updated for filtering email traffic.

      Parameters:
      policyStatements - The list of conditions to be updated for filtering email traffic.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • policyStatements

      UpdateTrafficPolicyRequest.Builder policyStatements(PolicyStatement... policyStatements)

      The list of conditions to be updated for filtering email traffic.

      Parameters:
      policyStatements - The list of conditions to be updated for filtering email traffic.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • policyStatements

      The list of conditions to be updated 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:
    • trafficPolicyId

      UpdateTrafficPolicyRequest.Builder trafficPolicyId(String trafficPolicyId)

      The identifier of the traffic policy that you want to update.

      Parameters:
      trafficPolicyId - The identifier of the traffic policy that you want to update.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • trafficPolicyName

      UpdateTrafficPolicyRequest.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

      UpdateTrafficPolicyRequest.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.