All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.api.ads.dfp.axis.v201605.ProgressRule Maven / Gradle / Ivy

There is a newer version: 5.8.0
Show newest version
/**
 * ProgressRule.java
 *
 * This file was auto-generated from WSDL
 * by the Apache Axis 1.4 Mar 02, 2009 (07:08:06 PST) WSDL2Java emitter.
 */

package com.google.api.ads.dfp.axis.v201605;


/**
 * Describes a rule in a workflow step.
 */
public class ProgressRule  implements java.io.Serializable {
    /* Pending or completed actions for this rule. */
    private com.google.api.ads.dfp.axis.v201605.ProgressAction[] actions;

    /* The name of this rule. */
    private java.lang.String name;

    /* The status of this rule. */
    private com.google.api.ads.dfp.axis.v201605.WorkflowEvaluationStatus evaluationStatus;

    /* The {@link DateTime} this rule was evaluated. */
    private com.google.api.ads.dfp.axis.v201605.DateTime evaluationTime;

    /* Whether this rule is evaluated by external system. */
    private java.lang.Boolean isExternal;

    public ProgressRule() {
    }

    public ProgressRule(
           com.google.api.ads.dfp.axis.v201605.ProgressAction[] actions,
           java.lang.String name,
           com.google.api.ads.dfp.axis.v201605.WorkflowEvaluationStatus evaluationStatus,
           com.google.api.ads.dfp.axis.v201605.DateTime evaluationTime,
           java.lang.Boolean isExternal) {
           this.actions = actions;
           this.name = name;
           this.evaluationStatus = evaluationStatus;
           this.evaluationTime = evaluationTime;
           this.isExternal = isExternal;
    }


    /**
     * Gets the actions value for this ProgressRule.
     * 
     * @return actions   * Pending or completed actions for this rule.
     */
    public com.google.api.ads.dfp.axis.v201605.ProgressAction[] getActions() {
        return actions;
    }


    /**
     * Sets the actions value for this ProgressRule.
     * 
     * @param actions   * Pending or completed actions for this rule.
     */
    public void setActions(com.google.api.ads.dfp.axis.v201605.ProgressAction[] actions) {
        this.actions = actions;
    }

    public com.google.api.ads.dfp.axis.v201605.ProgressAction getActions(int i) {
        return this.actions[i];
    }

    public void setActions(int i, com.google.api.ads.dfp.axis.v201605.ProgressAction _value) {
        this.actions[i] = _value;
    }


    /**
     * Gets the name value for this ProgressRule.
     * 
     * @return name   * The name of this rule.
     */
    public java.lang.String getName() {
        return name;
    }


    /**
     * Sets the name value for this ProgressRule.
     * 
     * @param name   * The name of this rule.
     */
    public void setName(java.lang.String name) {
        this.name = name;
    }


    /**
     * Gets the evaluationStatus value for this ProgressRule.
     * 
     * @return evaluationStatus   * The status of this rule.
     */
    public com.google.api.ads.dfp.axis.v201605.WorkflowEvaluationStatus getEvaluationStatus() {
        return evaluationStatus;
    }


    /**
     * Sets the evaluationStatus value for this ProgressRule.
     * 
     * @param evaluationStatus   * The status of this rule.
     */
    public void setEvaluationStatus(com.google.api.ads.dfp.axis.v201605.WorkflowEvaluationStatus evaluationStatus) {
        this.evaluationStatus = evaluationStatus;
    }


    /**
     * Gets the evaluationTime value for this ProgressRule.
     * 
     * @return evaluationTime   * The {@link DateTime} this rule was evaluated.
     */
    public com.google.api.ads.dfp.axis.v201605.DateTime getEvaluationTime() {
        return evaluationTime;
    }


    /**
     * Sets the evaluationTime value for this ProgressRule.
     * 
     * @param evaluationTime   * The {@link DateTime} this rule was evaluated.
     */
    public void setEvaluationTime(com.google.api.ads.dfp.axis.v201605.DateTime evaluationTime) {
        this.evaluationTime = evaluationTime;
    }


    /**
     * Gets the isExternal value for this ProgressRule.
     * 
     * @return isExternal   * Whether this rule is evaluated by external system.
     */
    public java.lang.Boolean getIsExternal() {
        return isExternal;
    }


    /**
     * Sets the isExternal value for this ProgressRule.
     * 
     * @param isExternal   * Whether this rule is evaluated by external system.
     */
    public void setIsExternal(java.lang.Boolean isExternal) {
        this.isExternal = isExternal;
    }

    private java.lang.Object __equalsCalc = null;
    public synchronized boolean equals(java.lang.Object obj) {
        if (!(obj instanceof ProgressRule)) return false;
        ProgressRule other = (ProgressRule) obj;
        if (obj == null) return false;
        if (this == obj) return true;
        if (__equalsCalc != null) {
            return (__equalsCalc == obj);
        }
        __equalsCalc = obj;
        boolean _equals;
        _equals = true && 
            ((this.actions==null && other.getActions()==null) || 
             (this.actions!=null &&
              java.util.Arrays.equals(this.actions, other.getActions()))) &&
            ((this.name==null && other.getName()==null) || 
             (this.name!=null &&
              this.name.equals(other.getName()))) &&
            ((this.evaluationStatus==null && other.getEvaluationStatus()==null) || 
             (this.evaluationStatus!=null &&
              this.evaluationStatus.equals(other.getEvaluationStatus()))) &&
            ((this.evaluationTime==null && other.getEvaluationTime()==null) || 
             (this.evaluationTime!=null &&
              this.evaluationTime.equals(other.getEvaluationTime()))) &&
            ((this.isExternal==null && other.getIsExternal()==null) || 
             (this.isExternal!=null &&
              this.isExternal.equals(other.getIsExternal())));
        __equalsCalc = null;
        return _equals;
    }

    private boolean __hashCodeCalc = false;
    public synchronized int hashCode() {
        if (__hashCodeCalc) {
            return 0;
        }
        __hashCodeCalc = true;
        int _hashCode = 1;
        if (getActions() != null) {
            for (int i=0;
                 i




© 2015 - 2025 Weber Informatics LLC | Privacy Policy