/*
* 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
{
///
/// Container for the parameters to the RevokeToken operation.
/// Revokes all of the access tokens generated by, and at the same time as, the specified
/// refresh token. After a token is revoked, you can't use the revoked token to access
/// Amazon Cognito user APIs, or to authorize access to your resource server.
///
public partial class RevokeTokenRequest : AmazonCognitoIdentityProviderRequest
{
private string _clientId;
private string _clientSecret;
private string _token;
///
/// Gets and sets the property ClientId.
///
/// The client ID for the token that you want to revoke.
///
///
[AWSProperty(Required=true, Sensitive=true, Min=1, Max=128)]
public string ClientId
{
get { return this._clientId; }
set { this._clientId = value; }
}
// Check to see if ClientId property is set
internal bool IsSetClientId()
{
return this._clientId != null;
}
///
/// Gets and sets the property ClientSecret.
///
/// The secret for the client ID. This is required only if the client ID has a secret.
///
///
[AWSProperty(Sensitive=true, Min=1, Max=64)]
public string ClientSecret
{
get { return this._clientSecret; }
set { this._clientSecret = value; }
}
// Check to see if ClientSecret property is set
internal bool IsSetClientSecret()
{
return this._clientSecret != null;
}
///
/// Gets and sets the property Token.
///
/// The refresh token that you want to revoke.
///
///
[AWSProperty(Required=true, Sensitive=true)]
public string Token
{
get { return this._token; }
set { this._token = value; }
}
// Check to see if Token property is set
internal bool IsSetToken()
{
return this._token != null;
}
}
}