Interface GuardrailAutomatedReasoningScenario.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<GuardrailAutomatedReasoningScenario.Builder,,GuardrailAutomatedReasoningScenario> SdkBuilder<GuardrailAutomatedReasoningScenario.Builder,,GuardrailAutomatedReasoningScenario> SdkPojo
- Enclosing class:
GuardrailAutomatedReasoningScenario
@Mutable
@NotThreadSafe
public static interface GuardrailAutomatedReasoningScenario.Builder
extends SdkPojo, CopyableBuilder<GuardrailAutomatedReasoningScenario.Builder,GuardrailAutomatedReasoningScenario>
-
Method Summary
Modifier and TypeMethodDescriptionstatements(Collection<GuardrailAutomatedReasoningStatement> statements) List of logical assignments and statements that define this scenario.statements(Consumer<GuardrailAutomatedReasoningStatement.Builder>... statements) List of logical assignments and statements that define this scenario.statements(GuardrailAutomatedReasoningStatement... statements) List of logical assignments and statements that define this scenario.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
-
statements
GuardrailAutomatedReasoningScenario.Builder statements(Collection<GuardrailAutomatedReasoningStatement> statements) List of logical assignments and statements that define this scenario.
- Parameters:
statements- List of logical assignments and statements that define this scenario.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
statements
GuardrailAutomatedReasoningScenario.Builder statements(GuardrailAutomatedReasoningStatement... statements) List of logical assignments and statements that define this scenario.
- Parameters:
statements- List of logical assignments and statements that define this scenario.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
statements
GuardrailAutomatedReasoningScenario.Builder statements(Consumer<GuardrailAutomatedReasoningStatement.Builder>... statements) List of logical assignments and statements that define this scenario.
This is a convenience method that creates an instance of theGuardrailAutomatedReasoningStatement.Builderavoiding the need to create one manually viaGuardrailAutomatedReasoningStatement.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tostatements(List<GuardrailAutomatedReasoningStatement>).- Parameters:
statements- a consumer that will call methods onGuardrailAutomatedReasoningStatement.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-