Interface SyntheticCustomerScenario.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<SyntheticCustomerScenario.Builder,,SyntheticCustomerScenario> SdkBuilder<SyntheticCustomerScenario.Builder,,SyntheticCustomerScenario> SdkPojo
- Enclosing class:
SyntheticCustomerScenario
-
Method Summary
Modifier and TypeMethodDescriptionexpectedOutcome(String expectedOutcome) The result that counts as a successful test.What the synthetic customer is trying to accomplish.initialQuery(String initialQuery) The opening message of the synthetic customer.knownInputs(Collection<ScenarioKnownInput> knownInputs) The information that the synthetic customer knows and provides when asked, such as a reservation number.knownInputs(Consumer<ScenarioKnownInput.Builder>... knownInputs) The information that the synthetic customer knows and provides when asked, such as a reservation number.knownInputs(ScenarioKnownInput... knownInputs) The information that the synthetic customer knows and provides when asked, such as a reservation number.The name of the scenario.stopConditions(Consumer<ScenarioStopConditions.Builder> stopConditions) The limits that end the simulation if the expected outcome isn't reached.stopConditions(ScenarioStopConditions stopConditions) The limits that end the simulation if the expected outcome isn't reached.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
-
name
The name of the scenario.
- Parameters:
name- The name of the scenario.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
goal
What the synthetic customer is trying to accomplish.
- Parameters:
goal- What the synthetic customer is trying to accomplish.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
expectedOutcome
The result that counts as a successful test.
- Parameters:
expectedOutcome- The result that counts as a successful test.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
initialQuery
The opening message of the synthetic customer.
- Parameters:
initialQuery- The opening message of the synthetic customer.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
stopConditions
The limits that end the simulation if the expected outcome isn't reached.
- Parameters:
stopConditions- The limits that end the simulation if the expected outcome isn't reached.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
stopConditions
default SyntheticCustomerScenario.Builder stopConditions(Consumer<ScenarioStopConditions.Builder> stopConditions) The limits that end the simulation if the expected outcome isn't reached.
This is a convenience method that creates an instance of theScenarioStopConditions.Builderavoiding the need to create one manually viaScenarioStopConditions.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tostopConditions(ScenarioStopConditions).- Parameters:
stopConditions- a consumer that will call methods onScenarioStopConditions.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
knownInputs
The information that the synthetic customer knows and provides when asked, such as a reservation number. You can specify up to 20 inputs.
- Parameters:
knownInputs- The information that the synthetic customer knows and provides when asked, such as a reservation number. You can specify up to 20 inputs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
knownInputs
The information that the synthetic customer knows and provides when asked, such as a reservation number. You can specify up to 20 inputs.
- Parameters:
knownInputs- The information that the synthetic customer knows and provides when asked, such as a reservation number. You can specify up to 20 inputs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
knownInputs
The information that the synthetic customer knows and provides when asked, such as a reservation number. You can specify up to 20 inputs.
This is a convenience method that creates an instance of theScenarioKnownInput.Builderavoiding the need to create one manually viaScenarioKnownInput.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toknownInputs(List<ScenarioKnownInput>).- Parameters:
knownInputs- a consumer that will call methods onScenarioKnownInput.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-