Class PayloadPart
java.lang.Object
software.amazon.awssdk.services.sagemakerruntime.model.PayloadPart
- All Implemented Interfaces:
Serializable,SdkPojo,ResponseStream,ToCopyableBuilder<PayloadPart.Builder,PayloadPart>
- Direct Known Subclasses:
DefaultPayloadPart
@Generated("software.amazon.awssdk:codegen")
public class PayloadPart
extends Object
implements SdkPojo, Serializable, ToCopyableBuilder<PayloadPart.Builder,PayloadPart>, ResponseStream
A wrapper for pieces of the payload that's returned in response to a streaming inference request. A streaming inference response consists of one or more payload parts.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceprotected static classNested classes/interfaces inherited from interface software.amazon.awssdk.services.sagemakerruntime.model.ResponseStream
ResponseStream.EventType -
Field Summary
Fields inherited from interface software.amazon.awssdk.services.sagemakerruntime.model.ResponseStream
UNKNOWN -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCalls the appropriate visit method depending on the subtype ofPayloadPart.static PayloadPart.Builderbuilder()final SdkBytesbytes()A blob that contains part of the response for your streaming inference request.final PayloadPartcopy(Consumer<? super PayloadPart.Builder> modifier) final booleanfinal booleanequalsBySdkFields(Object obj) final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final inthashCode()static Class<? extends PayloadPart.Builder>final StringtoString()Returns a string representation of this object.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awssdk.services.sagemakerruntime.model.ResponseStream
sdkEventType
-
Constructor Details
-
PayloadPart
-
-
Method Details
-
bytes
A blob that contains part of the response for your streaming inference request.
- Returns:
- A blob that contains part of the response for your streaming inference request.
-
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<PayloadPart.Builder,PayloadPart>
-
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
-
copy
- Specified by:
copyin interfaceToCopyableBuilder<PayloadPart.Builder,PayloadPart>
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
accept
Calls the appropriate visit method depending on the subtype ofPayloadPart.- Specified by:
acceptin interfaceResponseStream- Parameters:
visitor- Visitor to invoke.
-