public class InvokeEndpointResult
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
InvokeEndpointResult() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.nio.ByteBuffer |
getBody()
Includes the inference provided by the model.
|
java.lang.String |
getContentType()
The MIME type of the inference returned in the response body.
|
java.lang.String |
getCustomAttributes()
|
java.lang.String |
getInvokedProductionVariant()
Identifies the production variant that was invoked.
|
int |
hashCode() |
void |
setBody(java.nio.ByteBuffer body)
Includes the inference provided by the model.
|
void |
setContentType(java.lang.String contentType)
The MIME type of the inference returned in the response body.
|
void |
setCustomAttributes(java.lang.String customAttributes)
|
void |
setInvokedProductionVariant(java.lang.String invokedProductionVariant)
Identifies the production variant that was invoked.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
InvokeEndpointResult |
withBody(java.nio.ByteBuffer body)
Includes the inference provided by the model.
|
InvokeEndpointResult |
withContentType(java.lang.String contentType)
The MIME type of the inference returned in the response body.
|
InvokeEndpointResult |
withCustomAttributes(java.lang.String customAttributes)
|
InvokeEndpointResult |
withInvokedProductionVariant(java.lang.String invokedProductionVariant)
Identifies the production variant that was invoked.
|
public java.nio.ByteBuffer getBody()
Includes the inference provided by the model.
For information about the format of the response body, see Common Data Formats—Inference.
Constraints:
Length: - 5242880
Includes the inference provided by the model.
For information about the format of the response body, see Common Data Formats—Inference.
public void setBody(java.nio.ByteBuffer body)
Includes the inference provided by the model.
For information about the format of the response body, see Common Data Formats—Inference.
Constraints:
Length: - 5242880
body
- Includes the inference provided by the model.
For information about the format of the response body, see Common Data Formats—Inference.
public InvokeEndpointResult withBody(java.nio.ByteBuffer body)
Includes the inference provided by the model.
For information about the format of the response body, see Common Data Formats—Inference.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: - 5242880
body
- Includes the inference provided by the model.
For information about the format of the response body, see Common Data Formats—Inference.
public java.lang.String getContentType()
The MIME type of the inference returned in the response body.
Constraints:
Length: - 1024
The MIME type of the inference returned in the response body.
public void setContentType(java.lang.String contentType)
The MIME type of the inference returned in the response body.
Constraints:
Length: - 1024
contentType
- The MIME type of the inference returned in the response body.
public InvokeEndpointResult withContentType(java.lang.String contentType)
The MIME type of the inference returned in the response body.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: - 1024
contentType
- The MIME type of the inference returned in the response body.
public java.lang.String getInvokedProductionVariant()
Identifies the production variant that was invoked.
Constraints:
Length: - 1024
Identifies the production variant that was invoked.
public void setInvokedProductionVariant(java.lang.String invokedProductionVariant)
Identifies the production variant that was invoked.
Constraints:
Length: - 1024
invokedProductionVariant
- Identifies the production variant that was invoked.
public InvokeEndpointResult withInvokedProductionVariant(java.lang.String invokedProductionVariant)
Identifies the production variant that was invoked.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: - 1024
invokedProductionVariant
- Identifies the production variant that was invoked.
public java.lang.String getCustomAttributes()
Constraints:
Length: - 1024
public void setCustomAttributes(java.lang.String customAttributes)
Constraints:
Length: - 1024
customAttributes
- public InvokeEndpointResult withCustomAttributes(java.lang.String customAttributes)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: - 1024
customAttributes
- public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.