Class Record
java.lang.Object
com.amazonaws.services.cognitosync.model.Record
- All Implemented Interfaces:
Serializable
,Cloneable
The basic data structure of a dataset.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
The last modified date of the client device.getKey()
The key for the record.The user/device that made the last change to this record.The date on which the record was last modified.The server sync count for this record.getValue()
The value for the record.int
hashCode()
void
setDeviceLastModifiedDate
(Date deviceLastModifiedDate) The last modified date of the client device.void
The key for the record.void
setLastModifiedBy
(String lastModifiedBy) The user/device that made the last change to this record.void
setLastModifiedDate
(Date lastModifiedDate) The date on which the record was last modified.void
setSyncCount
(Long syncCount) The server sync count for this record.void
The value for the record.toString()
Returns a string representation of this object; useful for testing and debugging.withDeviceLastModifiedDate
(Date deviceLastModifiedDate) The last modified date of the client device.The key for the record.withLastModifiedBy
(String lastModifiedBy) The user/device that made the last change to this record.withLastModifiedDate
(Date lastModifiedDate) The date on which the record was last modified.withSyncCount
(Long syncCount) The server sync count for this record.The value for the record.
-
Constructor Details
-
Record
public Record()
-
-
Method Details
-
setKey
The key for the record.- Parameters:
key
- The key for the record.
-
getKey
The key for the record.- Returns:
- The key for the record.
-
withKey
The key for the record.- Parameters:
key
- The key for the record.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setValue
The value for the record.- Parameters:
value
- The value for the record.
-
getValue
The value for the record.- Returns:
- The value for the record.
-
withValue
The value for the record.- Parameters:
value
- The value for the record.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setSyncCount
The server sync count for this record.- Parameters:
syncCount
- The server sync count for this record.
-
getSyncCount
The server sync count for this record.- Returns:
- The server sync count for this record.
-
withSyncCount
The server sync count for this record.- Parameters:
syncCount
- The server sync count for this record.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setLastModifiedDate
The date on which the record was last modified.- Parameters:
lastModifiedDate
- The date on which the record was last modified.
-
getLastModifiedDate
The date on which the record was last modified.- Returns:
- The date on which the record was last modified.
-
withLastModifiedDate
The date on which the record was last modified.- Parameters:
lastModifiedDate
- The date on which the record was last modified.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setLastModifiedBy
The user/device that made the last change to this record.- Parameters:
lastModifiedBy
- The user/device that made the last change to this record.
-
getLastModifiedBy
The user/device that made the last change to this record.- Returns:
- The user/device that made the last change to this record.
-
withLastModifiedBy
The user/device that made the last change to this record.- Parameters:
lastModifiedBy
- The user/device that made the last change to this record.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDeviceLastModifiedDate
The last modified date of the client device.- Parameters:
deviceLastModifiedDate
- The last modified date of the client device.
-
getDeviceLastModifiedDate
The last modified date of the client device.- Returns:
- The last modified date of the client device.
-
withDeviceLastModifiedDate
The last modified date of the client device.- Parameters:
deviceLastModifiedDate
- The last modified date of the client device.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-