Package com.oracle.bmc.budget.model
Class CostAnomalyEventSummary.Builder
- java.lang.Object
-
- com.oracle.bmc.budget.model.CostAnomalyEventSummary.Builder
-
- Enclosing class:
- CostAnomalyEventSummary
public static class CostAnomalyEventSummary.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
id
public CostAnomalyEventSummary.Builder id(String id)
The OCID of the Cost Anomaly Event.- Parameters:
id- the value to set- Returns:
- this builder
-
costAnomalyName
public CostAnomalyEventSummary.Builder costAnomalyName(String costAnomalyName)
The name of the associated cost Anomaly.- Parameters:
costAnomalyName- the value to set- Returns:
- this builder
-
compartmentId
public CostAnomalyEventSummary.Builder compartmentId(String compartmentId)
The OCID of the compartment.- Parameters:
compartmentId- the value to set- Returns:
- this builder
-
costMonitorId
public CostAnomalyEventSummary.Builder costMonitorId(String costMonitorId)
The OCID of the associated cost monitor.- Parameters:
costMonitorId- the value to set- Returns:
- this builder
-
costMonitorName
public CostAnomalyEventSummary.Builder costMonitorName(String costMonitorName)
The name of the associated cost monitor.- Parameters:
costMonitorName- the value to set- Returns:
- this builder
-
costMonitorType
public CostAnomalyEventSummary.Builder costMonitorType(MonitorType costMonitorType)
Type of cost monitor- Parameters:
costMonitorType- the value to set- Returns:
- this builder
-
lifecycleState
public CostAnomalyEventSummary.Builder lifecycleState(CostAnomalyEvent.LifecycleState lifecycleState)
The current state of the cost anomaly event.- Parameters:
lifecycleState- the value to set- Returns:
- this builder
-
targetResourceFilter
public CostAnomalyEventSummary.Builder targetResourceFilter(TargetResourceFilter targetResourceFilter)
-
rootCauseDetail
public CostAnomalyEventSummary.Builder rootCauseDetail(RootCauseDetail rootCauseDetail)
-
timeAnomalyEventDate
public CostAnomalyEventSummary.Builder timeAnomalyEventDate(Date timeAnomalyEventDate)
The event date of the anomaly event.- Parameters:
timeAnomalyEventDate- the value to set- Returns:
- this builder
-
costImpact
public CostAnomalyEventSummary.Builder costImpact(Double costImpact)
The cost impact of the detected anomaly.- Parameters:
costImpact- the value to set- Returns:
- this builder
-
costVariancePercentage
public CostAnomalyEventSummary.Builder costVariancePercentage(Double costVariancePercentage)
The cost variance percentage of the detected anomaly.- Parameters:
costVariancePercentage- the value to set- Returns:
- this builder
-
definedTags
public CostAnomalyEventSummary.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
-
freeformTags
public CostAnomalyEventSummary.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
-
systemTags
public CostAnomalyEventSummary.Builder systemTags(Map<String,Map<String,Object>> systemTags)
System tags for this resource.Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system.
Example: {"orcl-cloud": {"free-tier-retained": "true"}}
- Parameters:
systemTags- the value to set- Returns:
- this builder
-
build
public CostAnomalyEventSummary build()
-
copy
public CostAnomalyEventSummary.Builder copy(CostAnomalyEventSummary model)
-
-