/* * 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-idp-2016-04-18.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.CognitoIdentityProvider.Model { /// /// Responds to the authentication challenge, as an administrator. /// public partial class AdminRespondToAuthChallengeResponse : AmazonWebServiceResponse { private AuthenticationResultType _authenticationResult; private ChallengeNameType _challengeName; private Dictionary _challengeParameters = new Dictionary(); private string _session; /// /// Gets and sets the property AuthenticationResult. /// /// The result returned by the server in response to the authentication request. /// /// public AuthenticationResultType AuthenticationResult { get { return this._authenticationResult; } set { this._authenticationResult = value; } } // Check to see if AuthenticationResult property is set internal bool IsSetAuthenticationResult() { return this._authenticationResult != null; } /// /// Gets and sets the property ChallengeName. /// /// The name of the challenge. For more information, see AdminInitiateAuth. /// /// public ChallengeNameType ChallengeName { get { return this._challengeName; } set { this._challengeName = value; } } // Check to see if ChallengeName property is set internal bool IsSetChallengeName() { return this._challengeName != null; } /// /// Gets and sets the property ChallengeParameters. /// /// The challenge parameters. For more information, see AdminInitiateAuth. /// /// public Dictionary ChallengeParameters { get { return this._challengeParameters; } set { this._challengeParameters = value; } } // Check to see if ChallengeParameters property is set internal bool IsSetChallengeParameters() { return this._challengeParameters != null && this._challengeParameters.Count > 0; } /// /// Gets and sets the property Session. /// /// The session that should be passed both ways in challenge-response calls to the service. /// If the caller must pass another challenge, they return a session with other challenge /// parameters. This session should be passed as it is to the next RespondToAuthChallenge /// API call. /// /// [AWSProperty(Sensitive=true, Min=20, Max=2048)] public string Session { get { return this._session; } set { this._session = value; } } // Check to see if Session property is set internal bool IsSetSession() { return this._session != null; } } }