Class Dataset
java.lang.Object
software.amazon.awssdk.services.cognitosync.model.Dataset
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<Dataset.Builder,
Dataset>
@Generated("software.amazon.awssdk:codegen")
public final class Dataset
extends Object
implements SdkPojo, Serializable, ToCopyableBuilder<Dataset.Builder,Dataset>
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:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic Dataset.Builder
builder()
final Instant
Date on which the dataset was created.final String
A string of up to 128 characters.final Long
Total size in bytes of the records in this dataset.final boolean
final boolean
equalsBySdkFields
(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional
<T> getValueForField
(String fieldName, Class<T> clazz) final int
hashCode()
final String
A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito.final String
The device that made the last change to this dataset.final Instant
Date when the dataset was last modified.final Long
Number of records in this dataset.static Class
<? extends Dataset.Builder> Take this object and create a builder that contains all of the current property values of this object.final String
toString()
Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
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:
- 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.
-
datasetName
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).
-
creationDate
Date on which the dataset was created.- Returns:
- Date on which the dataset was created.
-
lastModifiedDate
Date when the dataset was last modified.- Returns:
- Date when the dataset was last modified.
-
lastModifiedBy
The device that made the last change to this dataset.- Returns:
- The device that made the last change to this dataset.
-
dataStorage
Total size in bytes of the records in this dataset.- Returns:
- Total size in bytes of the records in this dataset.
-
numRecords
Number of records in this dataset.- Returns:
- Number of records in this dataset.
-
toBuilder
Description copied from interface:ToCopyableBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToCopyableBuilder<Dataset.Builder,
Dataset> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojo
Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojo
class, and is generated based on a service model.If an
SdkPojo
class does not have any inherited fields,equalsBySdkFields
andequals
are essentially the same.- Specified by:
equalsBySdkFields
in interfaceSdkPojo
- Parameters:
obj
- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-