Class AutomatedReasoningPolicyAnnotatedContent
- java.lang.Object
-
- software.amazon.awssdk.services.bedrock.model.AutomatedReasoningPolicyAnnotatedContent
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<AutomatedReasoningPolicyAnnotatedContent.Builder,AutomatedReasoningPolicyAnnotatedContent>
@Generated("software.amazon.awssdk:codegen") public final class AutomatedReasoningPolicyAnnotatedContent extends Object implements SdkPojo, Serializable, ToCopyableBuilder<AutomatedReasoningPolicyAnnotatedContent.Builder,AutomatedReasoningPolicyAnnotatedContent>
Represents a content element within an annotated chunk. This union type allows for different types of content elements to be included in document chunks, such as individual lines of text with their line numbers.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceAutomatedReasoningPolicyAnnotatedContent.Builderstatic classAutomatedReasoningPolicyAnnotatedContent.Type
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
line
public final AutomatedReasoningPolicyAnnotatedLine line()
An annotated line of text from the source document, including both the line number and the text content.
- Returns:
- An annotated line of text from the source document, including both the line number and the text content.
-
toBuilder
public AutomatedReasoningPolicyAnnotatedContent.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<AutomatedReasoningPolicyAnnotatedContent.Builder,AutomatedReasoningPolicyAnnotatedContent>
-
builder
public static AutomatedReasoningPolicyAnnotatedContent.Builder builder()
-
serializableBuilderClass
public static Class<? extends AutomatedReasoningPolicyAnnotatedContent.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
fromLine
public static AutomatedReasoningPolicyAnnotatedContent fromLine(AutomatedReasoningPolicyAnnotatedLine line)
Create an instance of this class withline()initialized to the given value.An annotated line of text from the source document, including both the line number and the text content.
- Parameters:
line- An annotated line of text from the source document, including both the line number and the text content.
-
fromLine
public static AutomatedReasoningPolicyAnnotatedContent fromLine(Consumer<AutomatedReasoningPolicyAnnotatedLine.Builder> line)
Create an instance of this class withline()initialized to the given value.An annotated line of text from the source document, including both the line number and the text content.
- Parameters:
line- An annotated line of text from the source document, including both the line number and the text content.
-
type
public AutomatedReasoningPolicyAnnotatedContent.Type type()
Retrieve an enum value representing which member of this object is populated. When this class is returned in a service response, this will beAutomatedReasoningPolicyAnnotatedContent.Type.UNKNOWN_TO_SDK_VERSIONif the service returned a member that is only known to a newer SDK version. When this class is created directly in your code, this will beAutomatedReasoningPolicyAnnotatedContent.Type.UNKNOWN_TO_SDK_VERSIONif zero members are set, andnullif more than one member is set.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-