/*
* 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 codecommit-2015-04-13.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.CodeCommit.Model
{
///
/// Returns information about the approval rules applied to a pull request and whether
/// conditions have been met.
///
public partial class Evaluation
{
private List _approvalRulesNotSatisfied = new List();
private List _approvalRulesSatisfied = new List();
private bool? _approved;
private bool? _overridden;
///
/// Gets and sets the property ApprovalRulesNotSatisfied.
///
/// The names of the approval rules that have not had their conditions met.
///
///
public List ApprovalRulesNotSatisfied
{
get { return this._approvalRulesNotSatisfied; }
set { this._approvalRulesNotSatisfied = value; }
}
// Check to see if ApprovalRulesNotSatisfied property is set
internal bool IsSetApprovalRulesNotSatisfied()
{
return this._approvalRulesNotSatisfied != null && this._approvalRulesNotSatisfied.Count > 0;
}
///
/// Gets and sets the property ApprovalRulesSatisfied.
///
/// The names of the approval rules that have had their conditions met.
///
///
public List ApprovalRulesSatisfied
{
get { return this._approvalRulesSatisfied; }
set { this._approvalRulesSatisfied = value; }
}
// Check to see if ApprovalRulesSatisfied property is set
internal bool IsSetApprovalRulesSatisfied()
{
return this._approvalRulesSatisfied != null && this._approvalRulesSatisfied.Count > 0;
}
///
/// Gets and sets the property Approved.
///
/// Whether the state of the pull request is approved.
///
///
public bool Approved
{
get { return this._approved.GetValueOrDefault(); }
set { this._approved = value; }
}
// Check to see if Approved property is set
internal bool IsSetApproved()
{
return this._approved.HasValue;
}
///
/// Gets and sets the property Overridden.
///
/// Whether the approval rule requirements for the pull request have been overridden and
/// no longer need to be met.
///
///
public bool Overridden
{
get { return this._overridden.GetValueOrDefault(); }
set { this._overridden = value; }
}
// Check to see if Overridden property is set
internal bool IsSetOverridden()
{
return this._overridden.HasValue;
}
}
}