Class KeyspacesCellValue
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<KeyspacesCellValue.Builder,KeyspacesCellValue>
Represents the value of a cell in an Amazon Keyspaces table, supporting various data types with type-specific fields.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic enum -
Method Summary
Modifier and TypeMethodDescriptionfinal StringasciiT()A value of ASCII text type, containing US-ASCII characters.final StringbigintT()A 64-bit signed integer value.final SdkBytesblobT()A binary large object (BLOB) value stored as a Base64-encoded string.final BooleanboolT()A Boolean value, eithertrueorfalse.static KeyspacesCellValue.Builderbuilder()final StringcounterT()A distributed counter value that can be incremented and decremented.final StringdateT()A date value without a time component, represented as days since epoch (January 1, 1970).final StringdecimalT()A variable-precision decimal number value.final StringdoubleT()A 64-bit double-precision floating point value.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final StringfloatT()A 32-bit single-precision floating point value.static KeyspacesCellValuefromAsciiT(String asciiT) Create an instance of this class withasciiT()initialized to the given value.static KeyspacesCellValuefromBigintT(String bigintT) Create an instance of this class withbigintT()initialized to the given value.static KeyspacesCellValueCreate an instance of this class withblobT()initialized to the given value.static KeyspacesCellValueCreate an instance of this class withboolT()initialized to the given value.static KeyspacesCellValuefromCounterT(String counterT) Create an instance of this class withcounterT()initialized to the given value.static KeyspacesCellValueCreate an instance of this class withdateT()initialized to the given value.static KeyspacesCellValuefromDecimalT(String decimalT) Create an instance of this class withdecimalT()initialized to the given value.static KeyspacesCellValuefromDoubleT(String doubleT) Create an instance of this class withdoubleT()initialized to the given value.static KeyspacesCellValuefromFloatT(String floatT) Create an instance of this class withfloatT()initialized to the given value.static KeyspacesCellValueCreate an instance of this class withinetT()initialized to the given value.static KeyspacesCellValueCreate an instance of this class withintT()initialized to the given value.static KeyspacesCellValuefromListT(List<KeyspacesCell> listT) Create an instance of this class withlistT()initialized to the given value.static KeyspacesCellValueCreate an instance of this class withmapT()initialized to the given value.static KeyspacesCellValuefromSetT(List<KeyspacesCell> setT) Create an instance of this class withsetT()initialized to the given value.static KeyspacesCellValuefromSmallintT(String smallintT) Create an instance of this class withsmallintT()initialized to the given value.static KeyspacesCellValueCreate an instance of this class withtextT()initialized to the given value.static KeyspacesCellValuefromTimestampT(String timestampT) Create an instance of this class withtimestampT()initialized to the given value.static KeyspacesCellValueCreate an instance of this class withtimeT()initialized to the given value.static KeyspacesCellValuefromTimeuuidT(String timeuuidT) Create an instance of this class withtimeuuidT()initialized to the given value.static KeyspacesCellValuefromTinyintT(String tinyintT) Create an instance of this class withtinyintT()initialized to the given value.static KeyspacesCellValuefromTupleT(List<KeyspacesCell> tupleT) Create an instance of this class withtupleT()initialized to the given value.static KeyspacesCellValuefromUdtT(Map<String, KeyspacesCell> udtT) Create an instance of this class withudtT()initialized to the given value.static KeyspacesCellValueCreate an instance of this class withuuidT()initialized to the given value.static KeyspacesCellValuefromVarcharT(String varcharT) Create an instance of this class withvarcharT()initialized to the given value.static KeyspacesCellValuefromVarintT(String varintT) Create an instance of this class withvarintT()initialized to the given value.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final booleanhasListT()For responses, this returns true if the service returned a value for the ListT property.final booleanhasMapT()For responses, this returns true if the service returned a value for the MapT property.final booleanhasSetT()For responses, this returns true if the service returned a value for the SetT property.final booleanFor responses, this returns true if the service returned a value for the TupleT property.final booleanhasUdtT()For responses, this returns true if the service returned a value for the UdtT property.final StringinetT()An IP address value, either IPv4 or IPv6 format.final StringintT()A 32-bit signed integer value.final List<KeyspacesCell> listT()An ordered collection of elements that can contain duplicate values.final List<KeyspacesCellMapDefinition> mapT()A collection of key-value pairs where each key is unique.static Class<? extends KeyspacesCellValue.Builder> final List<KeyspacesCell> setT()An unordered collection of unique elements.final StringA 16-bit signed integer value.final StringtextT()A UTF-8 encoded string value.final StringA timestamp value representing date and time with millisecond precision.final StringtimeT()A time value without a date component, with nanosecond precision.final StringA universally unique identifier (UUID) that includes a timestamp component, ensuring both uniqueness and time ordering.final StringtinyintT()An 8-bit signed integer value.Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.final List<KeyspacesCell> tupleT()A fixed-length ordered list of elements, where each element can be of a different data type.type()Retrieve an enum value representing which member of this object is populated.final Map<String, KeyspacesCell> udtT()A user-defined type (UDT) value consisting of named fields, each with its own data type.final StringuuidT()A universally unique identifier (UUID) value.final StringvarcharT()A UTF-8 encoded string value, functionally equivalent to text type.final StringvarintT()A variable precision integer value with arbitrary length.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
asciiT
A value of ASCII text type, containing US-ASCII characters.
- Returns:
- A value of ASCII text type, containing US-ASCII characters.
-
bigintT
A 64-bit signed integer value.
- Returns:
- A 64-bit signed integer value.
-
blobT
A binary large object (BLOB) value stored as a Base64-encoded string.
- Returns:
- A binary large object (BLOB) value stored as a Base64-encoded string.
-
boolT
A Boolean value, either
trueorfalse.- Returns:
- A Boolean value, either
trueorfalse.
-
counterT
A distributed counter value that can be incremented and decremented.
- Returns:
- A distributed counter value that can be incremented and decremented.
-
dateT
A date value without a time component, represented as days since epoch (January 1, 1970).
- Returns:
- A date value without a time component, represented as days since epoch (January 1, 1970).
-
decimalT
A variable-precision decimal number value.
- Returns:
- A variable-precision decimal number value.
-
doubleT
A 64-bit double-precision floating point value.
- Returns:
- A 64-bit double-precision floating point value.
-
floatT
A 32-bit single-precision floating point value.
- Returns:
- A 32-bit single-precision floating point value.
-
inetT
An IP address value, either IPv4 or IPv6 format.
- Returns:
- An IP address value, either IPv4 or IPv6 format.
-
intT
-
hasListT
public final boolean hasListT()For responses, this returns true if the service returned a value for the ListT property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
listT
An ordered collection of elements that can contain duplicate values.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasListT()method.- Returns:
- An ordered collection of elements that can contain duplicate values.
-
hasMapT
public final boolean hasMapT()For responses, this returns true if the service returned a value for the MapT property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
mapT
A collection of key-value pairs where each key is unique.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasMapT()method.- Returns:
- A collection of key-value pairs where each key is unique.
-
hasSetT
public final boolean hasSetT()For responses, this returns true if the service returned a value for the SetT property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
setT
An unordered collection of unique elements.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasSetT()method.- Returns:
- An unordered collection of unique elements.
-
smallintT
A 16-bit signed integer value.
- Returns:
- A 16-bit signed integer value.
-
textT
-
timeT
A time value without a date component, with nanosecond precision.
- Returns:
- A time value without a date component, with nanosecond precision.
-
timestampT
A timestamp value representing date and time with millisecond precision.
- Returns:
- A timestamp value representing date and time with millisecond precision.
-
timeuuidT
A universally unique identifier (UUID) that includes a timestamp component, ensuring both uniqueness and time ordering.
- Returns:
- A universally unique identifier (UUID) that includes a timestamp component, ensuring both uniqueness and time ordering.
-
tinyintT
An 8-bit signed integer value.
- Returns:
- An 8-bit signed integer value.
-
hasTupleT
public final boolean hasTupleT()For responses, this returns true if the service returned a value for the TupleT property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
tupleT
A fixed-length ordered list of elements, where each element can be of a different data type.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasTupleT()method.- Returns:
- A fixed-length ordered list of elements, where each element can be of a different data type.
-
uuidT
A universally unique identifier (UUID) value.
- Returns:
- A universally unique identifier (UUID) value.
-
varcharT
A UTF-8 encoded string value, functionally equivalent to text type.
- Returns:
- A UTF-8 encoded string value, functionally equivalent to text type.
-
varintT
A variable precision integer value with arbitrary length.
- Returns:
- A variable precision integer value with arbitrary length.
-
hasUdtT
public final boolean hasUdtT()For responses, this returns true if the service returned a value for the UdtT property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
udtT
A user-defined type (UDT) value consisting of named fields, each with its own data type.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasUdtT()method.- Returns:
- A user-defined type (UDT) value consisting of named fields, each with its own data type.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<KeyspacesCellValue.Builder,KeyspacesCellValue> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
fromAsciiT
Create an instance of this class withasciiT()initialized to the given value.A value of ASCII text type, containing US-ASCII characters.
- Parameters:
asciiT- A value of ASCII text type, containing US-ASCII characters.
-
fromBigintT
Create an instance of this class withbigintT()initialized to the given value.A 64-bit signed integer value.
- Parameters:
bigintT- A 64-bit signed integer value.
-
fromBlobT
Create an instance of this class withblobT()initialized to the given value.A binary large object (BLOB) value stored as a Base64-encoded string.
- Parameters:
blobT- A binary large object (BLOB) value stored as a Base64-encoded string.
-
fromBoolT
Create an instance of this class withboolT()initialized to the given value.A Boolean value, either
trueorfalse.- Parameters:
boolT- A Boolean value, eithertrueorfalse.
-
fromCounterT
Create an instance of this class withcounterT()initialized to the given value.A distributed counter value that can be incremented and decremented.
- Parameters:
counterT- A distributed counter value that can be incremented and decremented.
-
fromDateT
Create an instance of this class withdateT()initialized to the given value.A date value without a time component, represented as days since epoch (January 1, 1970).
- Parameters:
dateT- A date value without a time component, represented as days since epoch (January 1, 1970).
-
fromDecimalT
Create an instance of this class withdecimalT()initialized to the given value.A variable-precision decimal number value.
- Parameters:
decimalT- A variable-precision decimal number value.
-
fromDoubleT
Create an instance of this class withdoubleT()initialized to the given value.A 64-bit double-precision floating point value.
- Parameters:
doubleT- A 64-bit double-precision floating point value.
-
fromFloatT
Create an instance of this class withfloatT()initialized to the given value.A 32-bit single-precision floating point value.
- Parameters:
floatT- A 32-bit single-precision floating point value.
-
fromInetT
Create an instance of this class withinetT()initialized to the given value.An IP address value, either IPv4 or IPv6 format.
- Parameters:
inetT- An IP address value, either IPv4 or IPv6 format.
-
fromIntT
Create an instance of this class withintT()initialized to the given value.A 32-bit signed integer value.
- Parameters:
intT- A 32-bit signed integer value.
-
fromListT
Create an instance of this class withlistT()initialized to the given value.An ordered collection of elements that can contain duplicate values.
- Parameters:
listT- An ordered collection of elements that can contain duplicate values.
-
fromMapT
Create an instance of this class withmapT()initialized to the given value.A collection of key-value pairs where each key is unique.
- Parameters:
mapT- A collection of key-value pairs where each key is unique.
-
fromSetT
Create an instance of this class withsetT()initialized to the given value.An unordered collection of unique elements.
- Parameters:
setT- An unordered collection of unique elements.
-
fromSmallintT
Create an instance of this class withsmallintT()initialized to the given value.A 16-bit signed integer value.
- Parameters:
smallintT- A 16-bit signed integer value.
-
fromTextT
Create an instance of this class withtextT()initialized to the given value.A UTF-8 encoded string value.
- Parameters:
textT- A UTF-8 encoded string value.
-
fromTimeT
Create an instance of this class withtimeT()initialized to the given value.A time value without a date component, with nanosecond precision.
- Parameters:
timeT- A time value without a date component, with nanosecond precision.
-
fromTimestampT
Create an instance of this class withtimestampT()initialized to the given value.A timestamp value representing date and time with millisecond precision.
- Parameters:
timestampT- A timestamp value representing date and time with millisecond precision.
-
fromTimeuuidT
Create an instance of this class withtimeuuidT()initialized to the given value.A universally unique identifier (UUID) that includes a timestamp component, ensuring both uniqueness and time ordering.
- Parameters:
timeuuidT- A universally unique identifier (UUID) that includes a timestamp component, ensuring both uniqueness and time ordering.
-
fromTinyintT
Create an instance of this class withtinyintT()initialized to the given value.An 8-bit signed integer value.
- Parameters:
tinyintT- An 8-bit signed integer value.
-
fromTupleT
Create an instance of this class withtupleT()initialized to the given value.A fixed-length ordered list of elements, where each element can be of a different data type.
- Parameters:
tupleT- A fixed-length ordered list of elements, where each element can be of a different data type.
-
fromUuidT
Create an instance of this class withuuidT()initialized to the given value.A universally unique identifier (UUID) value.
- Parameters:
uuidT- A universally unique identifier (UUID) value.
-
fromVarcharT
Create an instance of this class withvarcharT()initialized to the given value.A UTF-8 encoded string value, functionally equivalent to text type.
- Parameters:
varcharT- A UTF-8 encoded string value, functionally equivalent to text type.
-
fromVarintT
Create an instance of this class withvarintT()initialized to the given value.A variable precision integer value with arbitrary length.
- Parameters:
varintT- A variable precision integer value with arbitrary length.
-
fromUdtT
Create an instance of this class withudtT()initialized to the given value.A user-defined type (UDT) value consisting of named fields, each with its own data type.
- Parameters:
udtT- A user-defined type (UDT) value consisting of named fields, each with its own data type.
-
type
Retrieve an enum value representing which member of this object is populated. When this class is returned in a service response, this will beKeyspacesCellValue.Type.UNKNOWN_TO_SDK_VERSIONif the service returned a member that is only known to a newer SDK version. When this class is created directly in your code, this will beKeyspacesCellValue.Type.UNKNOWN_TO_SDK_VERSIONif zero members are set, andnullif more than one member is set. -
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-