Class BudgetTimePeriod
- java.lang.Object
-
- com.azure.resourcemanager.consumption.models.BudgetTimePeriod
-
public final class BudgetTimePeriod extends Object
The start and end date for a budget.
-
-
Constructor Summary
Constructors Constructor Description BudgetTimePeriod()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OffsetDateTime
endDate()
Get the endDate property: The end date for the budget.OffsetDateTime
startDate()
Get the startDate property: The start date for the budget.void
validate()
Validates the instance.BudgetTimePeriod
withEndDate(OffsetDateTime endDate)
Set the endDate property: The end date for the budget.BudgetTimePeriod
withStartDate(OffsetDateTime startDate)
Set the startDate property: The start date for the budget.
-
-
-
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.
-
-