Interface VariantResult.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<VariantResult.Builder,,VariantResult> SdkBuilder<VariantResult.Builder,,VariantResult> SdkPojo
- Enclosing class:
VariantResult
@Mutable
@NotThreadSafe
public static interface VariantResult.Builder
extends SdkPojo, CopyableBuilder<VariantResult.Builder,VariantResult>
-
Method Summary
Modifier and TypeMethodDescriptionabsoluteChange(Double absoluteChange) The absolute change in mean score compared to the control variant.default VariantResult.BuilderconfidenceInterval(Consumer<ConfidenceInterval.Builder> confidenceInterval) The confidence interval for the observed difference.confidenceInterval(ConfidenceInterval confidenceInterval) The confidence interval for the observed difference.isSignificant(Boolean isSignificant) Whether the observed difference is statistically significant.The mean evaluation score for this variant.percentChange(Double percentChange) The percentage change in mean score compared to the control variant.The p-value indicating the statistical significance of the observed difference.sampleSize(Integer sampleSize) The number of sessions evaluated for this variant.variantName(String variantName) The name of the treatment variant.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
variantName
The name of the treatment variant.
- Parameters:
variantName- The name of the treatment variant.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sampleSize
The number of sessions evaluated for this variant.
- Parameters:
sampleSize- The number of sessions evaluated for this variant.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
mean
The mean evaluation score for this variant.
- Parameters:
mean- The mean evaluation score for this variant.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
absoluteChange
The absolute change in mean score compared to the control variant.
- Parameters:
absoluteChange- The absolute change in mean score compared to the control variant.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
percentChange
The percentage change in mean score compared to the control variant.
- Parameters:
percentChange- The percentage change in mean score compared to the control variant.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
pValue
The p-value indicating the statistical significance of the observed difference.
- Parameters:
pValue- The p-value indicating the statistical significance of the observed difference.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
confidenceInterval
The confidence interval for the observed difference.
- Parameters:
confidenceInterval- The confidence interval for the observed difference.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
confidenceInterval
default VariantResult.Builder confidenceInterval(Consumer<ConfidenceInterval.Builder> confidenceInterval) The confidence interval for the observed difference.
This is a convenience method that creates an instance of theConfidenceInterval.Builderavoiding the need to create one manually viaConfidenceInterval.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toconfidenceInterval(ConfidenceInterval).- Parameters:
confidenceInterval- a consumer that will call methods onConfidenceInterval.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
isSignificant
Whether the observed difference is statistically significant.
- Parameters:
isSignificant- Whether the observed difference is statistically significant.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-