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 IdentityUsage
clone()
boolean
equals(Object obj)
Integer
getDatasetCount()
Number of datasets for the identity.Long
getDataStorage()
Total data storage for this identity.String
getIdentityId()
A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito.String
getIdentityPoolId()
A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito.Date
getLastModifiedDate()
Date on which the identity was last modified.int
hashCode()
void
setDatasetCount(Integer datasetCount)
Number of datasets for the identity.void
setDataStorage(Long dataStorage)
Total data storage for this identity.void
setIdentityId(String identityId)
A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito.void
setIdentityPoolId(String identityPoolId)
A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito.void
setLastModifiedDate(Date lastModifiedDate)
Date on which the identity was last modified.String
toString()
Returns a string representation of this object; useful for testing and debugging.IdentityUsage
withDatasetCount(Integer datasetCount)
Number of datasets for the identity.IdentityUsage
withDataStorage(Long dataStorage)
Total data storage for this identity.IdentityUsage
withIdentityId(String identityId)
A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito.IdentityUsage
withIdentityPoolId(String identityPoolId)
A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito.IdentityUsage
withLastModifiedDate(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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public IdentityUsage clone()
-
-