Class BudgetTimePeriod


  • public final class BudgetTimePeriod
    extends Object
    The start and end date for a budget.
    • Constructor Detail

      • BudgetTimePeriod

        public BudgetTimePeriod()
    • Method Detail

      • startDate

        public OffsetDateTime startDate()
        Get the startDate property: The start date for the budget.
        Returns:
        the startDate value.
      • withStartDate

        public BudgetTimePeriod withStartDate​(OffsetDateTime startDate)
        Set the startDate property: The start date for the budget.
        Parameters:
        startDate - the startDate value to set.
        Returns:
        the BudgetTimePeriod object itself.
      • endDate

        public OffsetDateTime endDate()
        Get the endDate property: The end date for the budget. If not provided, we default this to 10 years from the start date.
        Returns:
        the endDate value.
      • withEndDate

        public BudgetTimePeriod withEndDate​(OffsetDateTime endDate)
        Set the endDate property: The end date for the budget. If not provided, we default this to 10 years from the start date.
        Parameters:
        endDate - the endDate value to set.
        Returns:
        the BudgetTimePeriod object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.