Interface AutomatedReasoningPolicyReportSourceDocument.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<AutomatedReasoningPolicyReportSourceDocument.Builder,,AutomatedReasoningPolicyReportSourceDocument> SdkBuilder<AutomatedReasoningPolicyReportSourceDocument.Builder,,AutomatedReasoningPolicyReportSourceDocument> SdkPojo
- Enclosing class:
AutomatedReasoningPolicyReportSourceDocument
-
Method Summary
Modifier and TypeMethodDescriptionatomicStatements(Collection<AutomatedReasoningPolicyAtomicStatement> atomicStatements) The list of atomic statements extracted from this document, representing the fundamental units of meaning used for grounding.atomicStatements(Consumer<AutomatedReasoningPolicyAtomicStatement.Builder>... atomicStatements) The list of atomic statements extracted from this document, representing the fundamental units of meaning used for grounding.atomicStatements(AutomatedReasoningPolicyAtomicStatement... atomicStatements) The list of atomic statements extracted from this document, representing the fundamental units of meaning used for grounding.documentContent(Collection<AutomatedReasoningPolicyAnnotatedChunk> documentContent) The document's content organized into annotated chunks with line number information for precise referencing.documentContent(Consumer<AutomatedReasoningPolicyAnnotatedChunk.Builder>... documentContent) The document's content organized into annotated chunks with line number information for precise referencing.documentContent(AutomatedReasoningPolicyAnnotatedChunk... documentContent) The document's content organized into annotated chunks with line number information for precise referencing.documentHash(String documentHash) A SHA-256 hash of the document content, used for verification and ensuring the document hasn't changed since analysis.documentId(String documentId) A unique identifier for this document within the fidelity report.documentName(String documentName) The name of the source document that was analyzed.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
-
documentName
The name of the source document that was analyzed.
- Parameters:
documentName- The name of the source document that was analyzed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
documentHash
A SHA-256 hash of the document content, used for verification and ensuring the document hasn't changed since analysis.
- Parameters:
documentHash- A SHA-256 hash of the document content, used for verification and ensuring the document hasn't changed since analysis.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
documentId
A unique identifier for this document within the fidelity report.
- Parameters:
documentId- A unique identifier for this document within the fidelity report.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
atomicStatements
AutomatedReasoningPolicyReportSourceDocument.Builder atomicStatements(Collection<AutomatedReasoningPolicyAtomicStatement> atomicStatements) The list of atomic statements extracted from this document, representing the fundamental units of meaning used for grounding.
- Parameters:
atomicStatements- The list of atomic statements extracted from this document, representing the fundamental units of meaning used for grounding.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
atomicStatements
AutomatedReasoningPolicyReportSourceDocument.Builder atomicStatements(AutomatedReasoningPolicyAtomicStatement... atomicStatements) The list of atomic statements extracted from this document, representing the fundamental units of meaning used for grounding.
- Parameters:
atomicStatements- The list of atomic statements extracted from this document, representing the fundamental units of meaning used for grounding.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
atomicStatements
AutomatedReasoningPolicyReportSourceDocument.Builder atomicStatements(Consumer<AutomatedReasoningPolicyAtomicStatement.Builder>... atomicStatements) The list of atomic statements extracted from this document, representing the fundamental units of meaning used for grounding.
This is a convenience method that creates an instance of theAutomatedReasoningPolicyAtomicStatement.Builderavoiding the need to create one manually viaAutomatedReasoningPolicyAtomicStatement.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toatomicStatements(List<AutomatedReasoningPolicyAtomicStatement>).- Parameters:
atomicStatements- a consumer that will call methods onAutomatedReasoningPolicyAtomicStatement.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
documentContent
AutomatedReasoningPolicyReportSourceDocument.Builder documentContent(Collection<AutomatedReasoningPolicyAnnotatedChunk> documentContent) The document's content organized into annotated chunks with line number information for precise referencing.
- Parameters:
documentContent- The document's content organized into annotated chunks with line number information for precise referencing.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
documentContent
AutomatedReasoningPolicyReportSourceDocument.Builder documentContent(AutomatedReasoningPolicyAnnotatedChunk... documentContent) The document's content organized into annotated chunks with line number information for precise referencing.
- Parameters:
documentContent- The document's content organized into annotated chunks with line number information for precise referencing.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
documentContent
AutomatedReasoningPolicyReportSourceDocument.Builder documentContent(Consumer<AutomatedReasoningPolicyAnnotatedChunk.Builder>... documentContent) The document's content organized into annotated chunks with line number information for precise referencing.
This is a convenience method that creates an instance of theAutomatedReasoningPolicyAnnotatedChunk.Builderavoiding the need to create one manually viaAutomatedReasoningPolicyAnnotatedChunk.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todocumentContent(List<AutomatedReasoningPolicyAnnotatedChunk>).- Parameters:
documentContent- a consumer that will call methods onAutomatedReasoningPolicyAnnotatedChunk.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-