/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Options that control how the result set is returned.See Also:
* AWS
* API Reference
A value that indicates how a field of DECIMAL
type is
* represented in the response. The value of STRING
, the default,
* specifies that it is converted to a String value. The value of
* DOUBLE_OR_LONG
specifies that it is converted to a Long value if
* its scale is 0, or to a Double value otherwise.
Conversion to * Double or Long can result in roundoff errors due to precision loss. We recommend * converting to String, especially when working with currency values.
*/ inline const DecimalReturnType& GetDecimalReturnType() const{ return m_decimalReturnType; } /** *A value that indicates how a field of DECIMAL
type is
* represented in the response. The value of STRING
, the default,
* specifies that it is converted to a String value. The value of
* DOUBLE_OR_LONG
specifies that it is converted to a Long value if
* its scale is 0, or to a Double value otherwise.
Conversion to * Double or Long can result in roundoff errors due to precision loss. We recommend * converting to String, especially when working with currency values.
*/ inline bool DecimalReturnTypeHasBeenSet() const { return m_decimalReturnTypeHasBeenSet; } /** *A value that indicates how a field of DECIMAL
type is
* represented in the response. The value of STRING
, the default,
* specifies that it is converted to a String value. The value of
* DOUBLE_OR_LONG
specifies that it is converted to a Long value if
* its scale is 0, or to a Double value otherwise.
Conversion to * Double or Long can result in roundoff errors due to precision loss. We recommend * converting to String, especially when working with currency values.
*/ inline void SetDecimalReturnType(const DecimalReturnType& value) { m_decimalReturnTypeHasBeenSet = true; m_decimalReturnType = value; } /** *A value that indicates how a field of DECIMAL
type is
* represented in the response. The value of STRING
, the default,
* specifies that it is converted to a String value. The value of
* DOUBLE_OR_LONG
specifies that it is converted to a Long value if
* its scale is 0, or to a Double value otherwise.
Conversion to * Double or Long can result in roundoff errors due to precision loss. We recommend * converting to String, especially when working with currency values.
*/ inline void SetDecimalReturnType(DecimalReturnType&& value) { m_decimalReturnTypeHasBeenSet = true; m_decimalReturnType = std::move(value); } /** *A value that indicates how a field of DECIMAL
type is
* represented in the response. The value of STRING
, the default,
* specifies that it is converted to a String value. The value of
* DOUBLE_OR_LONG
specifies that it is converted to a Long value if
* its scale is 0, or to a Double value otherwise.
Conversion to * Double or Long can result in roundoff errors due to precision loss. We recommend * converting to String, especially when working with currency values.
*/ inline ResultSetOptions& WithDecimalReturnType(const DecimalReturnType& value) { SetDecimalReturnType(value); return *this;} /** *A value that indicates how a field of DECIMAL
type is
* represented in the response. The value of STRING
, the default,
* specifies that it is converted to a String value. The value of
* DOUBLE_OR_LONG
specifies that it is converted to a Long value if
* its scale is 0, or to a Double value otherwise.
Conversion to * Double or Long can result in roundoff errors due to precision loss. We recommend * converting to String, especially when working with currency values.
*/ inline ResultSetOptions& WithDecimalReturnType(DecimalReturnType&& value) { SetDecimalReturnType(std::move(value)); return *this;} /** *A value that indicates how a field of LONG
type is represented.
* Allowed values are LONG
and STRING
. The default is
* LONG
. Specify STRING
if the length or precision of
* numeric values might cause truncation or rounding errors.
A value that indicates how a field of LONG
type is represented.
* Allowed values are LONG
and STRING
. The default is
* LONG
. Specify STRING
if the length or precision of
* numeric values might cause truncation or rounding errors.
A value that indicates how a field of LONG
type is represented.
* Allowed values are LONG
and STRING
. The default is
* LONG
. Specify STRING
if the length or precision of
* numeric values might cause truncation or rounding errors.
A value that indicates how a field of LONG
type is represented.
* Allowed values are LONG
and STRING
. The default is
* LONG
. Specify STRING
if the length or precision of
* numeric values might cause truncation or rounding errors.
A value that indicates how a field of LONG
type is represented.
* Allowed values are LONG
and STRING
. The default is
* LONG
. Specify STRING
if the length or precision of
* numeric values might cause truncation or rounding errors.
A value that indicates how a field of LONG
type is represented.
* Allowed values are LONG
and STRING
. The default is
* LONG
. Specify STRING
if the length or precision of
* numeric values might cause truncation or rounding errors.