/*
* 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 verifiedpermissions-2021-12-01.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.VerifiedPermissions.Model
{
///
/// This is the response object from the IsAuthorized operation.
///
public partial class IsAuthorizedResponse : AmazonWebServiceResponse
{
private Decision _decision;
private List _determiningPolicies = new List();
private List _errors = new List();
///
/// Gets and sets the property Decision.
///
/// An authorization decision that indicates if the authorization request should be allowed
/// or denied.
///
///
[AWSProperty(Required=true)]
public Decision Decision
{
get { return this._decision; }
set { this._decision = value; }
}
// Check to see if Decision property is set
internal bool IsSetDecision()
{
return this._decision != null;
}
///
/// Gets and sets the property DeterminingPolicies.
///
/// The list of determining policies used to make the authorization decision. For example,
/// if there are two matching policies, where one is a forbid and the other is a permit,
/// then the forbid policy will be the determining policy. In the case of multiple matching
/// permit policies then there would be multiple determining policies. In the case that
/// no policies match, and hence the response is DENY, there would be no determining policies.
///
///
[AWSProperty(Required=true)]
public List DeterminingPolicies
{
get { return this._determiningPolicies; }
set { this._determiningPolicies = value; }
}
// Check to see if DeterminingPolicies property is set
internal bool IsSetDeterminingPolicies()
{
return this._determiningPolicies != null && this._determiningPolicies.Count > 0;
}
///
/// Gets and sets the property Errors.
///
/// Errors that occurred while making an authorization decision, for example, a policy
/// references an Entity or entity Attribute that does not exist in the slice.
///
///
[AWSProperty(Required=true)]
public List Errors
{
get { return this._errors; }
set { this._errors = value; }
}
// Check to see if Errors property is set
internal bool IsSetErrors()
{
return this._errors != null && this._errors.Count > 0;
}
}
}