/* * 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 GetOpenIdToken action. *
* * @see AWS * API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class GetOpenIdTokenRequest 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. When using graph.facebook.com and
* www.amazon.com, supply the access_token returned from the provider's authflow. For accounts.google.com, an Amazon
* Cognito user pool provider, or any other OpenID Connect provider, always include the id_token
.
*
* 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 GetOpenIdTokenRequest withIdentityId(String identityId) { setIdentityId(identityId); return this; } /** *
* A set of optional name-value pairs that map provider names to provider tokens. When using graph.facebook.com and
* www.amazon.com, supply the access_token returned from the provider's authflow. For accounts.google.com, an Amazon
* Cognito user pool provider, or any other OpenID Connect provider, always include the id_token
.
*
id_token
.
*/
public java.util.Map
* A set of optional name-value pairs that map provider names to provider tokens. When using graph.facebook.com and
* www.amazon.com, supply the access_token returned from the provider's authflow. For accounts.google.com, an Amazon
* Cognito user pool provider, or any other OpenID Connect provider, always include the id_token
.
*
id_token
.
*/
public void setLogins(java.util.Map
* A set of optional name-value pairs that map provider names to provider tokens. When using graph.facebook.com and
* www.amazon.com, supply the access_token returned from the provider's authflow. For accounts.google.com, an Amazon
* Cognito user pool provider, or any other OpenID Connect provider, always include the id_token
.
*
id_token
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetOpenIdTokenRequest withLogins(java.util.Map