Class ResultSetOptions
- java.lang.Object
-
- software.amazon.awssdk.services.rdsdata.model.ResultSetOptions
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ResultSetOptions.Builder,ResultSetOptions>
@Generated("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.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceResultSetOptions.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ResultSetOptions.Builderbuilder()DecimalReturnTypedecimalReturnType()A value that indicates how a field ofDECIMALtype is represented in the response.StringdecimalReturnTypeAsString()A value that indicates how a field ofDECIMALtype is represented in the response.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()LongReturnTypelongReturnType()A value that indicates how a field ofLONGtype is represented.StringlongReturnTypeAsString()A value that indicates how a field ofLONGtype is represented.List<SdkField<?>>sdkFields()static Class<? extends ResultSetOptions.Builder>serializableBuilderClass()ResultSetOptions.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
decimalReturnType
public final DecimalReturnType decimalReturnType()
A value that indicates how a field of
DECIMALtype is represented in the response. The value ofSTRING, the default, specifies that it is converted to a String value. The value ofDOUBLE_OR_LONGspecifies 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,
decimalReturnTypewill returnDecimalReturnType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromdecimalReturnTypeAsString().- Returns:
- A value that indicates how a field of
DECIMALtype is represented in the response. The value ofSTRING, the default, specifies that it is converted to a String value. The value ofDOUBLE_OR_LONGspecifies 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.
- See Also:
DecimalReturnType
-
decimalReturnTypeAsString
public final String decimalReturnTypeAsString()
A value that indicates how a field of
DECIMALtype is represented in the response. The value ofSTRING, the default, specifies that it is converted to a String value. The value ofDOUBLE_OR_LONGspecifies 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,
decimalReturnTypewill returnDecimalReturnType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromdecimalReturnTypeAsString().- Returns:
- A value that indicates how a field of
DECIMALtype is represented in the response. The value ofSTRING, the default, specifies that it is converted to a String value. The value ofDOUBLE_OR_LONGspecifies 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.
- See Also:
DecimalReturnType
-
longReturnType
public final LongReturnType longReturnType()
A value that indicates how a field of
LONGtype is represented. Allowed values areLONGandSTRING. The default isLONG. SpecifySTRINGif 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,
longReturnTypewill returnLongReturnType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromlongReturnTypeAsString().- Returns:
- A value that indicates how a field of
LONGtype is represented. Allowed values areLONGandSTRING. The default isLONG. SpecifySTRINGif the length or precision of numeric values might cause truncation or rounding errors. - See Also:
LongReturnType
-
longReturnTypeAsString
public final String longReturnTypeAsString()
A value that indicates how a field of
LONGtype is represented. Allowed values areLONGandSTRING. The default isLONG. SpecifySTRINGif 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,
longReturnTypewill returnLongReturnType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromlongReturnTypeAsString().- Returns:
- A value that indicates how a field of
LONGtype is represented. Allowed values areLONGandSTRING. The default isLONG. SpecifySTRINGif the length or precision of numeric values might cause truncation or rounding errors. - See Also:
LongReturnType
-
toBuilder
public ResultSetOptions.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ResultSetOptions.Builder,ResultSetOptions>
-
builder
public static ResultSetOptions.Builder builder()
-
serializableBuilderClass
public static Class<? extends ResultSetOptions.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-