Class Record
- java.lang.Object
-
- software.amazon.awssdk.services.cognitosync.model.Record
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Record.Builder,Record>
@Generated("software.amazon.awssdk:codegen") public final class Record extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Record.Builder,Record>
The basic data structure of a dataset.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceRecord.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Record.Builderbuilder()InstantdeviceLastModifiedDate()The last modified date of the client device.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringkey()The key for the record.StringlastModifiedBy()The user/device that made the last change to this record.InstantlastModifiedDate()The date on which the record was last modified.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends Record.Builder>serializableBuilderClass()LongsyncCount()The server sync count for this record.Record.BuildertoBuilder()StringtoString()Returns a string representation of this object.Stringvalue()The value for the record.-
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
-
key
public final String key()
The key for the record.- Returns:
- The key for the record.
-
value
public final String value()
The value for the record.- Returns:
- The value for the record.
-
syncCount
public final Long syncCount()
The server sync count for this record.- Returns:
- The server sync count for this record.
-
lastModifiedDate
public final Instant lastModifiedDate()
The date on which the record was last modified.- Returns:
- The date on which the record was last modified.
-
lastModifiedBy
public final String lastModifiedBy()
The user/device that made the last change to this record.- Returns:
- The user/device that made the last change to this record.
-
deviceLastModifiedDate
public final Instant deviceLastModifiedDate()
The last modified date of the client device.- Returns:
- The last modified date of the client device.
-
toBuilder
public Record.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<Record.Builder,Record>
-
builder
public static Record.Builder builder()
-
serializableBuilderClass
public static Class<? extends Record.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.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-