Class Record
- java.lang.Object
-
- com.amazonaws.services.cognitosync.model.Record
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class Record extends Object implements Serializable, Cloneable
The basic data structure of a dataset.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Record()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Record
clone()
boolean
equals(Object obj)
Date
getDeviceLastModifiedDate()
The last modified date of the client device.String
getKey()
The key for the record.String
getLastModifiedBy()
The user/device that made the last change to this record.Date
getLastModifiedDate()
The date on which the record was last modified.Long
getSyncCount()
The server sync count for this record.String
getValue()
The value for the record.int
hashCode()
void
setDeviceLastModifiedDate(Date deviceLastModifiedDate)
The last modified date of the client device.void
setKey(String key)
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
setValue(String value)
The value for the record.String
toString()
Returns a string representation of this object; useful for testing and debugging.Record
withDeviceLastModifiedDate(Date deviceLastModifiedDate)
The last modified date of the client device.Record
withKey(String key)
The key for the record.Record
withLastModifiedBy(String lastModifiedBy)
The user/device that made the last change to this record.Record
withLastModifiedDate(Date lastModifiedDate)
The date on which the record was last modified.Record
withSyncCount(Long syncCount)
The server sync count for this record.Record
withValue(String value)
The value for the record.
-
-
-
Method Detail
-
setKey
public void setKey(String key)
The key for the record.- Parameters:
key
- The key for the record.
-
getKey
public String getKey()
The key for the record.- Returns:
- The key for the record.
-
withKey
public Record withKey(String key)
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
public void setValue(String value)
The value for the record.- Parameters:
value
- The value for the record.
-
getValue
public String getValue()
The value for the record.- Returns:
- The value for the record.
-
withValue
public Record withValue(String value)
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
public void setSyncCount(Long syncCount)
The server sync count for this record.- Parameters:
syncCount
- The server sync count for this record.
-
getSyncCount
public Long getSyncCount()
The server sync count for this record.- Returns:
- The server sync count for this record.
-
withSyncCount
public Record withSyncCount(Long syncCount)
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
public void setLastModifiedDate(Date lastModifiedDate)
The date on which the record was last modified.- Parameters:
lastModifiedDate
- The date on which the record was last modified.
-
getLastModifiedDate
public Date getLastModifiedDate()
The date on which the record was last modified.- Returns:
- The date on which the record was last modified.
-
withLastModifiedDate
public Record withLastModifiedDate(Date lastModifiedDate)
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
public void setLastModifiedBy(String lastModifiedBy)
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
public String 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
public Record withLastModifiedBy(String lastModifiedBy)
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
public void setDeviceLastModifiedDate(Date deviceLastModifiedDate)
The last modified date of the client device.- Parameters:
deviceLastModifiedDate
- The last modified date of the client device.
-
getDeviceLastModifiedDate
public Date getDeviceLastModifiedDate()
The last modified date of the client device.- Returns:
- The last modified date of the client device.
-
withDeviceLastModifiedDate
public Record withDeviceLastModifiedDate(Date deviceLastModifiedDate)
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
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-