/** * <p> * The status of the returned data. <code>Complete</code> indicates that all data points in the requested time range * were returned. <code>PartialData</code> means that an incomplete set of data points were returned. You can use * the <code>NextToken</code> value that was returned and repeat your request to get more data points. * <code>NextToken</code> is not returned if you are performing a math expression. <code>InternalError</code> * indicates that an error occurred. Retry your request using <code>NextToken</code>, if present. * </p> * <p> * If the service returns an enum value that is not available in the current SDK version, {@link #statusCode} will * return {@link StatusCode#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from * {@link #statusCodeAsString}. * </p> * * @return The status of the returned data. <code>Complete</code> indicates that all data points in the requested * time range were returned. <code>PartialData</code> means that an incomplete set of data points were * returned. You can use the <code>NextToken</code> value that was returned and repeat your request to get * more data points. <code>NextToken</code> is not returned if you are performing a math expression. * <code>InternalError</code> indicates that an error occurred. Retry your request using * <code>NextToken</code>, if present. * @see StatusCode */ public StatusCode statusCode() { return StatusCode.fromValue(statusCode); }
/** * <p> * The status of the returned data. <code>Complete</code> indicates that all data points in the requested time range * were returned. <code>PartialData</code> means that an incomplete set of data points were returned. You can use * the <code>NextToken</code> value that was returned and repeat your request to get more data points. * <code>NextToken</code> is not returned if you are performing a math expression. <code>InternalError</code> * indicates that an error occurred. Retry your request using <code>NextToken</code>, if present. * </p> * <p> * If the service returns an enum value that is not available in the current SDK version, {@link #statusCode} will * return {@link StatusCode#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from * {@link #statusCodeAsString}. * </p> * * @return The status of the returned data. <code>Complete</code> indicates that all data points in the requested * time range were returned. <code>PartialData</code> means that an incomplete set of data points were * returned. You can use the <code>NextToken</code> value that was returned and repeat your request to get * more data points. <code>NextToken</code> is not returned if you are performing a math expression. * <code>InternalError</code> indicates that an error occurred. Retry your request using * <code>NextToken</code>, if present. * @see StatusCode */ public StatusCode statusCode() { return StatusCode.fromValue(statusCode); }