@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SegmentOverride extends Object implements Serializable, Cloneable, StructuredPojo
This structure specifies a segment that you have already created, and defines the traffic split for that segment to be used in a launch.
Constructor and Description |
---|
SegmentOverride() |
Modifier and Type | Method and Description |
---|---|
SegmentOverride |
addWeightsEntry(String key,
Long value)
Add a single Weights entry
|
SegmentOverride |
clearWeightsEntries()
Removes all the entries added into Weights.
|
SegmentOverride |
clone() |
boolean |
equals(Object obj) |
Long |
getEvaluationOrder()
A number indicating the order to use to evaluate segment overrides, if there are more than one.
|
String |
getSegment()
The ARN of the segment to use.
|
Map<String,Long> |
getWeights()
The traffic allocation percentages among the feature variations to assign to this segment.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setEvaluationOrder(Long evaluationOrder)
A number indicating the order to use to evaluate segment overrides, if there are more than one.
|
void |
setSegment(String segment)
The ARN of the segment to use.
|
void |
setWeights(Map<String,Long> weights)
The traffic allocation percentages among the feature variations to assign to this segment.
|
String |
toString()
Returns a string representation of this object.
|
SegmentOverride |
withEvaluationOrder(Long evaluationOrder)
A number indicating the order to use to evaluate segment overrides, if there are more than one.
|
SegmentOverride |
withSegment(String segment)
The ARN of the segment to use.
|
SegmentOverride |
withWeights(Map<String,Long> weights)
The traffic allocation percentages among the feature variations to assign to this segment.
|
public void setEvaluationOrder(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.
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.public Long getEvaluationOrder()
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.
public SegmentOverride withEvaluationOrder(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.
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.public void setSegment(String segment)
The ARN of the segment to use.
segment
- The ARN of the segment to use.public String getSegment()
The ARN of the segment to use.
public SegmentOverride withSegment(String segment)
The ARN of the segment to use.
segment
- The ARN of the segment to use.public Map<String,Long> getWeights()
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.
public void setWeights(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.
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.public SegmentOverride withWeights(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.
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.public SegmentOverride addWeightsEntry(String key, Long value)
public SegmentOverride clearWeightsEntries()
public String toString()
toString
in class Object
Object.toString()
public SegmentOverride clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.