Class IdentityDescription
- java.lang.Object
-
- com.amazonaws.services.cognitoidentity.model.IdentityDescription
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class IdentityDescription extends Object implements Serializable, Cloneable
A description of the identity.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description IdentityDescription()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IdentityDescription
clone()
boolean
equals(Object obj)
Date
getCreationDate()
Date on which the identity was created.String
getIdentityId()
A unique identifier in the format REGION:GUID.Date
getLastModifiedDate()
Date on which the identity was last modified.List<String>
getLogins()
A set of optional name-value pairs that map provider names to provider tokens.int
hashCode()
void
setCreationDate(Date creationDate)
Date on which the identity was created.void
setIdentityId(String identityId)
A unique identifier in the format REGION:GUID.void
setLastModifiedDate(Date lastModifiedDate)
Date on which the identity was last modified.void
setLogins(Collection<String> logins)
A set of optional name-value pairs that map provider names to provider tokens.String
toString()
Returns a string representation of this object; useful for testing and debugging.IdentityDescription
withCreationDate(Date creationDate)
Date on which the identity was created.IdentityDescription
withIdentityId(String identityId)
A unique identifier in the format REGION:GUID.IdentityDescription
withLastModifiedDate(Date lastModifiedDate)
Date on which the identity was last modified.IdentityDescription
withLogins(String... logins)
A set of optional name-value pairs that map provider names to provider tokens.IdentityDescription
withLogins(Collection<String> logins)
A set of optional name-value pairs that map provider names to provider tokens.
-
-
-
Method Detail
-
setIdentityId
public void setIdentityId(String identityId)
A unique identifier in the format REGION:GUID.- Parameters:
identityId
- A unique identifier in the format REGION:GUID.
-
getIdentityId
public String getIdentityId()
A unique identifier in the format REGION:GUID.- Returns:
- A unique identifier in the format REGION:GUID.
-
withIdentityId
public IdentityDescription withIdentityId(String identityId)
A unique identifier in the format REGION:GUID.- Parameters:
identityId
- A unique identifier in the format REGION:GUID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getLogins
public List<String> getLogins()
A set of optional name-value pairs that map provider names to provider tokens.- Returns:
- A set of optional name-value pairs that map provider names to provider tokens.
-
setLogins
public void setLogins(Collection<String> logins)
A set of optional name-value pairs that map provider names to provider tokens.- Parameters:
logins
- A set of optional name-value pairs that map provider names to provider tokens.
-
withLogins
public IdentityDescription withLogins(String... logins)
A set of optional name-value pairs that map provider names to provider tokens.NOTE: This method appends the values to the existing list (if any). Use
setLogins(java.util.Collection)
orwithLogins(java.util.Collection)
if you want to override the existing values.- Parameters:
logins
- A set of optional name-value pairs that map provider names to provider tokens.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withLogins
public IdentityDescription withLogins(Collection<String> logins)
A set of optional name-value pairs that map provider names to provider tokens.- Parameters:
logins
- A set of optional name-value pairs that map provider names to provider tokens.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setCreationDate
public void setCreationDate(Date creationDate)
Date on which the identity was created.
- Parameters:
creationDate
- Date on which the identity was created.
-
getCreationDate
public Date getCreationDate()
Date on which the identity was created.
- Returns:
- Date on which the identity was created.
-
withCreationDate
public IdentityDescription withCreationDate(Date creationDate)
Date on which the identity was created.
- Parameters:
creationDate
- Date on which the identity was created.- 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 IdentityDescription 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.
-
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 IdentityDescription clone()
-
-