Class IngestPayloadType
java.lang.Object
software.amazon.awssdk.services.bedrockagentcore.model.IngestPayloadType
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<IngestPayloadType.Builder,IngestPayloadType>
@Generated("software.amazon.awssdk:codegen")
public final class IngestPayloadType
extends Object
implements SdkPojo, Serializable, ToCopyableBuilder<IngestPayloadType.Builder,IngestPayloadType>
A single content payload item to ingest. A payload item contains either conversational or JSON content.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic enum -
Method Summary
Modifier and TypeMethodDescriptionstatic IngestPayloadType.Builderbuilder()final ConversationalThe conversational content for this payload item.final booleanfinal booleanequalsBySdkFields(Object obj) static IngestPayloadTypefromConversational(Consumer<Conversational.Builder> conversational) Create an instance of this class withconversational()initialized to the given value.static IngestPayloadTypefromConversational(Conversational conversational) Create an instance of this class withconversational()initialized to the given value.static IngestPayloadTypeCreate an instance of this class withjson()initialized to the given value.static IngestPayloadTypefromJson(MemoryJsonData json) Create an instance of this class withjson()initialized to the given value.final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final inthashCode()final MemoryJsonDatajson()The JSON content for this payload item.static Class<? extends IngestPayloadType.Builder>final StringtoString()Returns a string representation of this object.type()Retrieve an enum value representing which member of this object is populated.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
conversational
The conversational content for this payload item.
- Returns:
- The conversational content for this payload item.
-
json
The JSON content for this payload item.
- Returns:
- The JSON content for this payload item.
-
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<IngestPayloadType.Builder,IngestPayloadType>
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
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. -
getValueForField
-
fromConversational
Create an instance of this class withconversational()initialized to the given value.The conversational content for this payload item.
- Parameters:
conversational- The conversational content for this payload item.
-
fromConversational
Create an instance of this class withconversational()initialized to the given value.The conversational content for this payload item.
- Parameters:
conversational- The conversational content for this payload item.
-
fromJson
Create an instance of this class withjson()initialized to the given value.The JSON content for this payload item.
- Parameters:
json- The JSON content for this payload item.
-
fromJson
Create an instance of this class withjson()initialized to the given value.The JSON content for this payload item.
- Parameters:
json- The JSON content for this payload item.
-
type
Retrieve an enum value representing which member of this object is populated. When this class is returned in a service response, this will beIngestPayloadType.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 beIngestPayloadType.Type.UNKNOWN_TO_SDK_VERSIONif zero members are set, andnullif more than one member is set. -
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-