|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Objectcom.amazonaws.mobileconnectors.cognito.Record.Builder
public static final class Record.Builder
A Builder class that helps build an immutable Record object.
| Constructor Summary | |
|---|---|
Record.Builder(java.lang.String key)
Construct a builder object for the new Record with given key. |
|
| Method Summary | |
|---|---|
Record |
build()
Builds a new Record. |
Record.Builder |
deviceLastModifiedDate(java.util.Date deviceLastModifiedDate)
Sets the device last modified date of this Record. |
Record.Builder |
lastModifiedBy(java.lang.String lastModifiedBy)
Sets the last modified by of this Record. |
Record.Builder |
lastModifiedDate(java.util.Date lastModifiedDate)
Sets the last modified date of this Record. |
Record.Builder |
modified(boolean modified)
Sets whether this Record has local modification. |
Record.Builder |
syncCount(long syncCount)
Sets the syncCount of the new Record. |
Record.Builder |
value(java.lang.String value)
Sets the value of the new Record. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Record.Builder(java.lang.String key)
Record with given key.
key - Non empty String key of the record| Method Detail |
|---|
public Record.Builder value(java.lang.String value)
Record. Default is null, aka
deleted record.
value - nullable String value of this record
public Record.Builder syncCount(long syncCount)
Record. Default is the current
time.
syncCount - non negative long value
public Record.Builder lastModifiedDate(java.util.Date lastModifiedDate)
Record. Default is the
current time.
lastModifiedDate - last modified date of this record
public Record.Builder lastModifiedBy(java.lang.String lastModifiedBy)
Record. Default is empty
string.
lastModifiedBy - device name or user name that last modified
this record.
public Record.Builder deviceLastModifiedDate(java.util.Date deviceLastModifiedDate)
Record. It's the
local date of the device that modified this record. Default is the
current date.
deviceLastModifiedDate - device last modified date
public Record.Builder modified(boolean modified)
Record has local modification.
modified - a flag that indicates whether the record has local
modification
public Record build()
Record.
Record object
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||