public class UnlinkIdentityRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
UnlinkIdentity operation
.
Unlinks a federated identity from an existing account. Unlinked logins will be considered new identities next time they are seen. Removing the last linked login will make this identity inaccessible.
This is a public API. You do not need any credentials to call this API.
NOOP
Constructor and Description |
---|
UnlinkIdentityRequest() |
Modifier and Type | Method and Description |
---|---|
UnlinkIdentityRequest |
addLoginsEntry(String key,
String value)
A set of optional name-value pairs that map provider names to provider
tokens.
|
UnlinkIdentityRequest |
clearLoginsEntries()
Removes all the entries added into Logins.
|
UnlinkIdentityRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
String |
getIdentityId()
A unique identifier in the format REGION:GUID.
|
Map<String,String> |
getLogins()
A set of optional name-value pairs that map provider names to provider
tokens.
|
List<String> |
getLoginsToRemove()
Provider names to unlink from this identity.
|
int |
hashCode() |
void |
setIdentityId(String identityId)
A unique identifier in the format REGION:GUID.
|
void |
setLogins(Map<String,String> logins)
A set of optional name-value pairs that map provider names to provider
tokens.
|
void |
setLoginsToRemove(Collection<String> loginsToRemove)
Provider names to unlink from this identity.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
UnlinkIdentityRequest |
withIdentityId(String identityId)
A unique identifier in the format REGION:GUID.
|
UnlinkIdentityRequest |
withLogins(Map<String,String> logins)
A set of optional name-value pairs that map provider names to provider
tokens.
|
UnlinkIdentityRequest |
withLoginsToRemove(Collection<String> loginsToRemove)
Provider names to unlink from this identity.
|
UnlinkIdentityRequest |
withLoginsToRemove(String... loginsToRemove)
Provider names to unlink from this identity.
|
copyBaseTo, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public String getIdentityId()
Constraints:
Length: 1 - 50
Pattern: [\w-]+:[0-9a-f-]+
public void setIdentityId(String identityId)
Constraints:
Length: 1 - 50
Pattern: [\w-]+:[0-9a-f-]+
identityId
- A unique identifier in the format REGION:GUID.public UnlinkIdentityRequest withIdentityId(String identityId)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 50
Pattern: [\w-]+:[0-9a-f-]+
identityId
- A unique identifier in the format REGION:GUID.public Map<String,String> getLogins()
Constraints:
Length: 0 - 10
public void setLogins(Map<String,String> logins)
Constraints:
Length: 0 - 10
logins
- A set of optional name-value pairs that map provider names to provider
tokens.public UnlinkIdentityRequest withLogins(Map<String,String> logins)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 10
logins
- A set of optional name-value pairs that map provider names to provider
tokens.public UnlinkIdentityRequest addLoginsEntry(String key, String value)
The method adds a new key-value pair into Logins parameter, and returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 10
key
- The key of the entry to be added into Logins.value
- The corresponding value of the entry to be added into Logins.public UnlinkIdentityRequest clearLoginsEntries()
Returns a reference to this object so that method calls can be chained together.
public List<String> getLoginsToRemove()
public void setLoginsToRemove(Collection<String> loginsToRemove)
loginsToRemove
- Provider names to unlink from this identity.public UnlinkIdentityRequest withLoginsToRemove(String... loginsToRemove)
NOTE: This method appends the values to the existing list (if
any). Use setLoginsToRemove(java.util.Collection)
or withLoginsToRemove(java.util.Collection)
if you want to override the
existing values.
Returns a reference to this object so that method calls can be chained together.
loginsToRemove
- Provider names to unlink from this identity.public UnlinkIdentityRequest withLoginsToRemove(Collection<String> loginsToRemove)
Returns a reference to this object so that method calls can be chained together.
loginsToRemove
- Provider names to unlink from this identity.public String toString()
toString
in class Object
Object.toString()
public UnlinkIdentityRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2015. All rights reserved.