@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 in the response body.
|
String |
getCustomAttributes()
|
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 in the response body.
|
void |
setCustomAttributes(String customAttributes)
|
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 in the response body.
|
InvokeEndpointResult |
withCustomAttributes(String customAttributes)
|
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.
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.
public ByteBuffer getBody()
Includes the inference provided by the model.
For information about the format of the response body, see Common Data Formats—Inference.
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.
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.
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.
public void setContentType(String contentType)
The MIME type of the inference returned in the response body.
contentType
- The MIME type of the inference returned in the response body.public String getContentType()
The MIME type of the inference returned in the response body.
public InvokeEndpointResult withContentType(String contentType)
The MIME type of the inference returned in the response body.
contentType
- The MIME type of the inference returned in the response body.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)
customAttributes
- public String getCustomAttributes()
public InvokeEndpointResult withCustomAttributes(String customAttributes)
customAttributes
- public String toString()
toString
in class Object
Object.toString()
public InvokeEndpointResult clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.