Interface CreateAbTestRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,BedrockAgentCoreRequest.Builder,Buildable,CopyableBuilder<CreateAbTestRequest.Builder,,CreateAbTestRequest> SdkBuilder<CreateAbTestRequest.Builder,,CreateAbTestRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
CreateAbTestRequest
-
Method Summary
Modifier and TypeMethodDescriptionclientToken(String clientToken) A unique, case-sensitive identifier to ensure that the API request completes no more than one time.description(String description) The description of the A/B test.enableOnCreate(Boolean enableOnCreate) Whether to enable the A/B test immediately upon creation.default CreateAbTestRequest.BuilderevaluationConfig(Consumer<ABTestEvaluationConfig.Builder> evaluationConfig) The evaluation configuration specifying which online evaluation configurations to use for measuring variant performance.evaluationConfig(ABTestEvaluationConfig evaluationConfig) The evaluation configuration specifying which online evaluation configurations to use for measuring variant performance.gatewayArn(String gatewayArn) The Amazon Resource Name (ARN) of the gateway to use for traffic splitting.default CreateAbTestRequest.BuildergatewayFilter(Consumer<GatewayFilter.Builder> gatewayFilter) Optional filter to restrict which gateway target paths are included in the A/B test.gatewayFilter(GatewayFilter gatewayFilter) Optional filter to restrict which gateway target paths are included in the A/B test.The name of the A/B test.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.The IAM role ARN that grants permissions for the A/B test to access gateway and evaluation resources.variants(Collection<Variant> variants) The list of variants for the A/B test.variants(Consumer<Variant.Builder>... variants) The list of variants for the A/B test.The list of variants for the A/B test.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.services.bedrockagentcore.model.BedrockAgentCoreRequest.Builder
buildMethods 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
-
name
The name of the A/B test. Must be unique within your account.
- Parameters:
name- The name of the A/B test. Must be unique within your account.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
The description of the A/B test.
- Parameters:
description- The description of the A/B test.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
gatewayArn
The Amazon Resource Name (ARN) of the gateway to use for traffic splitting.
- Parameters:
gatewayArn- The Amazon Resource Name (ARN) of the gateway to use for traffic splitting.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
variants
The list of variants for the A/B test. Must contain exactly two variants: a control (C) and a treatment (T1), each with a configuration bundle or target reference and a traffic weight.
- Parameters:
variants- The list of variants for the A/B test. Must contain exactly two variants: a control (C) and a treatment (T1), each with a configuration bundle or target reference and a traffic weight.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
variants
The list of variants for the A/B test. Must contain exactly two variants: a control (C) and a treatment (T1), each with a configuration bundle or target reference and a traffic weight.
- Parameters:
variants- The list of variants for the A/B test. Must contain exactly two variants: a control (C) and a treatment (T1), each with a configuration bundle or target reference and a traffic weight.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
variants
The list of variants for the A/B test. Must contain exactly two variants: a control (C) and a treatment (T1), each with a configuration bundle or target reference and a traffic weight.
This is a convenience method that creates an instance of theVariant.Builderavoiding the need to create one manually viaVariant.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tovariants(List<Variant>).- Parameters:
variants- a consumer that will call methods onVariant.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
gatewayFilter
Optional filter to restrict which gateway target paths are included in the A/B test.
- Parameters:
gatewayFilter- Optional filter to restrict which gateway target paths are included in the A/B test.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
gatewayFilter
Optional filter to restrict which gateway target paths are included in the A/B test.
This is a convenience method that creates an instance of theGatewayFilter.Builderavoiding the need to create one manually viaGatewayFilter.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed togatewayFilter(GatewayFilter).- Parameters:
gatewayFilter- a consumer that will call methods onGatewayFilter.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
evaluationConfig
The evaluation configuration specifying which online evaluation configurations to use for measuring variant performance.
- Parameters:
evaluationConfig- The evaluation configuration specifying which online evaluation configurations to use for measuring variant performance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
evaluationConfig
default CreateAbTestRequest.Builder evaluationConfig(Consumer<ABTestEvaluationConfig.Builder> evaluationConfig) The evaluation configuration specifying which online evaluation configurations to use for measuring variant performance.
This is a convenience method that creates an instance of theABTestEvaluationConfig.Builderavoiding the need to create one manually viaABTestEvaluationConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toevaluationConfig(ABTestEvaluationConfig).- Parameters:
evaluationConfig- a consumer that will call methods onABTestEvaluationConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
roleArn
The IAM role ARN that grants permissions for the A/B test to access gateway and evaluation resources.
- Parameters:
roleArn- The IAM role ARN that grants permissions for the A/B test to access gateway and evaluation resources.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
enableOnCreate
Whether to enable the A/B test immediately upon creation. If true, traffic splitting begins automatically.
- Parameters:
enableOnCreate- Whether to enable the A/B test immediately upon creation. If true, traffic splitting begins automatically.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clientToken
A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, the service ignores the request, but does not return an error.
- Parameters:
clientToken- A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, the service ignores the request, but does not return an error.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateAbTestRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateAbTestRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-