/*
* 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 iot-2015-05-28.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.IoT.Model
{
///
/// This is the response object from the TestInvokeAuthorizer operation.
///
public partial class TestInvokeAuthorizerResponse : AmazonWebServiceResponse
{
private int? _disconnectAfterInSeconds;
private bool? _isAuthenticated;
private List _policyDocuments = new List();
private string _principalId;
private int? _refreshAfterInSeconds;
///
/// Gets and sets the property DisconnectAfterInSeconds.
///
/// The number of seconds after which the connection is terminated.
///
///
public int DisconnectAfterInSeconds
{
get { return this._disconnectAfterInSeconds.GetValueOrDefault(); }
set { this._disconnectAfterInSeconds = value; }
}
// Check to see if DisconnectAfterInSeconds property is set
internal bool IsSetDisconnectAfterInSeconds()
{
return this._disconnectAfterInSeconds.HasValue;
}
///
/// Gets and sets the property IsAuthenticated.
///
/// True if the token is authenticated, otherwise false.
///
///
public bool IsAuthenticated
{
get { return this._isAuthenticated.GetValueOrDefault(); }
set { this._isAuthenticated = value; }
}
// Check to see if IsAuthenticated property is set
internal bool IsSetIsAuthenticated()
{
return this._isAuthenticated.HasValue;
}
///
/// Gets and sets the property PolicyDocuments.
///
/// IAM policy documents.
///
///
public List PolicyDocuments
{
get { return this._policyDocuments; }
set { this._policyDocuments = value; }
}
// Check to see if PolicyDocuments property is set
internal bool IsSetPolicyDocuments()
{
return this._policyDocuments != null && this._policyDocuments.Count > 0;
}
///
/// Gets and sets the property PrincipalId.
///
/// The principal ID.
///
///
[AWSProperty(Min=1, Max=128)]
public string PrincipalId
{
get { return this._principalId; }
set { this._principalId = value; }
}
// Check to see if PrincipalId property is set
internal bool IsSetPrincipalId()
{
return this._principalId != null;
}
///
/// Gets and sets the property RefreshAfterInSeconds.
///
/// The number of seconds after which the temporary credentials are refreshed.
///
///
public int RefreshAfterInSeconds
{
get { return this._refreshAfterInSeconds.GetValueOrDefault(); }
set { this._refreshAfterInSeconds = value; }
}
// Check to see if RefreshAfterInSeconds property is set
internal bool IsSetRefreshAfterInSeconds()
{
return this._refreshAfterInSeconds.HasValue;
}
}
}