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.Builderbuilder()final InstantDate on which the dataset was created.final StringA string of up to 128 characters.final LongTotal size in bytes of the records in this dataset.final booleanfinal booleanequalsBySdkFields(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 inthashCode()final StringA name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito.final StringThe device that made the last change to this dataset.final InstantDate when the dataset was last modified.final LongNumber 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 StringtoString()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:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<Dataset.Builder,Dataset> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin 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
-