BudgetTimePeriod Class
- java.
lang. Object - com.
azure. resourcemanager. consumption. models. BudgetTimePeriod
- com.
Implements
public final class BudgetTimePeriod
implements JsonSerializable<BudgetTimePeriod>
The start and end date for a budget.
Constructor Summary
| Constructor | Description |
|---|---|
| BudgetTimePeriod() |
Creates an instance of Budget |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Offset |
endDate()
Get the end |
|
static
Budget |
fromJson(JsonReader jsonReader)
Reads an instance of Budget |
|
Offset |
startDate()
Get the start |
|
Json |
toJson(JsonWriter jsonWriter) |
| 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()
Creates an instance of BudgetTimePeriod class.
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:
fromJson
public static BudgetTimePeriod fromJson(JsonReader jsonReader)
Reads an instance of BudgetTimePeriod from the JsonReader.
Parameters:
Returns:
Throws:
startDate
public OffsetDateTime startDate()
Get the startDate property: The start date for the budget.
Returns:
toJson
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: