Interface SegmentOverride.Builder

    • Method Detail

      • evaluationOrder

        SegmentOverride.Builder evaluationOrder​(Long evaluationOrder)

        A number indicating the order to use to evaluate segment overrides, if there are more than one. Segment overrides with lower numbers are evaluated first.

        Parameters:
        evaluationOrder - A number indicating the order to use to evaluate segment overrides, if there are more than one. Segment overrides with lower numbers are evaluated first.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • segment

        SegmentOverride.Builder segment​(String segment)

        The ARN of the segment to use.

        Parameters:
        segment - The ARN of the segment to use.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • weights

        SegmentOverride.Builder weights​(Map<String,​Long> weights)

        The traffic allocation percentages among the feature variations to assign to this segment. This is a set of key-value pairs. The keys are variation names. The values represent the amount of traffic to allocate to that variation for this segment. This is expressed in thousandths of a percent, so a weight of 50000 represents 50% of traffic.

        Parameters:
        weights - The traffic allocation percentages among the feature variations to assign to this segment. This is a set of key-value pairs. The keys are variation names. The values represent the amount of traffic to allocate to that variation for this segment. This is expressed in thousandths of a percent, so a weight of 50000 represents 50% of traffic.
        Returns:
        Returns a reference to this object so that method calls can be chained together.