@Generated(value="software.amazon.awssdk:codegen") public final class ResultSetOptions extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ResultSetOptions.Builder,ResultSetOptions>
Options that control how the result set is returned.
| Modifier and Type | Class and Description |
|---|---|
static interface |
ResultSetOptions.Builder |
| Modifier and Type | Method and Description |
|---|---|
static ResultSetOptions.Builder |
builder() |
DecimalReturnType |
decimalReturnType()
A value that indicates how a field of
DECIMAL type is represented in the response. |
String |
decimalReturnTypeAsString()
A value that indicates how a field of
DECIMAL type is represented in the response. |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends ResultSetOptions.Builder> |
serializableBuilderClass() |
ResultSetOptions.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final 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.
If the service returns an enum value that is not available in the current SDK version, decimalReturnType
will return DecimalReturnType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from decimalReturnTypeAsString().
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 final String decimalReturnTypeAsString()
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.
If the service returns an enum value that is not available in the current SDK version, decimalReturnType
will return DecimalReturnType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from decimalReturnTypeAsString().
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.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<ResultSetOptions.Builder,ResultSetOptions>public static ResultSetOptions.Builder builder()
public static Class<? extends ResultSetOptions.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2021. All rights reserved.