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 interface
static enum
-
Method Summary
Modifier and TypeMethodDescriptionfinal String
asciiT()
A value of ASCII text type, containing US-ASCII characters.final String
bigintT()
A 64-bit signed integer value.final SdkBytes
blobT()
A binary large object (BLOB) value stored as a Base64-encoded string.final Boolean
boolT()
A Boolean value, eithertrue
orfalse
.static KeyspacesCellValue.Builder
builder()
final String
counterT()
A distributed counter value that can be incremented and decremented.final String
dateT()
A date value without a time component, represented as days since epoch (January 1, 1970).final String
decimalT()
A variable-precision decimal number value.final String
doubleT()
A 64-bit double-precision floating point value.final boolean
final boolean
equalsBySdkFields
(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final String
floatT()
A 32-bit single-precision floating point value.static KeyspacesCellValue
fromAsciiT
(String asciiT) Create an instance of this class withasciiT()
initialized to the given value.static KeyspacesCellValue
fromBigintT
(String bigintT) Create an instance of this class withbigintT()
initialized to the given value.static KeyspacesCellValue
Create an instance of this class withblobT()
initialized to the given value.static KeyspacesCellValue
Create an instance of this class withboolT()
initialized to the given value.static KeyspacesCellValue
fromCounterT
(String counterT) Create an instance of this class withcounterT()
initialized to the given value.static KeyspacesCellValue
Create an instance of this class withdateT()
initialized to the given value.static KeyspacesCellValue
fromDecimalT
(String decimalT) Create an instance of this class withdecimalT()
initialized to the given value.static KeyspacesCellValue
fromDoubleT
(String doubleT) Create an instance of this class withdoubleT()
initialized to the given value.static KeyspacesCellValue
fromFloatT
(String floatT) Create an instance of this class withfloatT()
initialized to the given value.static KeyspacesCellValue
Create an instance of this class withinetT()
initialized to the given value.static KeyspacesCellValue
Create an instance of this class withintT()
initialized to the given value.static KeyspacesCellValue
fromListT
(List<KeyspacesCell> listT) Create an instance of this class withlistT()
initialized to the given value.static KeyspacesCellValue
Create an instance of this class withmapT()
initialized to the given value.static KeyspacesCellValue
fromSetT
(List<KeyspacesCell> setT) Create an instance of this class withsetT()
initialized to the given value.static KeyspacesCellValue
fromSmallintT
(String smallintT) Create an instance of this class withsmallintT()
initialized to the given value.static KeyspacesCellValue
Create an instance of this class withtextT()
initialized to the given value.static KeyspacesCellValue
fromTimestampT
(String timestampT) Create an instance of this class withtimestampT()
initialized to the given value.static KeyspacesCellValue
Create an instance of this class withtimeT()
initialized to the given value.static KeyspacesCellValue
fromTimeuuidT
(String timeuuidT) Create an instance of this class withtimeuuidT()
initialized to the given value.static KeyspacesCellValue
fromTinyintT
(String tinyintT) Create an instance of this class withtinyintT()
initialized to the given value.static KeyspacesCellValue
fromTupleT
(List<KeyspacesCell> tupleT) Create an instance of this class withtupleT()
initialized to the given value.static KeyspacesCellValue
fromUdtT
(Map<String, KeyspacesCell> udtT) Create an instance of this class withudtT()
initialized to the given value.static KeyspacesCellValue
Create an instance of this class withuuidT()
initialized to the given value.static KeyspacesCellValue
fromVarcharT
(String varcharT) Create an instance of this class withvarcharT()
initialized to the given value.static KeyspacesCellValue
fromVarintT
(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 int
hashCode()
final boolean
hasListT()
For responses, this returns true if the service returned a value for the ListT property.final boolean
hasMapT()
For responses, this returns true if the service returned a value for the MapT property.final boolean
hasSetT()
For responses, this returns true if the service returned a value for the SetT property.final boolean
For responses, this returns true if the service returned a value for the TupleT property.final boolean
hasUdtT()
For responses, this returns true if the service returned a value for the UdtT property.final String
inetT()
An IP address value, either IPv4 or IPv6 format.final String
intT()
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 String
A 16-bit signed integer value.final String
textT()
A UTF-8 encoded string value.final String
A timestamp value representing date and time with millisecond precision.final String
timeT()
A time value without a date component, with nanosecond precision.final String
A universally unique identifier (UUID) that includes a timestamp component, ensuring both uniqueness and time ordering.final String
tinyintT()
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 String
toString()
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 String
uuidT()
A universally unique identifier (UUID) value.final String
varcharT()
A UTF-8 encoded string value, functionally equivalent to text type.final String
varintT()
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
true
orfalse
.- Returns:
- A Boolean value, either
true
orfalse
.
-
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:ToCopyableBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToCopyableBuilder<KeyspacesCellValue.Builder,
KeyspacesCellValue> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojo
Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojo
class, and is generated based on a service model.If an
SdkPojo
class does not have any inherited fields,equalsBySdkFields
andequals
are essentially the same.- Specified by:
equalsBySdkFields
in 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
true
orfalse
.- Parameters:
boolT
- A Boolean value, eithertrue
orfalse
.
-
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_VERSION
if 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_VERSION
if zero members are set, andnull
if more than one member is set. -
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToField
in interfaceSdkPojo
- Returns:
- The mapping between the field name and its corresponding field.
-