com.amazonaws.mobileconnectors.cognito
Class DatasetMetadata.Builder

java.lang.Object
  extended by com.amazonaws.mobileconnectors.cognito.DatasetMetadata.Builder
Enclosing class:
DatasetMetadata

public static final class DatasetMetadata.Builder
extends java.lang.Object

The builder to construct DatasetMetadata object.


Constructor Summary
DatasetMetadata.Builder(java.lang.String datasetName)
          Constructs a DatasetMetadata.Builder object with initial dataset name.
 
Method Summary
 DatasetMetadata build()
          Builds the DatasetMetadata object.
 DatasetMetadata.Builder creationDate(java.util.Date creationDate)
          Sets the creation date of this dataset.
 DatasetMetadata.Builder lastModifiedBy(java.lang.String lastModifiedBy)
          Sets the device which made the last modification.
 DatasetMetadata.Builder lastModifiedDate(java.util.Date lastModifiedDate)
          Sets the last modified date.
 DatasetMetadata.Builder recordCount(long recordCount)
          Sets the number of records in this dataset.
 DatasetMetadata.Builder storageSizeBytes(long storageSizeBytes)
          Set the storage size in bytes of this dataset.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatasetMetadata.Builder

public DatasetMetadata.Builder(java.lang.String datasetName)
Constructs a DatasetMetadata.Builder object with initial dataset name.

Parameters:
datasetName - name of the dataset to be constructed
Method Detail

creationDate

public DatasetMetadata.Builder creationDate(java.util.Date creationDate)
Sets the creation date of this dataset. Default is 0 (unknown).

Parameters:
creationDate - creation date of this dataset.
Returns:
builder itself

lastModifiedDate

public DatasetMetadata.Builder lastModifiedDate(java.util.Date lastModifiedDate)
Sets the last modified date. Default is current date.

Parameters:
lastModifiedDate - last modified date
Returns:
builder itself.

lastModifiedBy

public DatasetMetadata.Builder lastModifiedBy(java.lang.String lastModifiedBy)
Sets the device which made the last modification. Default is null.

Parameters:
lastModifiedBy - device which made the last modification
Returns:
builder itself

storageSizeBytes

public DatasetMetadata.Builder storageSizeBytes(long storageSizeBytes)
Set the storage size in bytes of this dataset. Default is 0.

Parameters:
storageSizeBytes - storage size in bytes
Returns:
builder itself

recordCount

public DatasetMetadata.Builder recordCount(long recordCount)
Sets the number of records in this dataset. Default is 0.

Parameters:
recordCount - number of records
Returns:
builder itself

build

public DatasetMetadata build()
Builds the DatasetMetadata object.

Returns:
DatasetMetadata object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.