Interface Experiment.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Experiment.Builder,
,Experiment> SdkBuilder<Experiment.Builder,
,Experiment> SdkPojo
- Enclosing class:
Experiment
-
Method Summary
Modifier and TypeMethodDescriptionThe ARN of the experiment.createdTime
(Instant createdTime) The date and time that the experiment is first created.description
(String description) A description of the experiment.default Experiment.Builder
execution
(Consumer<ExperimentExecution.Builder> execution) A structure that contains the date and time that the experiment started and ended.execution
(ExperimentExecution execution) A structure that contains the date and time that the experiment started and ended.lastUpdatedTime
(Instant lastUpdatedTime) The date and time that the experiment was most recently updated.metricGoals
(Collection<MetricGoal> metricGoals) An array of structures that defines the metrics used for the experiment, and whether a higher or lower value for each metric is the goal.metricGoals
(Consumer<MetricGoal.Builder>... metricGoals) An array of structures that defines the metrics used for the experiment, and whether a higher or lower value for each metric is the goal.metricGoals
(MetricGoal... metricGoals) An array of structures that defines the metrics used for the experiment, and whether a higher or lower value for each metric is the goal.The name of the experiment.default Experiment.Builder
onlineAbDefinition
(Consumer<OnlineAbDefinition.Builder> onlineAbDefinition) A structure that contains the configuration of which variation to use as the "control" version.onlineAbDefinition
(OnlineAbDefinition onlineAbDefinition) A structure that contains the configuration of which variation to use as the "control" version.The name or ARN of the project that contains this experiment.randomizationSalt
(String randomizationSalt) This value is used when Evidently assigns a particular user session to the experiment.samplingRate
(Long samplingRate) In thousandths of a percent, the amount of the available audience that is allocated to this experiment.default Experiment.Builder
schedule
(Consumer<ExperimentSchedule.Builder> schedule) A structure that contains the time and date that Evidently completed the analysis of the experiment.schedule
(ExperimentSchedule schedule) A structure that contains the time and date that Evidently completed the analysis of the experiment.The audience segment being used for the experiment, if a segment is being used.The current state of the experiment.status
(ExperimentStatus status) The current state of the experiment.statusReason
(String statusReason) If the experiment was stopped, this is the string that was entered by the person who stopped the experiment, to explain why it was stopped.The list of tag keys and values associated with this experiment.treatments
(Collection<Treatment> treatments) An array of structures that describe the configuration of each feature variation used in the experiment.treatments
(Consumer<Treatment.Builder>... treatments) An array of structures that describe the configuration of each feature variation used in the experiment.treatments
(Treatment... treatments) An array of structures that describe the configuration of each feature variation used in the experiment.The type of this experiment.type
(ExperimentType type) The type of this experiment.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
arn
The ARN of the experiment.
- Parameters:
arn
- The ARN of the experiment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createdTime
The date and time that the experiment is first created.
- Parameters:
createdTime
- The date and time that the experiment is first created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
A description of the experiment.
- Parameters:
description
- A description of the experiment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
execution
A structure that contains the date and time that the experiment started and ended.
- Parameters:
execution
- A structure that contains the date and time that the experiment started and ended.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
execution
A structure that contains the date and time that the experiment started and ended.
This is a convenience method that creates an instance of theExperimentExecution.Builder
avoiding the need to create one manually viaExperimentExecution.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toexecution(ExperimentExecution)
.- Parameters:
execution
- a consumer that will call methods onExperimentExecution.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
lastUpdatedTime
The date and time that the experiment was most recently updated.
- Parameters:
lastUpdatedTime
- The date and time that the experiment was most recently updated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricGoals
An array of structures that defines the metrics used for the experiment, and whether a higher or lower value for each metric is the goal.
- Parameters:
metricGoals
- An array of structures that defines the metrics used for the experiment, and whether a higher or lower value for each metric is the goal.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricGoals
An array of structures that defines the metrics used for the experiment, and whether a higher or lower value for each metric is the goal.
- Parameters:
metricGoals
- An array of structures that defines the metrics used for the experiment, and whether a higher or lower value for each metric is the goal.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricGoals
An array of structures that defines the metrics used for the experiment, and whether a higher or lower value for each metric is the goal.
This is a convenience method that creates an instance of theMetricGoal.Builder
avoiding the need to create one manually viaMetricGoal.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tometricGoals(List<MetricGoal>)
.- Parameters:
metricGoals
- a consumer that will call methods onMetricGoal.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
name
The name of the experiment.
- Parameters:
name
- The name of the experiment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
onlineAbDefinition
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.
- Parameters:
onlineAbDefinition
- 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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
onlineAbDefinition
default Experiment.Builder onlineAbDefinition(Consumer<OnlineAbDefinition.Builder> onlineAbDefinition) 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.
This is a convenience method that creates an instance of theOnlineAbDefinition.Builder
avoiding the need to create one manually viaOnlineAbDefinition.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toonlineAbDefinition(OnlineAbDefinition)
.- Parameters:
onlineAbDefinition
- a consumer that will call methods onOnlineAbDefinition.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
project
The name or ARN of the project that contains this experiment.
- Parameters:
project
- The name or ARN of the project that contains this experiment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
randomizationSalt
This value is used when Evidently assigns a particular user session to the experiment. It helps create a randomization ID to determine which variation the user session is served. This randomization ID is a combination of the entity ID and
randomizationSalt
.- Parameters:
randomizationSalt
- This value is used when Evidently assigns a particular user session to the experiment. It helps create a randomization ID to determine which variation the user session is served. This randomization ID is a combination of the entity ID andrandomizationSalt
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
samplingRate
In thousandths of a percent, the amount of the available audience that is allocated to this experiment. The available audience is the total audience minus the audience that you have allocated to overrides or current launches of this feature.
This is represented in thousandths of a percent, so a value of 10,000 is 10% of the available audience.
- Parameters:
samplingRate
- In thousandths of a percent, the amount of the available audience that is allocated to this experiment. The available audience is the total audience minus the audience that you have allocated to overrides or current launches of this feature.This is represented in thousandths of a percent, so a value of 10,000 is 10% of the available audience.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
schedule
A structure that contains the time and date that Evidently completed the analysis of the experiment.
- Parameters:
schedule
- A structure that contains the time and date that Evidently completed the analysis of the experiment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
schedule
A structure that contains the time and date that Evidently completed the analysis of the experiment.
This is a convenience method that creates an instance of theExperimentSchedule.Builder
avoiding the need to create one manually viaExperimentSchedule.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toschedule(ExperimentSchedule)
.- Parameters:
schedule
- a consumer that will call methods onExperimentSchedule.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
segment
The audience segment being used for the experiment, if a segment is being used.
- Parameters:
segment
- The audience segment being used for the experiment, if a segment is being used.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
The current state of the experiment.
- Parameters:
status
- The current state of the experiment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
The current state of the experiment.
- Parameters:
status
- The current state of the experiment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
statusReason
If the experiment was stopped, this is the string that was entered by the person who stopped the experiment, to explain why it was stopped.
- Parameters:
statusReason
- If the experiment was stopped, this is the string that was entered by the person who stopped the experiment, to explain why it was stopped.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The list of tag keys and values associated with this experiment.
- Parameters:
tags
- The list of tag keys and values associated with this experiment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
treatments
An array of structures that describe the configuration of each feature variation used in the experiment.
- Parameters:
treatments
- An array of structures that describe the configuration of each feature variation used in the experiment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
treatments
An array of structures that describe the configuration of each feature variation used in the experiment.
- Parameters:
treatments
- An array of structures that describe the configuration of each feature variation used in the experiment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
treatments
An array of structures that describe the configuration of each feature variation used in the experiment.
This is a convenience method that creates an instance of theTreatment.Builder
avoiding the need to create one manually viaTreatment.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totreatments(List<Treatment>)
.- Parameters:
treatments
- a consumer that will call methods onTreatment.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
type
The type of this experiment. Currently, this value must be
aws.experiment.onlineab
.- Parameters:
type
- The type of this experiment. Currently, this value must beaws.experiment.onlineab
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
type
The type of this experiment. Currently, this value must be
aws.experiment.onlineab
.- Parameters:
type
- The type of this experiment. Currently, this value must beaws.experiment.onlineab
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-