/* * Copyright 2018-2023 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; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** *
* Input to the UnlinkIdentity action. *
* * @see AWS * API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class UnlinkIdentityRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** ** A unique identifier in the format REGION:GUID. *
*/ private String identityId; /** ** A set of optional name-value pairs that map provider names to provider tokens. *
*/ private java.util.Map* Provider names to unlink from this identity. *
*/ private java.util.List* A unique identifier in the format REGION:GUID. *
* * @param identityId * A unique identifier in the format REGION:GUID. */ public void setIdentityId(String identityId) { this.identityId = identityId; } /** ** A unique identifier in the format REGION:GUID. *
* * @return A unique identifier in the format REGION:GUID. */ public String getIdentityId() { return this.identityId; } /** ** A unique identifier in the format REGION:GUID. *
* * @param identityId * A unique identifier in the format REGION:GUID. * @return Returns a reference to this object so that method calls can be chained together. */ public UnlinkIdentityRequest withIdentityId(String identityId) { setIdentityId(identityId); return this; } /** ** A set of optional name-value pairs that map provider names to provider tokens. *
* * @return A set of optional name-value pairs that map provider names to provider tokens. */ public java.util.Map* A set of optional name-value pairs that map provider names to provider tokens. *
* * @param logins * A set of optional name-value pairs that map provider names to provider tokens. */ public void setLogins(java.util.Map* A set of optional name-value pairs that map provider names to provider tokens. *
* * @param logins * A set of optional name-value pairs that map provider names to provider tokens. * @return Returns a reference to this object so that method calls can be chained together. */ public UnlinkIdentityRequest withLogins(java.util.Map* Provider names to unlink from this identity. *
* * @return Provider names to unlink from this identity. */ public java.util.List* Provider names to unlink from this identity. *
* * @param loginsToRemove * Provider names to unlink from this identity. */ public void setLoginsToRemove(java.util.Collection* Provider names to unlink from this identity. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setLoginsToRemove(java.util.Collection)} or {@link #withLoginsToRemove(java.util.Collection)} if you want * to override the existing values. *
* * @param loginsToRemove * Provider names to unlink from this identity. * @return Returns a reference to this object so that method calls can be chained together. */ public UnlinkIdentityRequest withLoginsToRemove(String... loginsToRemove) { if (this.loginsToRemove == null) { setLoginsToRemove(new java.util.ArrayList* Provider names to unlink from this identity. *
* * @param loginsToRemove * Provider names to unlink from this identity. * @return Returns a reference to this object so that method calls can be chained together. */ public UnlinkIdentityRequest withLoginsToRemove(java.util.Collection