Package com.oracle.bmc.budget.model
Class CostAnomalyEvent.Builder
- java.lang.Object
-
- com.oracle.bmc.budget.model.CostAnomalyEvent.Builder
-
- Enclosing class:
- CostAnomalyEvent
public static class CostAnomalyEvent.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CostAnomalyEventbuild()CostAnomalyEvent.BuildercompartmentId(String compartmentId)The OCID of the compartment.CostAnomalyEvent.Buildercopy(CostAnomalyEvent model)CostAnomalyEvent.BuildercostAnomalyName(String costAnomalyName)The name of the associated cost monitor.CostAnomalyEvent.BuildercostImpact(Double costImpact)The cost impact of the detected anomaly.CostAnomalyEvent.BuildercostMonitorId(String costMonitorId)The OCID of the associated cost monitor.CostAnomalyEvent.BuildercostMonitorName(String costMonitorName)The name of the associated cost monitor.CostAnomalyEvent.BuildercostMonitorType(MonitorType costMonitorType)Type of cost monitorCostAnomalyEvent.BuildercostVariancePercentage(Double costVariancePercentage)The cost variance percentage of the detected anomaly.CostAnomalyEvent.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.CostAnomalyEvent.BuilderfeedbackResponse(CostAnomalyEvent.FeedbackResponse feedbackResponse)The feedback response for the cost anomaly event.CostAnomalyEvent.BuilderfreeformTags(Map<String,String> freeformTags)Free-form tags for this resource.CostAnomalyEvent.Builderid(String id)The OCID of the Cost Anomaly Event.CostAnomalyEvent.BuilderlifecycleState(CostAnomalyEvent.LifecycleState lifecycleState)The current state of the cost anomaly event.CostAnomalyEvent.BuilderrootCauseDetail(RootCauseDetail rootCauseDetail)CostAnomalyEvent.BuildersystemTags(Map<String,Map<String,Object>> systemTags)System tags for this resource.CostAnomalyEvent.BuildertargetResourceFilter(TargetResourceFilter targetResourceFilter)CostAnomalyEvent.BuildertimeAnomalyEventDate(Date timeAnomalyEventDate)The event date of the anomaly event.CostAnomalyEvent.BuildertimeCreated(Date timeCreated)The created time of the cost anomaly event.CostAnomalyEvent.BuildertimeUpdated(Date timeUpdated)The updated time of the cost anomaly event.
-
-
-
Method Detail
-
id
public CostAnomalyEvent.Builder id(String id)
The OCID of the Cost Anomaly Event.- Parameters:
id- the value to set- Returns:
- this builder
-
costAnomalyName
public CostAnomalyEvent.Builder costAnomalyName(String costAnomalyName)
The name of the associated cost monitor.- Parameters:
costAnomalyName- the value to set- Returns:
- this builder
-
compartmentId
public CostAnomalyEvent.Builder compartmentId(String compartmentId)
The OCID of the compartment.- Parameters:
compartmentId- the value to set- Returns:
- this builder
-
lifecycleState
public CostAnomalyEvent.Builder lifecycleState(CostAnomalyEvent.LifecycleState lifecycleState)
The current state of the cost anomaly event.- Parameters:
lifecycleState- the value to set- Returns:
- this builder
-
costMonitorId
public CostAnomalyEvent.Builder costMonitorId(String costMonitorId)
The OCID of the associated cost monitor.- Parameters:
costMonitorId- the value to set- Returns:
- this builder
-
costMonitorName
public CostAnomalyEvent.Builder costMonitorName(String costMonitorName)
The name of the associated cost monitor.- Parameters:
costMonitorName- the value to set- Returns:
- this builder
-
costMonitorType
public CostAnomalyEvent.Builder costMonitorType(MonitorType costMonitorType)
Type of cost monitor- Parameters:
costMonitorType- the value to set- Returns:
- this builder
-
targetResourceFilter
public CostAnomalyEvent.Builder targetResourceFilter(TargetResourceFilter targetResourceFilter)
-
timeAnomalyEventDate
public CostAnomalyEvent.Builder timeAnomalyEventDate(Date timeAnomalyEventDate)
The event date of the anomaly event.- Parameters:
timeAnomalyEventDate- the value to set- Returns:
- this builder
-
costImpact
public CostAnomalyEvent.Builder costImpact(Double costImpact)
The cost impact of the detected anomaly.- Parameters:
costImpact- the value to set- Returns:
- this builder
-
costVariancePercentage
public CostAnomalyEvent.Builder costVariancePercentage(Double costVariancePercentage)
The cost variance percentage of the detected anomaly.- Parameters:
costVariancePercentage- the value to set- Returns:
- this builder
-
rootCauseDetail
public CostAnomalyEvent.Builder rootCauseDetail(RootCauseDetail rootCauseDetail)
-
feedbackResponse
public CostAnomalyEvent.Builder feedbackResponse(CostAnomalyEvent.FeedbackResponse feedbackResponse)
The feedback response for the cost anomaly event.- Parameters:
feedbackResponse- the value to set- Returns:
- this builder
-
timeCreated
public CostAnomalyEvent.Builder timeCreated(Date timeCreated)
The created time of the cost anomaly event.- Parameters:
timeCreated- the value to set- Returns:
- this builder
-
timeUpdated
public CostAnomalyEvent.Builder timeUpdated(Date timeUpdated)
The updated time of the cost anomaly event.- Parameters:
timeUpdated- the value to set- Returns:
- this builder
-
definedTags
public CostAnomalyEvent.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 CostAnomalyEvent.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 CostAnomalyEvent.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 CostAnomalyEvent build()
-
copy
public CostAnomalyEvent.Builder copy(CostAnomalyEvent model)
-
-