Interface SyntheticCustomerConfiguration.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<SyntheticCustomerConfiguration.Builder,,SyntheticCustomerConfiguration> SdkBuilder<SyntheticCustomerConfiguration.Builder,,SyntheticCustomerConfiguration> SdkPojo
- Enclosing class:
SyntheticCustomerConfiguration
-
Method Summary
Modifier and TypeMethodDescriptionSpecifies whether the test case runs with the AI-driven synthetic customer.persona(Consumer<SyntheticCustomerPersona.Builder> persona) Who the synthetic customer is.persona(SyntheticCustomerPersona persona) Who the synthetic customer is.scenario(Consumer<SyntheticCustomerScenario.Builder> scenario) The situation and goal of the synthetic customer.scenario(SyntheticCustomerScenario scenario) The situation and goal of the synthetic customer.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
-
enabled
Specifies whether the test case runs with the AI-driven synthetic customer. If you set this to
true, the synthetic customer interacts with your flow, and you must include aPersonawith aName, and aScenariowith aName,Goal, andExpectedOutcome, before you publish the test case. If you set this tofalse, the test case runs from its observations. YourPersonaandScenarioremain part of the test case, so you can turn the synthetic customer back on later, but they aren't used in the test.- Parameters:
enabled- Specifies whether the test case runs with the AI-driven synthetic customer. If you set this totrue, the synthetic customer interacts with your flow, and you must include aPersonawith aName, and aScenariowith aName,Goal, andExpectedOutcome, before you publish the test case. If you set this tofalse, the test case runs from its observations. YourPersonaandScenarioremain part of the test case, so you can turn the synthetic customer back on later, but they aren't used in the test.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
persona
Who the synthetic customer is.
- Parameters:
persona- Who the synthetic customer is.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
persona
default SyntheticCustomerConfiguration.Builder persona(Consumer<SyntheticCustomerPersona.Builder> persona) Who the synthetic customer is.
This is a convenience method that creates an instance of theSyntheticCustomerPersona.Builderavoiding the need to create one manually viaSyntheticCustomerPersona.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed topersona(SyntheticCustomerPersona).- Parameters:
persona- a consumer that will call methods onSyntheticCustomerPersona.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
scenario
The situation and goal of the synthetic customer.
- Parameters:
scenario- The situation and goal of the synthetic customer.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scenario
default SyntheticCustomerConfiguration.Builder scenario(Consumer<SyntheticCustomerScenario.Builder> scenario) The situation and goal of the synthetic customer.
This is a convenience method that creates an instance of theSyntheticCustomerScenario.Builderavoiding the need to create one manually viaSyntheticCustomerScenario.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toscenario(SyntheticCustomerScenario).- Parameters:
scenario- a consumer that will call methods onSyntheticCustomerScenario.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-