Class IdentityUsage
- java.lang.Object
-
- com.amazonaws.services.cognitosync.model.IdentityUsage
-
- All Implemented Interfaces:
Serializable,Cloneable
public class IdentityUsage extends Object implements Serializable, Cloneable
Usage information for the identity.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description IdentityUsage()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IdentityUsageclone()booleanequals(Object obj)IntegergetDatasetCount()Number of datasets for the identity.LonggetDataStorage()Total data storage for this identity.StringgetIdentityId()A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito.StringgetIdentityPoolId()A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito.DategetLastModifiedDate()Date on which the identity was last modified.inthashCode()voidsetDatasetCount(Integer datasetCount)Number of datasets for the identity.voidsetDataStorage(Long dataStorage)Total data storage for this identity.voidsetIdentityId(String identityId)A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito.voidsetIdentityPoolId(String identityPoolId)A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito.voidsetLastModifiedDate(Date lastModifiedDate)Date on which the identity was last modified.StringtoString()Returns a string representation of this object; useful for testing and debugging.IdentityUsagewithDatasetCount(Integer datasetCount)Number of datasets for the identity.IdentityUsagewithDataStorage(Long dataStorage)Total data storage for this identity.IdentityUsagewithIdentityId(String identityId)A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito.IdentityUsagewithIdentityPoolId(String identityPoolId)A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito.IdentityUsagewithLastModifiedDate(Date lastModifiedDate)Date on which the identity was last modified.
-
-
-
Method Detail
-
setIdentityId
public void setIdentityId(String 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.- 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
public String 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
public IdentityUsage withIdentityId(String 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.- 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.
-
setIdentityPoolId
public void setIdentityPoolId(String identityPoolId)
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:
identityPoolId- 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.
-
getIdentityPoolId
public String getIdentityPoolId()
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.
-
withIdentityPoolId
public IdentityUsage withIdentityPoolId(String identityPoolId)
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:
identityPoolId- 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.
-
setLastModifiedDate
public void setLastModifiedDate(Date lastModifiedDate)
Date on which the identity was last modified.- Parameters:
lastModifiedDate- Date on which the identity was last modified.
-
getLastModifiedDate
public Date getLastModifiedDate()
Date on which the identity was last modified.- Returns:
- Date on which the identity was last modified.
-
withLastModifiedDate
public IdentityUsage withLastModifiedDate(Date lastModifiedDate)
Date on which the identity was last modified.- Parameters:
lastModifiedDate- Date on which the identity was last modified.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDatasetCount
public void setDatasetCount(Integer datasetCount)
Number of datasets for the identity.- Parameters:
datasetCount- Number of datasets for the identity.
-
getDatasetCount
public Integer getDatasetCount()
Number of datasets for the identity.- Returns:
- Number of datasets for the identity.
-
withDatasetCount
public IdentityUsage withDatasetCount(Integer datasetCount)
Number of datasets for the identity.- Parameters:
datasetCount- Number of datasets for the identity.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDataStorage
public void setDataStorage(Long dataStorage)
Total data storage for this identity.- Parameters:
dataStorage- Total data storage for this identity.
-
getDataStorage
public Long getDataStorage()
Total data storage for this identity.- Returns:
- Total data storage for this identity.
-
withDataStorage
public IdentityUsage withDataStorage(Long dataStorage)
Total data storage for this identity.- Parameters:
dataStorage- Total data storage for this identity.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public IdentityUsage clone()
-
-