@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ResultSetOptions extends Object implements Serializable, Cloneable, StructuredPojo
Options that control how the result set is returned.
| Constructor and Description |
|---|
ResultSetOptions() |
| Modifier and Type | Method and Description |
|---|---|
ResultSetOptions |
clone() |
boolean |
equals(Object obj) |
String |
getDecimalReturnType()
A value that indicates how a field of
DECIMAL type is represented in the response. |
String |
getLongReturnType()
A value that indicates how a field of
LONG type is represented. |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setDecimalReturnType(String decimalReturnType)
A value that indicates how a field of
DECIMAL type is represented in the response. |
void |
setLongReturnType(String longReturnType)
A value that indicates how a field of
LONG type is represented. |
String |
toString()
Returns a string representation of this object.
|
ResultSetOptions |
withDecimalReturnType(DecimalReturnType decimalReturnType)
A value that indicates how a field of
DECIMAL type is represented in the response. |
ResultSetOptions |
withDecimalReturnType(String decimalReturnType)
A value that indicates how a field of
DECIMAL type is represented in the response. |
ResultSetOptions |
withLongReturnType(LongReturnType longReturnType)
A value that indicates how a field of
LONG type is represented. |
ResultSetOptions |
withLongReturnType(String longReturnType)
A value that indicates how a field of
LONG type is represented. |
public void setDecimalReturnType(String 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.
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.
DecimalReturnTypepublic String getDecimalReturnType()
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.
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.
DecimalReturnTypepublic ResultSetOptions withDecimalReturnType(String 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.
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.
DecimalReturnTypepublic ResultSetOptions withDecimalReturnType(DecimalReturnType 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.
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.
DecimalReturnTypepublic void setLongReturnType(String longReturnType)
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.
longReturnType - 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.LongReturnTypepublic String getLongReturnType()
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.
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.LongReturnTypepublic ResultSetOptions withLongReturnType(String longReturnType)
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.
longReturnType - 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.LongReturnTypepublic ResultSetOptions withLongReturnType(LongReturnType longReturnType)
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.
longReturnType - 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.LongReturnTypepublic String toString()
toString in class ObjectObject.toString()public ResultSetOptions clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.