@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class OnlineAbDefinition extends Object implements Serializable, Cloneable, StructuredPojo
A structure that contains the configuration of which variation to use as the "control" version. The "control" version is used for comparison with other variations. This structure also specifies how much experiment traffic is allocated to each variation.
Constructor and Description |
---|
OnlineAbDefinition() |
Modifier and Type | Method and Description |
---|---|
OnlineAbDefinition |
addTreatmentWeightsEntry(String key,
Long value)
Add a single TreatmentWeights entry
|
OnlineAbDefinition |
clearTreatmentWeightsEntries()
Removes all the entries added into TreatmentWeights.
|
OnlineAbDefinition |
clone() |
boolean |
equals(Object obj) |
String |
getControlTreatmentName()
The name of the variation that is the default variation that the other variations are compared to.
|
Map<String,Long> |
getTreatmentWeights()
A set of key-value pairs.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setControlTreatmentName(String controlTreatmentName)
The name of the variation that is the default variation that the other variations are compared to.
|
void |
setTreatmentWeights(Map<String,Long> treatmentWeights)
A set of key-value pairs.
|
String |
toString()
Returns a string representation of this object.
|
OnlineAbDefinition |
withControlTreatmentName(String controlTreatmentName)
The name of the variation that is the default variation that the other variations are compared to.
|
OnlineAbDefinition |
withTreatmentWeights(Map<String,Long> treatmentWeights)
A set of key-value pairs.
|
public void setControlTreatmentName(String controlTreatmentName)
The name of the variation that is the default variation that the other variations are compared to.
controlTreatmentName
- The name of the variation that is the default variation that the other variations are compared to.public String getControlTreatmentName()
The name of the variation that is the default variation that the other variations are compared to.
public OnlineAbDefinition withControlTreatmentName(String controlTreatmentName)
The name of the variation that is the default variation that the other variations are compared to.
controlTreatmentName
- The name of the variation that is the default variation that the other variations are compared to.public Map<String,Long> getTreatmentWeights()
A set of key-value pairs. The keys are variation names, and the values are the portion of experiment traffic to be assigned to that variation. The traffic portion is specified in thousandths of a percent, so 20,000 for a variation would allocate 20% of the experiment traffic to that variation.
public void setTreatmentWeights(Map<String,Long> treatmentWeights)
A set of key-value pairs. The keys are variation names, and the values are the portion of experiment traffic to be assigned to that variation. The traffic portion is specified in thousandths of a percent, so 20,000 for a variation would allocate 20% of the experiment traffic to that variation.
treatmentWeights
- A set of key-value pairs. The keys are variation names, and the values are the portion of experiment
traffic to be assigned to that variation. The traffic portion is specified in thousandths of a percent, so
20,000 for a variation would allocate 20% of the experiment traffic to that variation.public OnlineAbDefinition withTreatmentWeights(Map<String,Long> treatmentWeights)
A set of key-value pairs. The keys are variation names, and the values are the portion of experiment traffic to be assigned to that variation. The traffic portion is specified in thousandths of a percent, so 20,000 for a variation would allocate 20% of the experiment traffic to that variation.
treatmentWeights
- A set of key-value pairs. The keys are variation names, and the values are the portion of experiment
traffic to be assigned to that variation. The traffic portion is specified in thousandths of a percent, so
20,000 for a variation would allocate 20% of the experiment traffic to that variation.public OnlineAbDefinition addTreatmentWeightsEntry(String key, Long value)
public OnlineAbDefinition clearTreatmentWeightsEntries()
public String toString()
toString
in class Object
Object.toString()
public OnlineAbDefinition clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.