Interface GetTrafficPolicyResponse.Builder

  • Method Details

    • createdTimestamp

      GetTrafficPolicyResponse.Builder createdTimestamp(Instant createdTimestamp)

      The timestamp of when the traffic policy was created.

      Parameters:
      createdTimestamp - The timestamp of when the traffic policy was created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • defaultAction

      GetTrafficPolicyResponse.Builder defaultAction(String defaultAction)

      The default action of the traffic policy.

      Parameters:
      defaultAction - The default action of the traffic policy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • defaultAction

      GetTrafficPolicyResponse.Builder defaultAction(AcceptAction defaultAction)

      The default action of the traffic policy.

      Parameters:
      defaultAction - The default action of the traffic policy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • lastUpdatedTimestamp

      GetTrafficPolicyResponse.Builder lastUpdatedTimestamp(Instant lastUpdatedTimestamp)

      The timestamp of when the traffic policy was last updated.

      Parameters:
      lastUpdatedTimestamp - The timestamp of when the traffic policy was last updated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • maxMessageSizeBytes

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

      GetTrafficPolicyResponse.Builder policyStatements(Collection<PolicyStatement> policyStatements)

      The list of conditions which are in the traffic policy resource.

      Parameters:
      policyStatements - The list of conditions which are in the traffic policy resource.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • policyStatements

      GetTrafficPolicyResponse.Builder policyStatements(PolicyStatement... policyStatements)

      The list of conditions which are in the traffic policy resource.

      Parameters:
      policyStatements - The list of conditions which are in the traffic policy resource.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • policyStatements

      GetTrafficPolicyResponse.Builder policyStatements(Consumer<PolicyStatement.Builder>... policyStatements)

      The list of conditions which are in the traffic policy resource.

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

      GetTrafficPolicyResponse.Builder trafficPolicyArn(String trafficPolicyArn)

      The Amazon Resource Name (ARN) of the traffic policy resource.

      Parameters:
      trafficPolicyArn - The Amazon Resource Name (ARN) of the traffic policy resource.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • trafficPolicyId

      GetTrafficPolicyResponse.Builder trafficPolicyId(String trafficPolicyId)

      The identifier of the traffic policy resource.

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

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