Interface GuardrailAutomatedReasoningTranslation.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<GuardrailAutomatedReasoningTranslation.Builder,,GuardrailAutomatedReasoningTranslation> SdkBuilder<GuardrailAutomatedReasoningTranslation.Builder,,GuardrailAutomatedReasoningTranslation> SdkPojo
- Enclosing class:
GuardrailAutomatedReasoningTranslation
-
Method Summary
Modifier and TypeMethodDescriptionThe logical statements that are being validated against the premises and policy rules.The logical statements that are being validated against the premises and policy rules.claims(GuardrailAutomatedReasoningStatement... claims) The logical statements that are being validated against the premises and policy rules.confidence(Double confidence) A confidence score between 0 and 1 indicating how certain the system is about the logical translation.The logical statements that serve as the foundation or assumptions for the claims.premises(Consumer<GuardrailAutomatedReasoningStatement.Builder>... premises) The logical statements that serve as the foundation or assumptions for the claims.premises(GuardrailAutomatedReasoningStatement... premises) The logical statements that serve as the foundation or assumptions for the claims.untranslatedClaims(Collection<GuardrailAutomatedReasoningInputTextReference> untranslatedClaims) References to portions of the original input text that correspond to the claims but could not be fully translated.untranslatedClaims(Consumer<GuardrailAutomatedReasoningInputTextReference.Builder>... untranslatedClaims) References to portions of the original input text that correspond to the claims but could not be fully translated.untranslatedClaims(GuardrailAutomatedReasoningInputTextReference... untranslatedClaims) References to portions of the original input text that correspond to the claims but could not be fully translated.untranslatedPremises(Collection<GuardrailAutomatedReasoningInputTextReference> untranslatedPremises) References to portions of the original input text that correspond to the premises but could not be fully translated.untranslatedPremises(Consumer<GuardrailAutomatedReasoningInputTextReference.Builder>... untranslatedPremises) References to portions of the original input text that correspond to the premises but could not be fully translated.untranslatedPremises(GuardrailAutomatedReasoningInputTextReference... untranslatedPremises) References to portions of the original input text that correspond to the premises but could not be fully translated.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
-
premises
GuardrailAutomatedReasoningTranslation.Builder premises(Collection<GuardrailAutomatedReasoningStatement> premises) The logical statements that serve as the foundation or assumptions for the claims.
- Parameters:
premises- The logical statements that serve as the foundation or assumptions for the claims.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
premises
GuardrailAutomatedReasoningTranslation.Builder premises(GuardrailAutomatedReasoningStatement... premises) The logical statements that serve as the foundation or assumptions for the claims.
- Parameters:
premises- The logical statements that serve as the foundation or assumptions for the claims.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
premises
GuardrailAutomatedReasoningTranslation.Builder premises(Consumer<GuardrailAutomatedReasoningStatement.Builder>... premises) The logical statements that serve as the foundation or assumptions for the claims.
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 topremises(List<GuardrailAutomatedReasoningStatement>).- Parameters:
premises- 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:
-
claims
GuardrailAutomatedReasoningTranslation.Builder claims(Collection<GuardrailAutomatedReasoningStatement> claims) The logical statements that are being validated against the premises and policy rules.
- Parameters:
claims- The logical statements that are being validated against the premises and policy rules.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
claims
GuardrailAutomatedReasoningTranslation.Builder claims(GuardrailAutomatedReasoningStatement... claims) The logical statements that are being validated against the premises and policy rules.
- Parameters:
claims- The logical statements that are being validated against the premises and policy rules.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
claims
GuardrailAutomatedReasoningTranslation.Builder claims(Consumer<GuardrailAutomatedReasoningStatement.Builder>... claims) The logical statements that are being validated against the premises and policy rules.
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 toclaims(List<GuardrailAutomatedReasoningStatement>).- Parameters:
claims- 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:
-
untranslatedPremises
GuardrailAutomatedReasoningTranslation.Builder untranslatedPremises(Collection<GuardrailAutomatedReasoningInputTextReference> untranslatedPremises) References to portions of the original input text that correspond to the premises but could not be fully translated.
- Parameters:
untranslatedPremises- References to portions of the original input text that correspond to the premises but could not be fully translated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
untranslatedPremises
GuardrailAutomatedReasoningTranslation.Builder untranslatedPremises(GuardrailAutomatedReasoningInputTextReference... untranslatedPremises) References to portions of the original input text that correspond to the premises but could not be fully translated.
- Parameters:
untranslatedPremises- References to portions of the original input text that correspond to the premises but could not be fully translated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
untranslatedPremises
GuardrailAutomatedReasoningTranslation.Builder untranslatedPremises(Consumer<GuardrailAutomatedReasoningInputTextReference.Builder>... untranslatedPremises) References to portions of the original input text that correspond to the premises but could not be fully translated.
This is a convenience method that creates an instance of theGuardrailAutomatedReasoningInputTextReference.Builderavoiding the need to create one manually viaGuardrailAutomatedReasoningInputTextReference.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tountranslatedPremises(List<GuardrailAutomatedReasoningInputTextReference>).- Parameters:
untranslatedPremises- a consumer that will call methods onGuardrailAutomatedReasoningInputTextReference.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
untranslatedClaims
GuardrailAutomatedReasoningTranslation.Builder untranslatedClaims(Collection<GuardrailAutomatedReasoningInputTextReference> untranslatedClaims) References to portions of the original input text that correspond to the claims but could not be fully translated.
- Parameters:
untranslatedClaims- References to portions of the original input text that correspond to the claims but could not be fully translated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
untranslatedClaims
GuardrailAutomatedReasoningTranslation.Builder untranslatedClaims(GuardrailAutomatedReasoningInputTextReference... untranslatedClaims) References to portions of the original input text that correspond to the claims but could not be fully translated.
- Parameters:
untranslatedClaims- References to portions of the original input text that correspond to the claims but could not be fully translated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
untranslatedClaims
GuardrailAutomatedReasoningTranslation.Builder untranslatedClaims(Consumer<GuardrailAutomatedReasoningInputTextReference.Builder>... untranslatedClaims) References to portions of the original input text that correspond to the claims but could not be fully translated.
This is a convenience method that creates an instance of theGuardrailAutomatedReasoningInputTextReference.Builderavoiding the need to create one manually viaGuardrailAutomatedReasoningInputTextReference.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tountranslatedClaims(List<GuardrailAutomatedReasoningInputTextReference>).- Parameters:
untranslatedClaims- a consumer that will call methods onGuardrailAutomatedReasoningInputTextReference.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
confidence
A confidence score between 0 and 1 indicating how certain the system is about the logical translation.
- Parameters:
confidence- A confidence score between 0 and 1 indicating how certain the system is about the logical translation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-