Class InvokeEndpointWithResponseStreamResponse
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<InvokeEndpointWithResponseStreamResponse.Builder,InvokeEndpointWithResponseStreamResponse>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface -
Method Summary
Modifier and TypeMethodDescriptionbuilder()final StringThe MIME type of the inference returned from the model container.final StringProvides additional information in the response about the inference returned by a model hosted at an Amazon SageMaker AI endpoint.final booleanfinal booleanequalsBySdkFields(Object obj) final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final inthashCode()final StringIdentifies the production variant that was invoked.static Class<? extends InvokeEndpointWithResponseStreamResponse.Builder>final StringtoString()Returns a string representation of this object.Methods inherited from class software.amazon.awssdk.services.sagemakerruntime.model.SageMakerRuntimeResponse
responseMetadataMethods inherited from class software.amazon.awssdk.core.SdkResponse
sdkHttpResponseMethods 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
-
contentType
The MIME type of the inference returned from the model container.
- Returns:
- The MIME type of the inference returned from the model container.
-
invokedProductionVariant
Identifies the production variant that was invoked.
- Returns:
- Identifies the production variant that was invoked.
-
customAttributes
Provides additional information in the response about the inference returned by a model hosted at an Amazon SageMaker AI endpoint. The information is an opaque value that is forwarded verbatim. You could use this value, for example, to return an ID received in the
CustomAttributesheader of a request or other metadata that a service endpoint was programmed to produce. The value must consist of no more than 1024 visible US-ASCII characters as specified in Section 3.3.6. Field Value Components of the Hypertext Transfer Protocol (HTTP/1.1). If the customer wants the custom attribute returned, the model must set the custom attribute to be included on the way back.The code in your model is responsible for setting or updating any custom attributes in the response. If your code does not set this value in the response, an empty value is returned. For example, if a custom attribute represents the trace ID, your model can prepend the custom attribute with
Trace ID:in your post-processing function.This feature is currently supported in the Amazon Web Services SDKs but not in the Amazon SageMaker AI Python SDK.
- Returns:
- Provides additional information in the response about the inference returned by a model hosted at an
Amazon SageMaker AI endpoint. The information is an opaque value that is forwarded verbatim. You could
use this value, for example, to return an ID received in the
CustomAttributesheader of a request or other metadata that a service endpoint was programmed to produce. The value must consist of no more than 1024 visible US-ASCII characters as specified in Section 3.3.6. Field Value Components of the Hypertext Transfer Protocol (HTTP/1.1). If the customer wants the custom attribute returned, the model must set the custom attribute to be included on the way back.The code in your model is responsible for setting or updating any custom attributes in the response. If your code does not set this value in the response, an empty value is returned. For example, if a custom attribute represents the trace ID, your model can prepend the custom attribute with
Trace ID:in your post-processing function.This feature is currently supported in the Amazon Web Services SDKs but not in the Amazon SageMaker AI Python SDK.
-
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<InvokeEndpointWithResponseStreamResponse.Builder,InvokeEndpointWithResponseStreamResponse> - Specified by:
toBuilderin classAwsResponse
-
builder
-
serializableBuilderClass
public static Class<? extends InvokeEndpointWithResponseStreamResponse.Builder> serializableBuilderClass() -
hashCode
public final int hashCode()- Overrides:
hashCodein classAwsResponse
-
equals
- Overrides:
equalsin classAwsResponse
-
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
- Overrides:
getValueForFieldin classSdkResponse
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-