Package io.rtr.alchemy.models
Class Experiment.Builder
java.lang.Object
io.rtr.alchemy.models.Experiment.Builder
- Enclosing class:
Experiment
Builder for building Experiment inside store
-
Method Summary
Modifier and TypeMethodDescriptionactivated(org.joda.time.DateTime activated) active(boolean active) addAllocation(String treatmentName, int offset, int size) addOverride(String name, String filter, String treatmentName) addTreatment(String name, String description) build()created(org.joda.time.DateTime created) deactivated(org.joda.time.DateTime deactivated) description(String description) hashAttributes(String... hashAttributes) hashAttributes(Set<String> hashAttributes) modified(org.joda.time.DateTime modified) seed(int seed)
-
Method Details
-
description
-
filter
-
hashAttributes
-
hashAttributes
-
active
-
created
-
modified
-
activated
-
deactivated
-
seed
-
addTreatment
public Experiment.Builder addTreatment(String name, String description) throws javax.validation.ValidationException - Throws:
javax.validation.ValidationException
-
addOverride
public Experiment.Builder addOverride(String name, String filter, String treatmentName) throws javax.validation.ValidationException - Throws:
javax.validation.ValidationException
-
addAllocation
-
build
-