Class Dataset
java.lang.Object
com.amazonaws.services.cognitosync.model.Dataset
- All Implemented Interfaces:
Serializable
,Cloneable
A collection of data for an identity pool. An identity pool can have multiple
datasets. A dataset is per identity and can be general or associated with a
particular entity in an application (like a saved game). Datasets are
automatically created if they don't exist. Data is synced by dataset, and a
dataset can hold up to 1MB of key-value pairs.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
Date on which the dataset was created.A string of up to 128 characters.Total size in bytes of the records in this dataset.A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito.The device that made the last change to this dataset.Date when the dataset was last modified.Number of records in this dataset.int
hashCode()
void
setCreationDate
(Date creationDate) Date on which the dataset was created.void
setDatasetName
(String datasetName) A string of up to 128 characters.void
setDataStorage
(Long dataStorage) Total size in bytes of the records in this dataset.void
setIdentityId
(String identityId) A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito.void
setLastModifiedBy
(String lastModifiedBy) The device that made the last change to this dataset.void
setLastModifiedDate
(Date lastModifiedDate) Date when the dataset was last modified.void
setNumRecords
(Long numRecords) Number of records in this dataset.toString()
Returns a string representation of this object; useful for testing and debugging.withCreationDate
(Date creationDate) Date on which the dataset was created.withDatasetName
(String datasetName) A string of up to 128 characters.withDataStorage
(Long dataStorage) Total size in bytes of the records in this dataset.withIdentityId
(String identityId) A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito.withLastModifiedBy
(String lastModifiedBy) The device that made the last change to this dataset.withLastModifiedDate
(Date lastModifiedDate) Date when the dataset was last modified.withNumRecords
(Long numRecords) Number of records in this dataset.
-
Constructor Details
-
Dataset
public Dataset()
-
-
Method Details
-
setIdentityId
A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. GUID generation is unique within a region.- Parameters:
identityId
- A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. GUID generation is unique within a region.
-
getIdentityId
A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. GUID generation is unique within a region.- Returns:
- A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. GUID generation is unique within a region.
-
withIdentityId
A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. GUID generation is unique within a region.- Parameters:
identityId
- A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. GUID generation is unique within a region.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDatasetName
A string of up to 128 characters. Allowed characters are a-z, A-Z, 0-9, '_' (underscore), '-' (dash), and '.' (dot).- Parameters:
datasetName
- A string of up to 128 characters. Allowed characters are a-z, A-Z, 0-9, '_' (underscore), '-' (dash), and '.' (dot).
-
getDatasetName
A string of up to 128 characters. Allowed characters are a-z, A-Z, 0-9, '_' (underscore), '-' (dash), and '.' (dot).- Returns:
- A string of up to 128 characters. Allowed characters are a-z, A-Z, 0-9, '_' (underscore), '-' (dash), and '.' (dot).
-
withDatasetName
A string of up to 128 characters. Allowed characters are a-z, A-Z, 0-9, '_' (underscore), '-' (dash), and '.' (dot).- Parameters:
datasetName
- A string of up to 128 characters. Allowed characters are a-z, A-Z, 0-9, '_' (underscore), '-' (dash), and '.' (dot).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setCreationDate
Date on which the dataset was created.- Parameters:
creationDate
- Date on which the dataset was created.
-
getCreationDate
Date on which the dataset was created.- Returns:
- Date on which the dataset was created.
-
withCreationDate
Date on which the dataset was created.- Parameters:
creationDate
- Date on which the dataset was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setLastModifiedDate
Date when the dataset was last modified.- Parameters:
lastModifiedDate
- Date when the dataset was last modified.
-
getLastModifiedDate
Date when the dataset was last modified.- Returns:
- Date when the dataset was last modified.
-
withLastModifiedDate
Date when the dataset was last modified.- Parameters:
lastModifiedDate
- Date when the dataset was last modified.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setLastModifiedBy
The device that made the last change to this dataset.- Parameters:
lastModifiedBy
- The device that made the last change to this dataset.
-
getLastModifiedBy
The device that made the last change to this dataset.- Returns:
- The device that made the last change to this dataset.
-
withLastModifiedBy
The device that made the last change to this dataset.- Parameters:
lastModifiedBy
- The device that made the last change to this dataset.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDataStorage
Total size in bytes of the records in this dataset.- Parameters:
dataStorage
- Total size in bytes of the records in this dataset.
-
getDataStorage
Total size in bytes of the records in this dataset.- Returns:
- Total size in bytes of the records in this dataset.
-
withDataStorage
Total size in bytes of the records in this dataset.- Parameters:
dataStorage
- Total size in bytes of the records in this dataset.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setNumRecords
Number of records in this dataset.- Parameters:
numRecords
- Number of records in this dataset.
-
getNumRecords
Number of records in this dataset.- Returns:
- Number of records in this dataset.
-
withNumRecords
Number of records in this dataset.- Parameters:
numRecords
- Number of records in this dataset.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-