Interface AutomatedReasoningPolicyDefinition.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<AutomatedReasoningPolicyDefinition.Builder,,AutomatedReasoningPolicyDefinition> SdkBuilder<AutomatedReasoningPolicyDefinition.Builder,,AutomatedReasoningPolicyDefinition> SdkPojo
- Enclosing class:
AutomatedReasoningPolicyDefinition
-
Method Summary
Modifier and TypeMethodDescriptionThe formal logic rules extracted from the source document.The formal logic rules extracted from the source document.rules(AutomatedReasoningPolicyDefinitionRule... rules) The formal logic rules extracted from the source document.The custom user-defined vairable types used in the policy.The custom user-defined vairable types used in the policy.types(AutomatedReasoningPolicyDefinitionType... types) The custom user-defined vairable types used in the policy.The variables that represent concepts in the policy.variables(Consumer<AutomatedReasoningPolicyDefinitionVariable.Builder>... variables) The variables that represent concepts in the policy.variables(AutomatedReasoningPolicyDefinitionVariable... variables) The variables that represent concepts in the policy.The version of the policy definition format.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
-
version
The version of the policy definition format.
- Parameters:
version- The version of the policy definition format.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
types
AutomatedReasoningPolicyDefinition.Builder types(Collection<AutomatedReasoningPolicyDefinitionType> types) The custom user-defined vairable types used in the policy. Types are enum-based variable types that provide additional context beyond the predefined variable types.
- Parameters:
types- The custom user-defined vairable types used in the policy. Types are enum-based variable types that provide additional context beyond the predefined variable types.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
types
The custom user-defined vairable types used in the policy. Types are enum-based variable types that provide additional context beyond the predefined variable types.
- Parameters:
types- The custom user-defined vairable types used in the policy. Types are enum-based variable types that provide additional context beyond the predefined variable types.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
types
AutomatedReasoningPolicyDefinition.Builder types(Consumer<AutomatedReasoningPolicyDefinitionType.Builder>... types) The custom user-defined vairable types used in the policy. Types are enum-based variable types that provide additional context beyond the predefined variable types.
This is a convenience method that creates an instance of theAutomatedReasoningPolicyDefinitionType.Builderavoiding the need to create one manually viaAutomatedReasoningPolicyDefinitionType.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totypes(List<AutomatedReasoningPolicyDefinitionType>).- Parameters:
types- a consumer that will call methods onAutomatedReasoningPolicyDefinitionType.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
rules
AutomatedReasoningPolicyDefinition.Builder rules(Collection<AutomatedReasoningPolicyDefinitionRule> rules) The formal logic rules extracted from the source document. Rules define the logical constraints that determine whether model responses are valid, invalid, or satisfiable.
- Parameters:
rules- The formal logic rules extracted from the source document. Rules define the logical constraints that determine whether model responses are valid, invalid, or satisfiable.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rules
The formal logic rules extracted from the source document. Rules define the logical constraints that determine whether model responses are valid, invalid, or satisfiable.
- Parameters:
rules- The formal logic rules extracted from the source document. Rules define the logical constraints that determine whether model responses are valid, invalid, or satisfiable.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rules
AutomatedReasoningPolicyDefinition.Builder rules(Consumer<AutomatedReasoningPolicyDefinitionRule.Builder>... rules) The formal logic rules extracted from the source document. Rules define the logical constraints that determine whether model responses are valid, invalid, or satisfiable.
This is a convenience method that creates an instance of theAutomatedReasoningPolicyDefinitionRule.Builderavoiding the need to create one manually viaAutomatedReasoningPolicyDefinitionRule.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed torules(List<AutomatedReasoningPolicyDefinitionRule>).- Parameters:
rules- a consumer that will call methods onAutomatedReasoningPolicyDefinitionRule.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
variables
AutomatedReasoningPolicyDefinition.Builder variables(Collection<AutomatedReasoningPolicyDefinitionVariable> variables) The variables that represent concepts in the policy. Variables can have values assigned when translating natural language into formal logic. Their descriptions are crucial for accurate translation.
- Parameters:
variables- The variables that represent concepts in the policy. Variables can have values assigned when translating natural language into formal logic. Their descriptions are crucial for accurate translation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
variables
AutomatedReasoningPolicyDefinition.Builder variables(AutomatedReasoningPolicyDefinitionVariable... variables) The variables that represent concepts in the policy. Variables can have values assigned when translating natural language into formal logic. Their descriptions are crucial for accurate translation.
- Parameters:
variables- The variables that represent concepts in the policy. Variables can have values assigned when translating natural language into formal logic. Their descriptions are crucial for accurate translation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
variables
AutomatedReasoningPolicyDefinition.Builder variables(Consumer<AutomatedReasoningPolicyDefinitionVariable.Builder>... variables) The variables that represent concepts in the policy. Variables can have values assigned when translating natural language into formal logic. Their descriptions are crucial for accurate translation.
This is a convenience method that creates an instance of theAutomatedReasoningPolicyDefinitionVariable.Builderavoiding the need to create one manually viaAutomatedReasoningPolicyDefinitionVariable.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tovariables(List<AutomatedReasoningPolicyDefinitionVariable>).- Parameters:
variables- a consumer that will call methods onAutomatedReasoningPolicyDefinitionVariable.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-