Class UpdateOccMetricAlarmDetails.Builder
- java.lang.Object
-
- com.oracle.bmc.demandsignal.model.UpdateOccMetricAlarmDetails.Builder
-
- Enclosing class:
- UpdateOccMetricAlarmDetails
public static class UpdateOccMetricAlarmDetails.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
displayName
public UpdateOccMetricAlarmDetails.Builder displayName(String displayName)
Human-readable name for the alarm.- Parameters:
displayName- the value to set- Returns:
- this builder
-
description
public UpdateOccMetricAlarmDetails.Builder description(String description)
Optional description for the alarm.- Parameters:
description- the value to set- Returns:
- this builder
-
lifecycleState
public UpdateOccMetricAlarmDetails.Builder lifecycleState(UpdateOccMetricAlarmDetails.LifecycleState lifecycleState)
The current lifecycle state of the resource.- Parameters:
lifecycleState- the value to set- Returns:
- this builder
-
isActive
public UpdateOccMetricAlarmDetails.Builder isActive(Boolean isActive)
Alarm active status.- Parameters:
isActive- the value to set- Returns:
- this builder
-
subscribers
public UpdateOccMetricAlarmDetails.Builder subscribers(List<String> subscribers)
List of topic OCIDs for notifications.- Parameters:
subscribers- the value to set- Returns:
- this builder
-
frequency
public UpdateOccMetricAlarmDetails.Builder frequency(OccMetricAlarm.Frequency frequency)
Frequency at which notifications should be sent.- Parameters:
frequency- the value to set- Returns:
- this builder
-
threshold
public UpdateOccMetricAlarmDetails.Builder threshold(Integer threshold)
Threshold at which alarm must be triggered.- Parameters:
threshold- the value to set- Returns:
- this builder
-
thresholdType
public UpdateOccMetricAlarmDetails.Builder thresholdType(UpdateOccMetricAlarmDetails.ThresholdType thresholdType)
Units in which threshold is being stored.- Parameters:
thresholdType- the value to set- Returns:
- this builder
-
freeformTags
public UpdateOccMetricAlarmDetails.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 UpdateOccMetricAlarmDetails.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 UpdateOccMetricAlarmDetails build()
-
copy
public UpdateOccMetricAlarmDetails.Builder copy(UpdateOccMetricAlarmDetails model)
-
-