/* * Copyright 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 System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CognitoIdentity.Model { /// /// Container for the parameters to the MergeDeveloperIdentities operation. /// Merges two users having different IdentityIds, existing in the same identity /// pool, and identified by the same developer provider. You can use this action to request /// that discrete users be merged and identified as a single user in the Cognito environment. /// Cognito associates the given source user (SourceUserIdentifier) with /// the IdentityId of the DestinationUserIdentifier. Only developer-authenticated /// users can be merged. If the users to be merged are associated with the same public /// provider, but as two different users, an exception will be thrown. /// /// /// /// The number of linked logins is limited to 20. So, the number of linked logins for /// the source user, SourceUserIdentifier, and the destination user, DestinationUserIdentifier, /// together should not be larger than 20. Otherwise, an exception will be thrown. /// /// /// /// You must use AWS Developer credentials to call this API. /// /// public partial class MergeDeveloperIdentitiesRequest : AmazonCognitoIdentityRequest { private string _destinationUserIdentifier; private string _developerProviderName; private string _identityPoolId; private string _sourceUserIdentifier; /// /// Gets and sets the property DestinationUserIdentifier. /// /// User identifier for the destination user. The value should be a DeveloperUserIdentifier. /// /// [AWSProperty(Required=true, Min=1, Max=1024)] public string DestinationUserIdentifier { get { return this._destinationUserIdentifier; } set { this._destinationUserIdentifier = value; } } // Check to see if DestinationUserIdentifier property is set internal bool IsSetDestinationUserIdentifier() { return this._destinationUserIdentifier != null; } /// /// Gets and sets the property DeveloperProviderName. /// /// The "domain" by which Cognito will refer to your users. This is a (pseudo) domain /// name that you provide while creating an identity pool. This name acts as a placeholder /// that allows your backend and the Cognito service to communicate about the developer /// provider. For the DeveloperProviderName, you can use letters as well /// as period (.), underscore (_), and dash (-). /// /// [AWSProperty(Required=true, Min=1, Max=128)] public string DeveloperProviderName { get { return this._developerProviderName; } set { this._developerProviderName = value; } } // Check to see if DeveloperProviderName property is set internal bool IsSetDeveloperProviderName() { return this._developerProviderName != 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 SourceUserIdentifier. /// /// User identifier for the source user. The value should be a DeveloperUserIdentifier. /// /// [AWSProperty(Required=true, Min=1, Max=1024)] public string SourceUserIdentifier { get { return this._sourceUserIdentifier; } set { this._sourceUserIdentifier = value; } } // Check to see if SourceUserIdentifier property is set internal bool IsSetSourceUserIdentifier() { return this._sourceUserIdentifier != null; } } }