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 Recordclone()booleanequals(Object obj)DategetDeviceLastModifiedDate()The last modified date of the client device.StringgetKey()The key for the record.StringgetLastModifiedBy()The user/device that made the last change to this record.DategetLastModifiedDate()The date on which the record was last modified.LonggetSyncCount()The server sync count for this record.StringgetValue()The value for the record.inthashCode()voidsetDeviceLastModifiedDate(Date deviceLastModifiedDate)The last modified date of the client device.voidsetKey(String key)The key for the record.voidsetLastModifiedBy(String lastModifiedBy)The user/device that made the last change to this record.voidsetLastModifiedDate(Date lastModifiedDate)The date on which the record was last modified.voidsetSyncCount(Long syncCount)The server sync count for this record.voidsetValue(String value)The value for the record.StringtoString()Returns a string representation of this object; useful for testing and debugging.RecordwithDeviceLastModifiedDate(Date deviceLastModifiedDate)The last modified date of the client device.RecordwithKey(String key)The key for the record.RecordwithLastModifiedBy(String lastModifiedBy)The user/device that made the last change to this record.RecordwithLastModifiedDate(Date lastModifiedDate)The date on which the record was last modified.RecordwithSyncCount(Long syncCount)The server sync count for this record.RecordwithValue(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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-