Constructor and Description |
---|
Builder(java.lang.String key)
Construct a builder object for the new
Record with given key. |
Modifier and Type | Method and Description |
---|---|
Record |
build()
Builds a new
Record . |
Record.Builder |
deviceLastModifiedDate(java.util.Date nDeviceLastModifiedDate)
Sets the device last modified date of this
Record . |
Record.Builder |
lastModifiedBy(java.lang.String nLastModifiedBy)
Sets the last modified by of this
Record . |
Record.Builder |
lastModifiedDate(java.util.Date nLastModifiedDate)
Sets the last modified date of this
Record . |
Record.Builder |
modified(boolean nModified)
Sets whether this
Record has local modification. |
Record.Builder |
syncCount(long nSyncCount)
Sets the syncCount of the new
Record . |
Record.Builder |
value(java.lang.String nValue)
Sets the value of the new
Record . |
public Builder(java.lang.String key)
Record
with given key.key
- Non empty String key of the recordpublic Record.Builder value(java.lang.String nValue)
Record
. Default is null, aka
deleted record.nValue
- nullable String value of this recordpublic Record.Builder syncCount(long nSyncCount)
Record
. Default is the current
time.nSyncCount
- non negative long valuepublic Record.Builder lastModifiedDate(java.util.Date nLastModifiedDate)
Record
. Default is the
current time.nLastModifiedDate
- last modified date of this recordpublic Record.Builder lastModifiedBy(java.lang.String nLastModifiedBy)
Record
. Default is empty
string.nLastModifiedBy
- device name or user name that last modified
this record.public Record.Builder deviceLastModifiedDate(java.util.Date nDeviceLastModifiedDate)
Record
. It's the
local date of the device that modified this record. Default is the
current date.nDeviceLastModifiedDate
- device last modified datepublic Record.Builder modified(boolean nModified)
Record
has local modification.nModified
- a flag that indicates whether the record has local
modificationCopyright © 2010 Amazon Web Services, Inc. All Rights Reserved.