@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() |
LongReturnType |
longReturnType()
A value that indicates how a field of
LONG type is represented. |
String |
longReturnTypeAsString()
A value that indicates how a field of
LONG type is represented. |
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 final 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.
If the service returns an enum value that is not available in the current SDK version, longReturnType
will return LongReturnType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from longReturnTypeAsString().
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 final String longReturnTypeAsString()
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.
If the service returns an enum value that is not available in the current SDK version, longReturnType
will return LongReturnType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from longReturnTypeAsString().
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.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 © 2023. All rights reserved.