/* * 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 sso-oidc-2019-06-10.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.SSOOIDC.Model { /// /// This is the response object from the CreateToken operation. /// public partial class CreateTokenResponse : AmazonWebServiceResponse { private string _accessToken; private int? _expiresIn; private string _idToken; private string _refreshToken; private string _tokenType; /// /// Gets and sets the property AccessToken. /// /// An opaque token to access IAM Identity Center resources assigned to a user. /// /// public string AccessToken { get { return this._accessToken; } set { this._accessToken = value; } } // Check to see if AccessToken property is set internal bool IsSetAccessToken() { return this._accessToken != null; } /// /// Gets and sets the property ExpiresIn. /// /// Indicates the time in seconds when an access token will expire. /// /// public int ExpiresIn { get { return this._expiresIn.GetValueOrDefault(); } set { this._expiresIn = value; } } // Check to see if ExpiresIn property is set internal bool IsSetExpiresIn() { return this._expiresIn.HasValue; } /// /// Gets and sets the property IdToken. /// /// Currently, idToken is not yet implemented and is not supported. For more /// information about the features and limitations of the current IAM Identity Center /// OIDC implementation, see Considerations for Using this Guide in the IAM /// Identity Center OIDC API Reference. /// /// /// /// The identifier of the user that associated with the access token, if present. /// /// public string IdToken { get { return this._idToken; } set { this._idToken = value; } } // Check to see if IdToken property is set internal bool IsSetIdToken() { return this._idToken != null; } /// /// Gets and sets the property RefreshToken. /// /// Currently, refreshToken is not yet implemented and is not supported. /// For more information about the features and limitations of the current IAM Identity /// Center OIDC implementation, see Considerations for Using this Guide in the /// IAM /// Identity Center OIDC API Reference. /// /// /// /// A token that, if present, can be used to refresh a previously issued access token /// that might have expired. /// /// public string RefreshToken { get { return this._refreshToken; } set { this._refreshToken = value; } } // Check to see if RefreshToken property is set internal bool IsSetRefreshToken() { return this._refreshToken != null; } /// /// Gets and sets the property TokenType. /// /// Used to notify the client that the returned token is an access token. The supported /// type is BearerToken. /// /// public string TokenType { get { return this._tokenType; } set { this._tokenType = value; } } // Check to see if TokenType property is set internal bool IsSetTokenType() { return this._tokenType != null; } } }