/*
* Copyright 2010-2014 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.
*/
/*
* Do not modify this file. This file is generated from the cognito-identity-2014-06-30.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CognitoIdentity.Model
{
///
/// Container for the parameters to the GetId operation.
/// Generates (or retrieves) a Cognito ID. Supplying multiple logins will create an implicit
/// linked account.
///
///
///
/// This is a public API. You do not need any credentials to call this API.
///
///
public partial class GetIdRequest : AmazonCognitoIdentityRequest
{
private string _accountId;
private string _identityPoolId;
private Dictionary _logins = new Dictionary();
///
/// Gets and sets the property AccountId.
///
/// A standard AWS account ID (9+ digits).
///
///
[AWSProperty(Min=1, Max=15)]
public string AccountId
{
get { return this._accountId; }
set { this._accountId = value; }
}
// Check to see if AccountId property is set
internal bool IsSetAccountId()
{
return this._accountId != null;
}
///
/// Gets and sets the property IdentityPoolId.
///
/// An identity pool ID in the format REGION:GUID.
///
///
[AWSProperty(Required=true, Min=1, Max=55)]
public string IdentityPoolId
{
get { return this._identityPoolId; }
set { this._identityPoolId = value; }
}
// Check to see if IdentityPoolId property is set
internal bool IsSetIdentityPoolId()
{
return this._identityPoolId != null;
}
///
/// Gets and sets the property Logins.
///
/// A set of optional name-value pairs that map provider names to provider tokens. The
/// available provider names for Logins
are as follows:
///
/// -
///
/// Facebook:
graph.facebook.com
///
/// -
///
/// Amazon Cognito user pool:
cognito-idp.<region>.amazonaws.com/<YOUR_USER_POOL_ID>
,
/// for example, cognito-idp.us-east-1.amazonaws.com/us-east-1_123456789
.
///
///
/// -
///
/// Google:
accounts.google.com
///
/// -
///
/// Amazon:
www.amazon.com
///
/// -
///
/// Twitter:
api.twitter.com
///
/// -
///
/// Digits:
www.digits.com
///
///
///
[AWSProperty(Max=10)]
public Dictionary Logins
{
get { return this._logins; }
set { this._logins = value; }
}
// Check to see if Logins property is set
internal bool IsSetLogins()
{
return this._logins != null && this._logins.Count > 0;
}
}
}