Class KeyspacesCellValue

java.lang.Object
software.amazon.awssdk.services.keyspacesstreams.model.KeyspacesCellValue
All Implemented Interfaces:
Serializable, SdkPojo, ToCopyableBuilder<KeyspacesCellValue.Builder,KeyspacesCellValue>

@Generated("software.amazon.awssdk:codegen") public final class KeyspacesCellValue extends Object implements SdkPojo, Serializable, 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:
  • Method Details

    • asciiT

      public final String asciiT()

      A value of ASCII text type, containing US-ASCII characters.

      Returns:
      A value of ASCII text type, containing US-ASCII characters.
    • bigintT

      public final String bigintT()

      A 64-bit signed integer value.

      Returns:
      A 64-bit signed integer value.
    • blobT

      public final SdkBytes 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

      public final Boolean boolT()

      A Boolean value, either true or false.

      Returns:
      A Boolean value, either true or false.
    • counterT

      public final String counterT()

      A distributed counter value that can be incremented and decremented.

      Returns:
      A distributed counter value that can be incremented and decremented.
    • dateT

      public final String 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

      public final String decimalT()

      A variable-precision decimal number value.

      Returns:
      A variable-precision decimal number value.
    • doubleT

      public final String doubleT()

      A 64-bit double-precision floating point value.

      Returns:
      A 64-bit double-precision floating point value.
    • floatT

      public final String floatT()

      A 32-bit single-precision floating point value.

      Returns:
      A 32-bit single-precision floating point value.
    • inetT

      public final String inetT()

      An IP address value, either IPv4 or IPv6 format.

      Returns:
      An IP address value, either IPv4 or IPv6 format.
    • intT

      public final String intT()

      A 32-bit signed integer value.

      Returns:
      A 32-bit signed integer value.
    • 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 the isEmpty() 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

      public final List<KeyspacesCell> 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 the isEmpty() 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

      public final List<KeyspacesCellMapDefinition> 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 the isEmpty() 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

      public final List<KeyspacesCell> 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

      public final String smallintT()

      A 16-bit signed integer value.

      Returns:
      A 16-bit signed integer value.
    • textT

      public final String textT()

      A UTF-8 encoded string value.

      Returns:
      A UTF-8 encoded string value.
    • timeT

      public final String timeT()

      A time value without a date component, with nanosecond precision.

      Returns:
      A time value without a date component, with nanosecond precision.
    • timestampT

      public final String timestampT()

      A timestamp value representing date and time with millisecond precision.

      Returns:
      A timestamp value representing date and time with millisecond precision.
    • timeuuidT

      public final String 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

      public final String 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 the isEmpty() 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

      public final List<KeyspacesCell> 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

      public final String uuidT()

      A universally unique identifier (UUID) value.

      Returns:
      A universally unique identifier (UUID) value.
    • varcharT

      public final String 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

      public final String 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 the isEmpty() 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

      public final Map<String,KeyspacesCell> 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

      public KeyspacesCellValue.Builder 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 interface ToCopyableBuilder<KeyspacesCellValue.Builder,KeyspacesCellValue>
      Returns:
      a builder for type T
    • builder

      public static KeyspacesCellValue.Builder builder()
    • serializableBuilderClass

      public static Class<? extends KeyspacesCellValue.Builder> serializableBuilderClass()
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public final boolean equals(Object obj)
      Overrides:
      equals in class Object
    • equalsBySdkFields

      public final boolean equalsBySdkFields(Object obj)
      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 an SdkPojo class, and is generated based on a service model.

      If an SdkPojo class does not have any inherited fields, equalsBySdkFields and equals are essentially the same.

      Specified by:
      equalsBySdkFields in interface SdkPojo
      Parameters:
      obj - the object to be compared with
      Returns:
      true if the other object equals to this object by sdk fields, false otherwise.
    • 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.
      Overrides:
      toString in class Object
    • getValueForField

      public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
    • fromAsciiT

      public static KeyspacesCellValue fromAsciiT(String asciiT)
      Create an instance of this class with asciiT() 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

      public static KeyspacesCellValue fromBigintT(String bigintT)
      Create an instance of this class with bigintT() initialized to the given value.

      A 64-bit signed integer value.

      Parameters:
      bigintT - A 64-bit signed integer value.
    • fromBlobT

      public static KeyspacesCellValue fromBlobT(SdkBytes blobT)
      Create an instance of this class with blobT() 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

      public static KeyspacesCellValue fromBoolT(Boolean boolT)
      Create an instance of this class with boolT() initialized to the given value.

      A Boolean value, either true or false.

      Parameters:
      boolT - A Boolean value, either true or false.
    • fromCounterT

      public static KeyspacesCellValue fromCounterT(String counterT)
      Create an instance of this class with counterT() 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

      public static KeyspacesCellValue fromDateT(String dateT)
      Create an instance of this class with dateT() 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

      public static KeyspacesCellValue fromDecimalT(String decimalT)
      Create an instance of this class with decimalT() initialized to the given value.

      A variable-precision decimal number value.

      Parameters:
      decimalT - A variable-precision decimal number value.
    • fromDoubleT

      public static KeyspacesCellValue fromDoubleT(String doubleT)
      Create an instance of this class with doubleT() initialized to the given value.

      A 64-bit double-precision floating point value.

      Parameters:
      doubleT - A 64-bit double-precision floating point value.
    • fromFloatT

      public static KeyspacesCellValue fromFloatT(String floatT)
      Create an instance of this class with floatT() initialized to the given value.

      A 32-bit single-precision floating point value.

      Parameters:
      floatT - A 32-bit single-precision floating point value.
    • fromInetT

      public static KeyspacesCellValue fromInetT(String inetT)
      Create an instance of this class with inetT() 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

      public static KeyspacesCellValue fromIntT(String intT)
      Create an instance of this class with intT() initialized to the given value.

      A 32-bit signed integer value.

      Parameters:
      intT - A 32-bit signed integer value.
    • fromListT

      public static KeyspacesCellValue fromListT(List<KeyspacesCell> listT)
      Create an instance of this class with listT() 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

      public static KeyspacesCellValue fromMapT(List<KeyspacesCellMapDefinition> mapT)
      Create an instance of this class with mapT() 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

      public static KeyspacesCellValue fromSetT(List<KeyspacesCell> setT)
      Create an instance of this class with setT() initialized to the given value.

      An unordered collection of unique elements.

      Parameters:
      setT - An unordered collection of unique elements.
    • fromSmallintT

      public static KeyspacesCellValue fromSmallintT(String smallintT)
      Create an instance of this class with smallintT() initialized to the given value.

      A 16-bit signed integer value.

      Parameters:
      smallintT - A 16-bit signed integer value.
    • fromTextT

      public static KeyspacesCellValue fromTextT(String textT)
      Create an instance of this class with textT() initialized to the given value.

      A UTF-8 encoded string value.

      Parameters:
      textT - A UTF-8 encoded string value.
    • fromTimeT

      public static KeyspacesCellValue fromTimeT(String timeT)
      Create an instance of this class with timeT() 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

      public static KeyspacesCellValue fromTimestampT(String timestampT)
      Create an instance of this class with timestampT() 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

      public static KeyspacesCellValue fromTimeuuidT(String timeuuidT)
      Create an instance of this class with timeuuidT() 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

      public static KeyspacesCellValue fromTinyintT(String tinyintT)
      Create an instance of this class with tinyintT() initialized to the given value.

      An 8-bit signed integer value.

      Parameters:
      tinyintT - An 8-bit signed integer value.
    • fromTupleT

      public static KeyspacesCellValue fromTupleT(List<KeyspacesCell> tupleT)
      Create an instance of this class with tupleT() 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

      public static KeyspacesCellValue fromUuidT(String uuidT)
      Create an instance of this class with uuidT() initialized to the given value.

      A universally unique identifier (UUID) value.

      Parameters:
      uuidT - A universally unique identifier (UUID) value.
    • fromVarcharT

      public static KeyspacesCellValue fromVarcharT(String varcharT)
      Create an instance of this class with varcharT() 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

      public static KeyspacesCellValue fromVarintT(String varintT)
      Create an instance of this class with varintT() initialized to the given value.

      A variable precision integer value with arbitrary length.

      Parameters:
      varintT - A variable precision integer value with arbitrary length.
    • fromUdtT

      public static KeyspacesCellValue fromUdtT(Map<String,KeyspacesCell> udtT)
      Create an instance of this class with udtT() 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

      public KeyspacesCellValue.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 be KeyspacesCellValue.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 be KeyspacesCellValue.Type.UNKNOWN_TO_SDK_VERSION if zero members are set, and null if more than one member is set.
    • sdkFields

      public final List<SdkField<?>> sdkFields()
      Specified by:
      sdkFields in interface SdkPojo
      Returns:
      List of SdkField in this POJO. May be empty list but should never be null.
    • sdkFieldNameToField

      public final Map<String,SdkField<?>> sdkFieldNameToField()
      Specified by:
      sdkFieldNameToField in interface SdkPojo
      Returns:
      The mapping between the field name and its corresponding field.