/* * 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 { /// /// Returned in response to a successful GetIdentityPoolRoles operation. /// public partial class GetIdentityPoolRolesResponse : AmazonWebServiceResponse { private string _identityPoolId; private Dictionary _roleMappings = new Dictionary(); private Dictionary _roles = new Dictionary(); /// /// Gets and sets the property IdentityPoolId. /// /// An identity pool ID in the format REGION:GUID. /// /// [AWSProperty(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 RoleMappings. /// /// How users for a specific identity provider are to mapped to roles. This is a String-to-RoleMapping /// object map. The string identifies the identity provider, for example, "graph.facebook.com" /// or "cognito-idp.us-east-1.amazonaws.com/us-east-1_abcdefghi:app_client_id". /// /// [AWSProperty(Max=10)] public Dictionary RoleMappings { get { return this._roleMappings; } set { this._roleMappings = value; } } // Check to see if RoleMappings property is set internal bool IsSetRoleMappings() { return this._roleMappings != null && this._roleMappings.Count > 0; } /// /// Gets and sets the property Roles. /// /// The map of roles associated with this pool. Currently only authenticated and unauthenticated /// roles are supported. /// /// [AWSProperty(Max=2)] public Dictionary Roles { get { return this._roles; } set { this._roles = value; } } // Check to see if Roles property is set internal bool IsSetRoles() { return this._roles != null && this._roles.Count > 0; } } }