public static class BudgetSummary.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
BudgetSummary.Builder |
actualSpend(BigDecimal actualSpend)
The actual spend in currency for the current budget cycle.
|
BudgetSummary.Builder |
alertRuleCount(Integer alertRuleCount)
The total number of alert rules in the budget.
|
BudgetSummary.Builder |
amount(BigDecimal amount)
The amount of the budget, expressed in the currency of the customer’s rate card.
|
BudgetSummary.Builder |
budgetProcessingPeriodStartOffset(Integer budgetProcessingPeriodStartOffset)
The number of days offset from the first day of the month, at which the budget processing
period starts.
|
BudgetSummary |
build() |
BudgetSummary.Builder |
compartmentId(String compartmentId)
The OCID of the compartment.
|
BudgetSummary.Builder |
copy(BudgetSummary model) |
BudgetSummary.Builder |
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.
|
BudgetSummary.Builder |
description(String description)
The description of the budget.
|
BudgetSummary.Builder |
displayName(String displayName)
The display name of the budget.
|
BudgetSummary.Builder |
endDate(Date endDate)
The time when the one-time budget concludes.
|
BudgetSummary.Builder |
forecastedSpend(BigDecimal forecastedSpend)
The forecasted spend in currency by the end of the current budget cycle.
|
BudgetSummary.Builder |
freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource.
|
BudgetSummary.Builder |
id(String id)
The OCID of the budget.
|
BudgetSummary.Builder |
lifecycleState(LifecycleState lifecycleState)
The current state of the budget.
|
BudgetSummary.Builder |
processingPeriodType(ProcessingPeriodType processingPeriodType)
The type of the budget processing period.
|
BudgetSummary.Builder |
resetPeriod(ResetPeriod resetPeriod)
The reset period for the budget.
|
BudgetSummary.Builder |
startDate(Date startDate)
The date when the one-time budget begins.
|
BudgetSummary.Builder |
targetCompartmentId(String targetCompartmentId)
This is DEPRECATED.
|
BudgetSummary.Builder |
targets(List<String> targets)
The list of targets on which the budget is applied.
|
BudgetSummary.Builder |
targetType(TargetType targetType)
The type of target on which the budget is applied.
|
BudgetSummary.Builder |
timeCreated(Date timeCreated)
The time the budget was created.
|
BudgetSummary.Builder |
timeSpendComputed(Date timeSpendComputed)
The time the budget spend was last computed.
|
BudgetSummary.Builder |
timeUpdated(Date timeUpdated)
The time the budget was updated.
|
BudgetSummary.Builder |
version(Integer version)
The version of the budget.
|
public BudgetSummary.Builder id(String id)
The OCID of the budget.
id
- the value to setpublic BudgetSummary.Builder compartmentId(String compartmentId)
The OCID of the compartment.
compartmentId
- the value to setpublic BudgetSummary.Builder targetCompartmentId(String targetCompartmentId)
This is DEPRECATED. For backwards compatability, the property is populated when the targetType is “COMPARTMENT”, and the targets contain the specific target compartment OCID. For all other scenarios, this property is left empty.
targetCompartmentId
- the value to setpublic BudgetSummary.Builder displayName(String displayName)
The display name of the budget. Avoid entering confidential information.
displayName
- the value to setpublic BudgetSummary.Builder description(String description)
The description of the budget.
description
- the value to setpublic BudgetSummary.Builder amount(BigDecimal amount)
The amount of the budget, expressed in the currency of the customer’s rate card.
amount
- the value to setpublic BudgetSummary.Builder resetPeriod(ResetPeriod resetPeriod)
The reset period for the budget.
resetPeriod
- the value to setpublic BudgetSummary.Builder budgetProcessingPeriodStartOffset(Integer budgetProcessingPeriodStartOffset)
The number of days offset from the first day of the month, at which the budget processing period starts. In months that have fewer days than this value, processing will begin on the last day of that month. For example, for a value of 12, processing starts every month on the 12th at midnight.
budgetProcessingPeriodStartOffset
- the value to setpublic BudgetSummary.Builder processingPeriodType(ProcessingPeriodType processingPeriodType)
The type of the budget processing period. Valid values are INVOICE, MONTH, and SINGLE_USE.
processingPeriodType
- the value to setpublic BudgetSummary.Builder startDate(Date startDate)
The date when the one-time budget begins. For example, 2023-03-23
. The date-time
format conforms to RFC 3339, and will be truncated to the starting point of the date
provided after being converted to UTC time.
startDate
- the value to setpublic BudgetSummary.Builder endDate(Date endDate)
The time when the one-time budget concludes. For example, - 2023-03-23
. The
date-time format conforms to RFC 3339, and will be truncated to the starting point of the
date provided after being converted to UTC time.
endDate
- the value to setpublic BudgetSummary.Builder targetType(TargetType targetType)
The type of target on which the budget is applied.
targetType
- the value to setpublic BudgetSummary.Builder targets(List<String> targets)
The list of targets on which the budget is applied. If the targetType is “COMPARTMENT”, the targets contain the list of compartment OCIDs. If the targetType is “TAG”, the targets contain the list of cost tracking tag identifiers in the form of “{tagNamespace}.{tagKey}.{tagValue}”.
targets
- the value to setpublic BudgetSummary.Builder lifecycleState(LifecycleState lifecycleState)
The current state of the budget.
lifecycleState
- the value to setpublic BudgetSummary.Builder alertRuleCount(Integer alertRuleCount)
The total number of alert rules in the budget.
alertRuleCount
- the value to setpublic BudgetSummary.Builder version(Integer version)
The version of the budget. Starts from 1 and increments by 1.
version
- the value to setpublic BudgetSummary.Builder actualSpend(BigDecimal actualSpend)
The actual spend in currency for the current budget cycle.
actualSpend
- the value to setpublic BudgetSummary.Builder forecastedSpend(BigDecimal forecastedSpend)
The forecasted spend in currency by the end of the current budget cycle.
forecastedSpend
- the value to setpublic BudgetSummary.Builder timeSpendComputed(Date timeSpendComputed)
The time the budget spend was last computed.
timeSpendComputed
- the value to setpublic BudgetSummary.Builder timeCreated(Date timeCreated)
The time the budget was created.
timeCreated
- the value to setpublic BudgetSummary.Builder timeUpdated(Date timeUpdated)
The time the budget was updated.
timeUpdated
- the value to setpublic BudgetSummary.Builder freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.
Example: {"Department": "Finance"}
freeformTags
- the value to setpublic BudgetSummary.Builder definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
Example: {"Operations": {"CostCenter": "42"}}
definedTags
- the value to setpublic BudgetSummary build()
public BudgetSummary.Builder copy(BudgetSummary model)
Copyright © 2016–2024. All rights reserved.