BudgetTimePeriod Class
- java.
lang. Object - com.
azure. resourcemanager. consumption. models. BudgetTimePeriod
- com.
public final class BudgetTimePeriod
The start and end date for a budget.
Constructor Summary
Constructor | Description | |
---|---|---|
BudgetTimePeriod() |
Method Summary
Modifier and Type | Method and Description |
---|---|
Offset |
endDate()
Get the end |
Offset |
startDate()
Get the start |
void |
validate()
Validates the instance. |
Budget |
withEndDate(OffsetDateTime endDate)
Set the end |
Budget |
withStartDate(OffsetDateTime startDate)
Set the start |
Methods inherited from java.lang.Object
Constructor Details
BudgetTimePeriod
public BudgetTimePeriod()
Method Details
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:
startDate
public OffsetDateTime startDate()
Get the startDate property: The start date for the budget.
Returns:
validate
public void validate()
Validates the instance.
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:
Returns:
withStartDate
public BudgetTimePeriod withStartDate(OffsetDateTime startDate)
Set the startDate property: The start date for the budget.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for