@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class OnlineAbConfig 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 |
---|
OnlineAbConfig() |
Modifier and Type | Method and Description |
---|---|
OnlineAbConfig |
addTreatmentWeightsEntry(String key,
Long value)
Add a single TreatmentWeights entry
|
OnlineAbConfig |
clearTreatmentWeightsEntries()
Removes all the entries added into TreatmentWeights.
|
OnlineAbConfig |
clone() |
boolean |
equals(Object obj) |
String |
getControlTreatmentName()
The name of the variation that is to be 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 to be 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.
|
OnlineAbConfig |
withControlTreatmentName(String controlTreatmentName)
The name of the variation that is to be the default variation that the other variations are compared to.
|
OnlineAbConfig |
withTreatmentWeights(Map<String,Long> treatmentWeights)
A set of key-value pairs.
|
public void setControlTreatmentName(String controlTreatmentName)
The name of the variation that is to be the default variation that the other variations are compared to.
controlTreatmentName
- The name of the variation that is to be the default variation that the other variations are compared to.public String getControlTreatmentName()
The name of the variation that is to be the default variation that the other variations are compared to.
public OnlineAbConfig withControlTreatmentName(String controlTreatmentName)
The name of the variation that is to be the default variation that the other variations are compared to.
controlTreatmentName
- The name of the variation that is to be 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. Specify the traffic portion 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. Specify the traffic portion 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. Specify the traffic portion in thousandths of a percent, so
20,000 for a variation would allocate 20% of the experiment traffic to that variation.public OnlineAbConfig 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. Specify the traffic portion 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. Specify the traffic portion in thousandths of a percent, so
20,000 for a variation would allocate 20% of the experiment traffic to that variation.public OnlineAbConfig addTreatmentWeightsEntry(String key, Long value)
public OnlineAbConfig clearTreatmentWeightsEntries()
public String toString()
toString
in class Object
Object.toString()
public OnlineAbConfig clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.