Class Variant
java.lang.Object
software.amazon.awssdk.services.bedrockagentcore.model.Variant
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Variant.Builder,Variant>
@Generated("software.amazon.awssdk:codegen")
public final class Variant
extends Object
implements SdkPojo, Serializable, ToCopyableBuilder<Variant.Builder,Variant>
A variant in an A/B test, representing either the control (C) or treatment (T1) configuration.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic Variant.Builderbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final inthashCode()final Stringname()The name of the variant.static Class<? extends Variant.Builder>final StringtoString()Returns a string representation of this object.final VariantConfigurationThe configuration for this variant, including the configuration bundle or target reference.final Integerweight()The percentage of traffic to route to this variant.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
name
The name of the variant. Must be
Cfor control orT1for treatment.- Returns:
- The name of the variant. Must be
Cfor control orT1for treatment.
-
weight
The percentage of traffic to route to this variant. Weights across all variants must sum to 100.
- Returns:
- The percentage of traffic to route to this variant. Weights across all variants must sum to 100.
-
variantConfiguration
The configuration for this variant, including the configuration bundle or target reference.
- Returns:
- The configuration for this variant, including the configuration bundle or target reference.
-
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<Variant.Builder,Variant>
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value. -
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-