/* * Copyright 2018-2023 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. */ package com.amazonaws.services.codecommit.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Returns information about the approval rules applied to a pull request and whether conditions have been met. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class Evaluation implements Serializable, Cloneable, StructuredPojo { /** ** Whether the state of the pull request is approved. *
*/ private Boolean approved; /** ** Whether the approval rule requirements for the pull request have been overridden and no longer need to be met. *
*/ private Boolean overridden; /** ** The names of the approval rules that have had their conditions met. *
*/ private java.util.List* The names of the approval rules that have not had their conditions met. *
*/ private java.util.List* Whether the state of the pull request is approved. *
* * @param approved * Whether the state of the pull request is approved. */ public void setApproved(Boolean approved) { this.approved = approved; } /** ** Whether the state of the pull request is approved. *
* * @return Whether the state of the pull request is approved. */ public Boolean getApproved() { return this.approved; } /** ** Whether the state of the pull request is approved. *
* * @param approved * Whether the state of the pull request is approved. * @return Returns a reference to this object so that method calls can be chained together. */ public Evaluation withApproved(Boolean approved) { setApproved(approved); return this; } /** ** Whether the state of the pull request is approved. *
* * @return Whether the state of the pull request is approved. */ public Boolean isApproved() { return this.approved; } /** ** Whether the approval rule requirements for the pull request have been overridden and no longer need to be met. *
* * @param overridden * Whether the approval rule requirements for the pull request have been overridden and no longer need to be * met. */ public void setOverridden(Boolean overridden) { this.overridden = overridden; } /** ** Whether the approval rule requirements for the pull request have been overridden and no longer need to be met. *
* * @return Whether the approval rule requirements for the pull request have been overridden and no longer need to be * met. */ public Boolean getOverridden() { return this.overridden; } /** ** Whether the approval rule requirements for the pull request have been overridden and no longer need to be met. *
* * @param overridden * Whether the approval rule requirements for the pull request have been overridden and no longer need to be * met. * @return Returns a reference to this object so that method calls can be chained together. */ public Evaluation withOverridden(Boolean overridden) { setOverridden(overridden); return this; } /** ** Whether the approval rule requirements for the pull request have been overridden and no longer need to be met. *
* * @return Whether the approval rule requirements for the pull request have been overridden and no longer need to be * met. */ public Boolean isOverridden() { return this.overridden; } /** ** The names of the approval rules that have had their conditions met. *
* * @return The names of the approval rules that have had their conditions met. */ public java.util.List* The names of the approval rules that have had their conditions met. *
* * @param approvalRulesSatisfied * The names of the approval rules that have had their conditions met. */ public void setApprovalRulesSatisfied(java.util.Collection* The names of the approval rules that have had their conditions met. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setApprovalRulesSatisfied(java.util.Collection)} or * {@link #withApprovalRulesSatisfied(java.util.Collection)} if you want to override the existing values. *
* * @param approvalRulesSatisfied * The names of the approval rules that have had their conditions met. * @return Returns a reference to this object so that method calls can be chained together. */ public Evaluation withApprovalRulesSatisfied(String... approvalRulesSatisfied) { if (this.approvalRulesSatisfied == null) { setApprovalRulesSatisfied(new java.util.ArrayList* The names of the approval rules that have had their conditions met. *
* * @param approvalRulesSatisfied * The names of the approval rules that have had their conditions met. * @return Returns a reference to this object so that method calls can be chained together. */ public Evaluation withApprovalRulesSatisfied(java.util.Collection* The names of the approval rules that have not had their conditions met. *
* * @return The names of the approval rules that have not had their conditions met. */ public java.util.List* The names of the approval rules that have not had their conditions met. *
* * @param approvalRulesNotSatisfied * The names of the approval rules that have not had their conditions met. */ public void setApprovalRulesNotSatisfied(java.util.Collection* The names of the approval rules that have not had their conditions met. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setApprovalRulesNotSatisfied(java.util.Collection)} or * {@link #withApprovalRulesNotSatisfied(java.util.Collection)} if you want to override the existing values. *
* * @param approvalRulesNotSatisfied * The names of the approval rules that have not had their conditions met. * @return Returns a reference to this object so that method calls can be chained together. */ public Evaluation withApprovalRulesNotSatisfied(String... approvalRulesNotSatisfied) { if (this.approvalRulesNotSatisfied == null) { setApprovalRulesNotSatisfied(new java.util.ArrayList* The names of the approval rules that have not had their conditions met. *
* * @param approvalRulesNotSatisfied * The names of the approval rules that have not had their conditions met. * @return Returns a reference to this object so that method calls can be chained together. */ public Evaluation withApprovalRulesNotSatisfied(java.util.Collection