@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. |
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. |
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. |
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.
DecimalReturnType
public 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.
DecimalReturnType
public 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.
DecimalReturnType
public 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.
DecimalReturnType
public String toString()
toString
in class Object
Object.toString()
public ResultSetOptions clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.