Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * Copyright 2010-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
   * 
   * Licensed under the Apache License, Version 2.0 (the "License").
   * You may not use this file except in compliance with the License.
   * A copy of the License is located at
   * 
   *  http://aws.amazon.com/apache2.0
   * 
  * or in the "license" file accompanying this file. This file is distributed
  * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
  * express or implied. See the License for the specific language governing
  * permissions and limitations under the License.
  */
 package com.amazonaws.services.cognitoidentity.model;
 
 
Container for the parameters to the UnlinkDeveloperIdentity operation.

Unlinks a DeveloperUserIdentifier from an existing identity. Unlinked developer users will be considered new identities next time they are seen. If, for a given Cognito identity, you remove all federated identities as well as the developer user identifier, the Cognito identity becomes inaccessible.

 
 public class UnlinkDeveloperIdentityRequest extends AmazonWebServiceRequest implements SerializableCloneable {

    
A unique identifier in the format REGION:GUID.

Constraints:
Length: 1 - 50
Pattern: [\w-]+:[0-9a-f-]+

 
     private String identityId;

    
An identity pool ID in the format REGION:GUID.

Constraints:
Length: 1 - 50
Pattern: [\w-]+:[0-9a-f-]+

 
     private String identityPoolId;

    
The "domain" by which Cognito will refer to your users.

Constraints:
Length: 1 - 128
Pattern: [\w._-]+

 
     private String developerProviderName;

    
A unique ID used by your backend authentication process to identify a user.

Constraints:
Length: 1 - 1024
Pattern: [\w.@_-]+

 
     private String developerUserIdentifier;

    
A unique identifier in the format REGION:GUID.

Constraints:
Length: 1 - 50
Pattern: [\w-]+:[0-9a-f-]+

Returns:
A unique identifier in the format REGION:GUID.
 
     public String getIdentityId() {
         return ;
     }
    
    
A unique identifier in the format REGION:GUID.

Constraints:
Length: 1 - 50
Pattern: [\w-]+:[0-9a-f-]+

Parameters:
identityId A unique identifier in the format REGION:GUID.
 
     public void setIdentityId(String identityId) {
         this. = identityId;
     }
    
    
A unique identifier in the format REGION:GUID.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 1 - 50
Pattern: [\w-]+:[0-9a-f-]+

Parameters:
identityId A unique identifier in the format REGION:GUID.
Returns:
A reference to this updated object so that method calls can be chained together.
        this. = identityId;
        return this;
    }

    
An identity pool ID in the format REGION:GUID.

Constraints:
Length: 1 - 50
Pattern: [\w-]+:[0-9a-f-]+

Returns:
An identity pool ID in the format REGION:GUID.
    public String getIdentityPoolId() {
        return ;
    }
    
    
An identity pool ID in the format REGION:GUID.

Constraints:
Length: 1 - 50
Pattern: [\w-]+:[0-9a-f-]+

Parameters:
identityPoolId An identity pool ID in the format REGION:GUID.
    public void setIdentityPoolId(String identityPoolId) {
        this. = identityPoolId;
    }
    
    
An identity pool ID in the format REGION:GUID.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 1 - 50
Pattern: [\w-]+:[0-9a-f-]+

Parameters:
identityPoolId An identity pool ID in the format REGION:GUID.
Returns:
A reference to this updated object so that method calls can be chained together.
    public UnlinkDeveloperIdentityRequest withIdentityPoolId(String identityPoolId) {
        this. = identityPoolId;
        return this;
    }

    
The "domain" by which Cognito will refer to your users.

Constraints:
Length: 1 - 128
Pattern: [\w._-]+

Returns:
The "domain" by which Cognito will refer to your users.
    public String getDeveloperProviderName() {
        return ;
    }
    
    
The "domain" by which Cognito will refer to your users.

Constraints:
Length: 1 - 128
Pattern: [\w._-]+

Parameters:
developerProviderName The "domain" by which Cognito will refer to your users.
    public void setDeveloperProviderName(String developerProviderName) {
        this. = developerProviderName;
    }
    
    
The "domain" by which Cognito will refer to your users.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 1 - 128
Pattern: [\w._-]+

Parameters:
developerProviderName The "domain" by which Cognito will refer to your users.
Returns:
A reference to this updated object so that method calls can be chained together.
    public UnlinkDeveloperIdentityRequest withDeveloperProviderName(String developerProviderName) {
        this. = developerProviderName;
        return this;
    }

    
A unique ID used by your backend authentication process to identify a user.

Constraints:
Length: 1 - 1024
Pattern: [\w.@_-]+

Returns:
A unique ID used by your backend authentication process to identify a user.
        return ;
    }
    
    
A unique ID used by your backend authentication process to identify a user.

Constraints:
Length: 1 - 1024
Pattern: [\w.@_-]+

Parameters:
developerUserIdentifier A unique ID used by your backend authentication process to identify a user.
    public void setDeveloperUserIdentifier(String developerUserIdentifier) {
        this. = developerUserIdentifier;
    }
    
    
A unique ID used by your backend authentication process to identify a user.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 1 - 1024
Pattern: [\w.@_-]+

Parameters:
developerUserIdentifier A unique ID used by your backend authentication process to identify a user.
Returns:
A reference to this updated object so that method calls can be chained together.
    public UnlinkDeveloperIdentityRequest withDeveloperUserIdentifier(String developerUserIdentifier) {
        this. = developerUserIdentifier;
        return this;
    }

    
Returns a string representation of this object; useful for testing and debugging.

Returns:
A string representation of this object.
See also:
java.lang.Object.toString()
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("{");
        if (getIdentityId() != nullsb.append("IdentityId: " + getIdentityId() + ",");
        if (getIdentityPoolId() != nullsb.append("IdentityPoolId: " + getIdentityPoolId() + ",");
        if (getDeveloperProviderName() != nullsb.append("DeveloperProviderName: " + getDeveloperProviderName() + ",");
        if (getDeveloperUserIdentifier() != nullsb.append("DeveloperUserIdentifier: " + getDeveloperUserIdentifier() );
        sb.append("}");
        return sb.toString();
    }
    
    @Override
    public int hashCode() {
        final int prime = 31;
        int hashCode = 1;
        
        hashCode = prime * hashCode + ((getIdentityId() == null) ? 0 : getIdentityId().hashCode()); 
        hashCode = prime * hashCode + ((getIdentityPoolId() == null) ? 0 : getIdentityPoolId().hashCode()); 
        hashCode = prime * hashCode + ((getDeveloperProviderName() == null) ? 0 : getDeveloperProviderName().hashCode()); 
        hashCode = prime * hashCode + ((getDeveloperUserIdentifier() == null) ? 0 : getDeveloperUserIdentifier().hashCode()); 
        return hashCode;
    }
    
    @Override
    public boolean equals(Object obj) {
        if (this == objreturn true;
        if (obj == nullreturn false;
        if (obj instanceof UnlinkDeveloperIdentityRequest == falsereturn false;
        
        if (other.getIdentityId() == null ^ this.getIdentityId() == nullreturn false;
        if (other.getIdentityId() != null && other.getIdentityId().equals(this.getIdentityId()) == falsereturn false
        if (other.getIdentityPoolId() == null ^ this.getIdentityPoolId() == nullreturn false;
        if (other.getIdentityPoolId() != null && other.getIdentityPoolId().equals(this.getIdentityPoolId()) == falsereturn false
        if (other.getDeveloperProviderName() == null ^ this.getDeveloperProviderName() == nullreturn false;
        if (other.getDeveloperProviderName() != null && other.getDeveloperProviderName().equals(this.getDeveloperProviderName()) == falsereturn false
        if (other.getDeveloperUserIdentifier() == null ^ this.getDeveloperUserIdentifier() == nullreturn false;
        if (other.getDeveloperUserIdentifier() != null && other.getDeveloperUserIdentifier().equals(this.getDeveloperUserIdentifier()) == falsereturn false
        return true;
    }
    
    @Override
        
            return (UnlinkDeveloperIdentityRequestsuper.clone();
    }
}
    
New to GrepCode? Check out our FAQ X