BudgetTimePeriod Class

  • java.lang.Object
    • com.azure.resourcemanager.consumption.models.BudgetTimePeriod

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
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.

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:

the endDate value.

startDate

public OffsetDateTime startDate()

Get the startDate property: The start date for the budget.

Returns:

the startDate value.

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:

endDate - the endDate value to set.

Returns:

the BudgetTimePeriod object itself.

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.

Applies to