|
30 | 30 | import java.util.Objects; |
31 | 31 | import java.util.Arrays; |
32 | 32 | import com.aspose.tasks.cloud.model.PrimaveraActivityType; |
| 33 | +import com.aspose.tasks.cloud.model.PrimaveraConstraintType; |
33 | 34 | import com.aspose.tasks.cloud.model.PrimaveraDurationType; |
34 | 35 | import com.aspose.tasks.cloud.model.PrimaveraPercentCompleteType; |
35 | 36 | import com.google.gson.TypeAdapter; |
@@ -142,6 +143,18 @@ public class PrimaveraTaskProperties { |
142 | 143 | @SerializedName("BudgetedExpenseCost") |
143 | 144 | private BigDecimal budgetedExpenseCost = null; |
144 | 145 |
|
| 146 | + @SerializedName("PrimaryConstraintType") |
| 147 | + private PrimaveraConstraintType primaryConstraintType = null; |
| 148 | + |
| 149 | + @SerializedName("PrimaryConstraintDate") |
| 150 | + private OffsetDateTime primaryConstraintDate = null; |
| 151 | + |
| 152 | + @SerializedName("SecondaryConstraintType") |
| 153 | + private PrimaveraConstraintType secondaryConstraintType = null; |
| 154 | + |
| 155 | + @SerializedName("SecondaryConstraintDate") |
| 156 | + private OffsetDateTime secondaryConstraintDate = null; |
| 157 | + |
145 | 158 | public PrimaveraTaskProperties sequenceNumber(Integer sequenceNumber) { |
146 | 159 | this.sequenceNumber = sequenceNumber; |
147 | 160 | return this; |
@@ -700,6 +713,78 @@ public void setBudgetedExpenseCost(BigDecimal budgetedExpenseCost) { |
700 | 713 | this.budgetedExpenseCost = budgetedExpenseCost; |
701 | 714 | } |
702 | 715 |
|
| 716 | + public PrimaveraTaskProperties primaryConstraintType(PrimaveraConstraintType primaryConstraintType) { |
| 717 | + this.primaryConstraintType = primaryConstraintType; |
| 718 | + return this; |
| 719 | + } |
| 720 | + |
| 721 | + /** |
| 722 | + * Gets a type of primary constraint. |
| 723 | + * @return primaryConstraintType |
| 724 | + **/ |
| 725 | + @ApiModelProperty(required = true, value = "Gets a type of primary constraint.") |
| 726 | + public PrimaveraConstraintType getPrimaryConstraintType() { |
| 727 | + return primaryConstraintType; |
| 728 | + } |
| 729 | + |
| 730 | + public void setPrimaryConstraintType(PrimaveraConstraintType primaryConstraintType) { |
| 731 | + this.primaryConstraintType = primaryConstraintType; |
| 732 | + } |
| 733 | + |
| 734 | + public PrimaveraTaskProperties primaryConstraintDate(OffsetDateTime primaryConstraintDate) { |
| 735 | + this.primaryConstraintDate = primaryConstraintDate; |
| 736 | + return this; |
| 737 | + } |
| 738 | + |
| 739 | + /** |
| 740 | + * Gets the date of primary constraint. |
| 741 | + * @return primaryConstraintDate |
| 742 | + **/ |
| 743 | + @ApiModelProperty(required = true, value = "Gets the date of primary constraint.") |
| 744 | + public OffsetDateTime getPrimaryConstraintDate() { |
| 745 | + return primaryConstraintDate; |
| 746 | + } |
| 747 | + |
| 748 | + public void setPrimaryConstraintDate(OffsetDateTime primaryConstraintDate) { |
| 749 | + this.primaryConstraintDate = primaryConstraintDate; |
| 750 | + } |
| 751 | + |
| 752 | + public PrimaveraTaskProperties secondaryConstraintType(PrimaveraConstraintType secondaryConstraintType) { |
| 753 | + this.secondaryConstraintType = secondaryConstraintType; |
| 754 | + return this; |
| 755 | + } |
| 756 | + |
| 757 | + /** |
| 758 | + * Gets a type of secondary constraint. |
| 759 | + * @return secondaryConstraintType |
| 760 | + **/ |
| 761 | + @ApiModelProperty(required = true, value = "Gets a type of secondary constraint.") |
| 762 | + public PrimaveraConstraintType getSecondaryConstraintType() { |
| 763 | + return secondaryConstraintType; |
| 764 | + } |
| 765 | + |
| 766 | + public void setSecondaryConstraintType(PrimaveraConstraintType secondaryConstraintType) { |
| 767 | + this.secondaryConstraintType = secondaryConstraintType; |
| 768 | + } |
| 769 | + |
| 770 | + public PrimaveraTaskProperties secondaryConstraintDate(OffsetDateTime secondaryConstraintDate) { |
| 771 | + this.secondaryConstraintDate = secondaryConstraintDate; |
| 772 | + return this; |
| 773 | + } |
| 774 | + |
| 775 | + /** |
| 776 | + * Gets the date of secondary constraint. |
| 777 | + * @return secondaryConstraintDate |
| 778 | + **/ |
| 779 | + @ApiModelProperty(required = true, value = "Gets the date of secondary constraint.") |
| 780 | + public OffsetDateTime getSecondaryConstraintDate() { |
| 781 | + return secondaryConstraintDate; |
| 782 | + } |
| 783 | + |
| 784 | + public void setSecondaryConstraintDate(OffsetDateTime secondaryConstraintDate) { |
| 785 | + this.secondaryConstraintDate = secondaryConstraintDate; |
| 786 | + } |
| 787 | + |
703 | 788 |
|
704 | 789 | @Override |
705 | 790 | public boolean equals(java.lang.Object o) { |
@@ -740,12 +825,16 @@ public boolean equals(java.lang.Object o) { |
740 | 825 | Objects.equals(this.budgetedLaborCost, primaveraTaskProperties.budgetedLaborCost) && |
741 | 826 | Objects.equals(this.budgetedNonlaborCost, primaveraTaskProperties.budgetedNonlaborCost) && |
742 | 827 | Objects.equals(this.budgetedMaterialCost, primaveraTaskProperties.budgetedMaterialCost) && |
743 | | - Objects.equals(this.budgetedExpenseCost, primaveraTaskProperties.budgetedExpenseCost); |
| 828 | + Objects.equals(this.budgetedExpenseCost, primaveraTaskProperties.budgetedExpenseCost) && |
| 829 | + Objects.equals(this.primaryConstraintType, primaveraTaskProperties.primaryConstraintType) && |
| 830 | + Objects.equals(this.primaryConstraintDate, primaveraTaskProperties.primaryConstraintDate) && |
| 831 | + Objects.equals(this.secondaryConstraintType, primaveraTaskProperties.secondaryConstraintType) && |
| 832 | + Objects.equals(this.secondaryConstraintDate, primaveraTaskProperties.secondaryConstraintDate); |
744 | 833 | } |
745 | 834 |
|
746 | 835 | @Override |
747 | 836 | public int hashCode() { |
748 | | - return Objects.hash(sequenceNumber, activityId, remainingEarlyFinish, remainingEarlyStart, remainingLateStart, remainingLateFinish, rawDurationType, rawActivityType, rawCompletePercentType, rawStatus, durationPercentComplete, physicalPercentComplete, actualNonLaborUnits, actualLaborUnits, unitsPercentComplete, remainingLaborUnits, remainingNonLaborUnits, durationType, activityType, percentCompleteType, actualLaborCost, actualNonlaborCost, actualMaterialCost, actualExpenseCost, remainingExpenseCost, actualTotalCost, budgetedTotalCost, budgetedLaborCost, budgetedNonlaborCost, budgetedMaterialCost, budgetedExpenseCost); |
| 837 | + return Objects.hash(sequenceNumber, activityId, remainingEarlyFinish, remainingEarlyStart, remainingLateStart, remainingLateFinish, rawDurationType, rawActivityType, rawCompletePercentType, rawStatus, durationPercentComplete, physicalPercentComplete, actualNonLaborUnits, actualLaborUnits, unitsPercentComplete, remainingLaborUnits, remainingNonLaborUnits, durationType, activityType, percentCompleteType, actualLaborCost, actualNonlaborCost, actualMaterialCost, actualExpenseCost, remainingExpenseCost, actualTotalCost, budgetedTotalCost, budgetedLaborCost, budgetedNonlaborCost, budgetedMaterialCost, budgetedExpenseCost, primaryConstraintType, primaryConstraintDate, secondaryConstraintType, secondaryConstraintDate); |
749 | 838 | } |
750 | 839 |
|
751 | 840 |
|
@@ -785,6 +874,10 @@ public String toString() { |
785 | 874 | sb.append(" budgetedNonlaborCost: ").append(toIndentedString(budgetedNonlaborCost)).append("\n"); |
786 | 875 | sb.append(" budgetedMaterialCost: ").append(toIndentedString(budgetedMaterialCost)).append("\n"); |
787 | 876 | sb.append(" budgetedExpenseCost: ").append(toIndentedString(budgetedExpenseCost)).append("\n"); |
| 877 | + sb.append(" primaryConstraintType: ").append(toIndentedString(primaryConstraintType)).append("\n"); |
| 878 | + sb.append(" primaryConstraintDate: ").append(toIndentedString(primaryConstraintDate)).append("\n"); |
| 879 | + sb.append(" secondaryConstraintType: ").append(toIndentedString(secondaryConstraintType)).append("\n"); |
| 880 | + sb.append(" secondaryConstraintDate: ").append(toIndentedString(secondaryConstraintDate)).append("\n"); |
788 | 881 | sb.append("}"); |
789 | 882 | return sb.toString(); |
790 | 883 | } |
|
0 commit comments