/* * Copyright 2010-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ package com.amazonaws.services.sagemakerruntime.model; import java.io.Serializable; public class InvokeEndpointResult implements Serializable { /** *
* Includes the inference provided by the model. *
** For information about the format of the response body, see Common Data Formats—Inference. *
*
* Constraints:
* Length: - 5242880
*/
private java.nio.ByteBuffer body;
/**
*
* The MIME type of the inference returned in the response body. *
*
* Constraints:
* Length: - 1024
*/
private String contentType;
/**
*
* Identifies the production variant that was invoked. *
*
* Constraints:
* Length: - 1024
*/
private String invokedProductionVariant;
/**
*
* Constraints:
* Length: - 1024
*/
private String customAttributes;
/**
*
* Includes the inference provided by the model. *
** For information about the format of the response body, see Common Data Formats—Inference. *
*
* Constraints:
* Length: - 5242880
*
* @return
* Includes the inference provided by the model. *
** For information about the format of the response body, see Common Data Formats—Inference. *
*/ public java.nio.ByteBuffer getBody() { return 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
*
* @param body
* 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) { this.body = 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
*
* @param body
* Includes the inference provided by the model. *
** For information about the format of the response body, see Common Data Formats—Inference. *
* @return A reference to this updated object so that method calls can be * chained together. */ public InvokeEndpointResult withBody(java.nio.ByteBuffer body) { this.body = body; return this; } /** ** The MIME type of the inference returned in the response body. *
*
* Constraints:
* Length: - 1024
*
* @return
* The MIME type of the inference returned in the response body. *
*/ public String getContentType() { return contentType; } /** ** The MIME type of the inference returned in the response body. *
*
* Constraints:
* Length: - 1024
*
* @param contentType
* The MIME type of the inference returned in the response body. *
*/ public void setContentType(String contentType) { this.contentType = 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
*
* @param contentType
* The MIME type of the inference returned in the response body. *
* @return A reference to this updated object so that method calls can be * chained together. */ public InvokeEndpointResult withContentType(String contentType) { this.contentType = contentType; return this; } /** ** Identifies the production variant that was invoked. *
*
* Constraints:
* Length: - 1024
*
* @return
* Identifies the production variant that was invoked. *
*/ public String getInvokedProductionVariant() { return invokedProductionVariant; } /** ** Identifies the production variant that was invoked. *
*
* Constraints:
* Length: - 1024
*
* @param invokedProductionVariant
* Identifies the production variant that was invoked. *
*/ public void setInvokedProductionVariant(String invokedProductionVariant) { this.invokedProductionVariant = 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
*
* @param invokedProductionVariant
* Identifies the production variant that was invoked. *
* @return A reference to this updated object so that method calls can be * chained together. */ public InvokeEndpointResult withInvokedProductionVariant(String invokedProductionVariant) { this.invokedProductionVariant = invokedProductionVariant; return this; } /** * *
* Constraints:
* Length: - 1024
*
* @return
* Constraints:
* Length: - 1024
*
* @param customAttributes
* Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Length: - 1024
*
* @param customAttributes