@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class InvokeEndpointResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
InvokeEndpointResult() |
Modifier and Type | Method and Description |
---|---|
InvokeEndpointResult |
clone() |
boolean |
equals(Object obj) |
ByteBuffer |
getBody()
Includes the inference provided by the model.
|
String |
getContentType()
The MIME type of the inference returned from the model container.
|
String |
getCustomAttributes()
Provides additional information in the response about the inference returned by a model hosted at an Amazon
SageMaker endpoint.
|
String |
getInvokedProductionVariant()
Identifies the production variant that was invoked.
|
int |
hashCode() |
void |
setBody(ByteBuffer body)
Includes the inference provided by the model.
|
void |
setContentType(String contentType)
The MIME type of the inference returned from the model container.
|
void |
setCustomAttributes(String customAttributes)
Provides additional information in the response about the inference returned by a model hosted at an Amazon
SageMaker endpoint.
|
void |
setInvokedProductionVariant(String invokedProductionVariant)
Identifies the production variant that was invoked.
|
String |
toString()
Returns a string representation of this object.
|
InvokeEndpointResult |
withBody(ByteBuffer body)
Includes the inference provided by the model.
|
InvokeEndpointResult |
withContentType(String contentType)
The MIME type of the inference returned from the model container.
|
InvokeEndpointResult |
withCustomAttributes(String customAttributes)
Provides additional information in the response about the inference returned by a model hosted at an Amazon
SageMaker endpoint.
|
InvokeEndpointResult |
withInvokedProductionVariant(String invokedProductionVariant)
Identifies the production variant that was invoked.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setBody(ByteBuffer body)
Includes the inference provided by the model.
For information about the format of the response body, see Common Data Formats-Inference.
If the explainer is activated, the body includes the explanations provided by the model. For more information, see the Response section under Invoke the Endpoint in the Developer Guide.
The AWS SDK for Java performs a Base64 encoding on this field before sending this request to the AWS service. Users of the SDK should not perform Base64 encoding on this field.
Warning: ByteBuffers returned by the SDK are mutable. Changes to the content or position of the byte buffer will be seen by all objects that have a reference to this object. It is recommended to call ByteBuffer.duplicate() or ByteBuffer.asReadOnlyBuffer() before using or reading from the buffer. This behavior will be changed in a future major version of the SDK.
body
- Includes the inference provided by the model.
For information about the format of the response body, see Common Data Formats-Inference.
If the explainer is activated, the body includes the explanations provided by the model. For more information, see the Response section under Invoke the Endpoint in the Developer Guide.
public ByteBuffer getBody()
Includes the inference provided by the model.
For information about the format of the response body, see Common Data Formats-Inference.
If the explainer is activated, the body includes the explanations provided by the model. For more information, see the Response section under Invoke the Endpoint in the Developer Guide.
ByteBuffer
s are stateful. Calling their get
methods changes their position
. We recommend
using ByteBuffer.asReadOnlyBuffer()
to create a read-only view of the buffer with an independent
position
, and calling get
methods on this rather than directly on the returned ByteBuffer
.
Doing so will ensure that anyone else using the ByteBuffer
will not be affected by changes to the
position
.
For information about the format of the response body, see Common Data Formats-Inference.
If the explainer is activated, the body includes the explanations provided by the model. For more information, see the Response section under Invoke the Endpoint in the Developer Guide.
public InvokeEndpointResult withBody(ByteBuffer body)
Includes the inference provided by the model.
For information about the format of the response body, see Common Data Formats-Inference.
If the explainer is activated, the body includes the explanations provided by the model. For more information, see the Response section under Invoke the Endpoint in the Developer Guide.
The AWS SDK for Java performs a Base64 encoding on this field before sending this request to the AWS service. Users of the SDK should not perform Base64 encoding on this field.
Warning: ByteBuffers returned by the SDK are mutable. Changes to the content or position of the byte buffer will be seen by all objects that have a reference to this object. It is recommended to call ByteBuffer.duplicate() or ByteBuffer.asReadOnlyBuffer() before using or reading from the buffer. This behavior will be changed in a future major version of the SDK.
body
- Includes the inference provided by the model.
For information about the format of the response body, see Common Data Formats-Inference.
If the explainer is activated, the body includes the explanations provided by the model. For more information, see the Response section under Invoke the Endpoint in the Developer Guide.
public void setContentType(String contentType)
The MIME type of the inference returned from the model container.
contentType
- The MIME type of the inference returned from the model container.public String getContentType()
The MIME type of the inference returned from the model container.
public InvokeEndpointResult withContentType(String contentType)
The MIME type of the inference returned from the model container.
contentType
- The MIME type of the inference returned from the model container.public void setInvokedProductionVariant(String invokedProductionVariant)
Identifies the production variant that was invoked.
invokedProductionVariant
- Identifies the production variant that was invoked.public String getInvokedProductionVariant()
Identifies the production variant that was invoked.
public InvokeEndpointResult withInvokedProductionVariant(String invokedProductionVariant)
Identifies the production variant that was invoked.
invokedProductionVariant
- Identifies the production variant that was invoked.public void setCustomAttributes(String customAttributes)
Provides additional information in the response about the inference returned by a model hosted at an Amazon
SageMaker 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 CustomAttributes
header 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 Python SDK.
customAttributes
- Provides additional information in the response about the inference returned by a model hosted at an
Amazon SageMaker 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 CustomAttributes
header 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 Python SDK.
public String getCustomAttributes()
Provides additional information in the response about the inference returned by a model hosted at an Amazon
SageMaker 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 CustomAttributes
header 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 Python SDK.
CustomAttributes
header 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 Python SDK.
public InvokeEndpointResult withCustomAttributes(String customAttributes)
Provides additional information in the response about the inference returned by a model hosted at an Amazon
SageMaker 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 CustomAttributes
header 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 Python SDK.
customAttributes
- Provides additional information in the response about the inference returned by a model hosted at an
Amazon SageMaker 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 CustomAttributes
header 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 Python SDK.
public String toString()
toString
in class Object
Object.toString()
public InvokeEndpointResult clone()