Class BudgetSummary.Builder
- java.lang.Object
-
- com.oracle.bmc.budget.model.BudgetSummary.Builder
-
- Enclosing class:
- BudgetSummary
public static class BudgetSummary.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BudgetSummary.BuilderactualSpend(BigDecimal actualSpend)The actual spend in currency for the current budget cycle.BudgetSummary.BuilderalertRuleCount(Integer alertRuleCount)The total number of alert rules in the budget.BudgetSummary.Builderamount(BigDecimal amount)The amount of the budget, expressed in the currency of the customer’s rate card.BudgetSummary.BuilderbudgetProcessingPeriodStartOffset(Integer budgetProcessingPeriodStartOffset)The number of days offset from the first day of the month, at which the budget processing period starts.BudgetSummarybuild()BudgetSummary.BuildercompartmentId(String compartmentId)The OCID of the compartment.BudgetSummary.Buildercopy(BudgetSummary model)BudgetSummary.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.BudgetSummary.Builderdescription(String description)The description of the budget.BudgetSummary.BuilderdisplayName(String displayName)The display name of the budget.BudgetSummary.BuilderendDate(Date endDate)The time when the one-time budget concludes.BudgetSummary.BuilderforecastedSpend(BigDecimal forecastedSpend)The forecasted spend in currency by the end of the current budget cycle.BudgetSummary.BuilderfreeformTags(Map<String,String> freeformTags)Free-form tags for this resource.BudgetSummary.Builderid(String id)The OCID of the budget.BudgetSummary.BuilderlifecycleState(LifecycleState lifecycleState)The current state of the budget.BudgetSummary.BuilderprocessingPeriodType(ProcessingPeriodType processingPeriodType)The type of the budget processing period.BudgetSummary.BuilderresetPeriod(ResetPeriod resetPeriod)The reset period for the budget.BudgetSummary.BuilderstartDate(Date startDate)The date when the one-time budget begins.BudgetSummary.BuildertargetCompartmentId(String targetCompartmentId)This is DEPRECATED.BudgetSummary.Buildertargets(List<String> targets)The list of targets on which the budget is applied.BudgetSummary.BuildertargetType(TargetType targetType)The type of target on which the budget is applied.BudgetSummary.BuildertimeCreated(Date timeCreated)The time the budget was created.BudgetSummary.BuildertimeSpendComputed(Date timeSpendComputed)The time the budget spend was last computed.BudgetSummary.BuildertimeUpdated(Date timeUpdated)The time the budget was updated.BudgetSummary.Builderversion(Integer version)The version of the budget.
-
-
-
Method Detail
-
id
public BudgetSummary.Builder id(String id)
The OCID of the budget.- Parameters:
id- the value to set- Returns:
- this builder
-
compartmentId
public BudgetSummary.Builder compartmentId(String compartmentId)
The OCID of the compartment.- Parameters:
compartmentId- the value to set- Returns:
- this builder
-
targetCompartmentId
public 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.
- Parameters:
targetCompartmentId- the value to set- Returns:
- this builder
-
displayName
public BudgetSummary.Builder displayName(String displayName)
The display name of the budget.Avoid entering confidential information.
- Parameters:
displayName- the value to set- Returns:
- this builder
-
description
public BudgetSummary.Builder description(String description)
The description of the budget.- Parameters:
description- the value to set- Returns:
- this builder
-
amount
public BudgetSummary.Builder amount(BigDecimal amount)
The amount of the budget, expressed in the currency of the customer’s rate card.- Parameters:
amount- the value to set- Returns:
- this builder
-
resetPeriod
public BudgetSummary.Builder resetPeriod(ResetPeriod resetPeriod)
The reset period for the budget.- Parameters:
resetPeriod- the value to set- Returns:
- this builder
-
budgetProcessingPeriodStartOffset
public 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.
- Parameters:
budgetProcessingPeriodStartOffset- the value to set- Returns:
- this builder
-
processingPeriodType
public BudgetSummary.Builder processingPeriodType(ProcessingPeriodType processingPeriodType)
The type of the budget processing period.Valid values are INVOICE, MONTH, and SINGLE_USE.
- Parameters:
processingPeriodType- the value to set- Returns:
- this builder
-
startDate
public 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.
- Parameters:
startDate- the value to set- Returns:
- this builder
-
endDate
public 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.
- Parameters:
endDate- the value to set- Returns:
- this builder
-
targetType
public BudgetSummary.Builder targetType(TargetType targetType)
The type of target on which the budget is applied.- Parameters:
targetType- the value to set- Returns:
- this builder
-
targets
public 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}”.
- Parameters:
targets- the value to set- Returns:
- this builder
-
lifecycleState
public BudgetSummary.Builder lifecycleState(LifecycleState lifecycleState)
The current state of the budget.- Parameters:
lifecycleState- the value to set- Returns:
- this builder
-
alertRuleCount
public BudgetSummary.Builder alertRuleCount(Integer alertRuleCount)
The total number of alert rules in the budget.- Parameters:
alertRuleCount- the value to set- Returns:
- this builder
-
version
public BudgetSummary.Builder version(Integer version)
The version of the budget.Starts from 1 and increments by 1.
- Parameters:
version- the value to set- Returns:
- this builder
-
actualSpend
public BudgetSummary.Builder actualSpend(BigDecimal actualSpend)
The actual spend in currency for the current budget cycle.- Parameters:
actualSpend- the value to set- Returns:
- this builder
-
forecastedSpend
public BudgetSummary.Builder forecastedSpend(BigDecimal forecastedSpend)
The forecasted spend in currency by the end of the current budget cycle.- Parameters:
forecastedSpend- the value to set- Returns:
- this builder
-
timeSpendComputed
public BudgetSummary.Builder timeSpendComputed(Date timeSpendComputed)
The time the budget spend was last computed.- Parameters:
timeSpendComputed- the value to set- Returns:
- this builder
-
timeCreated
public BudgetSummary.Builder timeCreated(Date timeCreated)
The time the budget was created.- Parameters:
timeCreated- the value to set- Returns:
- this builder
-
timeUpdated
public BudgetSummary.Builder timeUpdated(Date timeUpdated)
The time the budget was updated.- Parameters:
timeUpdated- the value to set- Returns:
- this builder
-
freeformTags
public 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"}
- Parameters:
freeformTags- the value to set- Returns:
- this builder
-
definedTags
public 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"}}
- Parameters:
definedTags- the value to set- Returns:
- this builder
-
build
public BudgetSummary build()
-
copy
public BudgetSummary.Builder copy(BudgetSummary model)
-
-