Class AlarmCondition.Builder
- java.lang.Object
-
- com.oracle.bmc.stackmonitoring.model.AlarmCondition.Builder
-
- Enclosing class:
- AlarmCondition
public static class AlarmCondition.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AlarmCondition
build()
AlarmCondition.Builder
compositeType(String compositeType)
The OCID of the composite resource type like EBS/PEOPLE_SOFT.AlarmCondition.Builder
conditions(List<Condition> conditions)
Monitoring template conditionsAlarmCondition.Builder
conditionType(ConditionType conditionType)
Type of defined monitoring template.AlarmCondition.Builder
copy(AlarmCondition model)
AlarmCondition.Builder
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.AlarmCondition.Builder
freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope.AlarmCondition.Builder
id(String id)
The OCID of the Alarm Condition.AlarmCondition.Builder
lifecycleState(AlarmConditionLifeCycleStates lifecycleState)
The current lifecycle state of the monitoring templateAlarmCondition.Builder
metricName(String metricName)
The metric name.AlarmCondition.Builder
monitoringTemplateId(String monitoringTemplateId)
The OCID of the monitoring template.AlarmCondition.Builder
namespace(String namespace)
The stack monitoring service or application emitting the metric that is evaluated by the alarm.AlarmCondition.Builder
resourceType(String resourceType)
The resource type OCID.AlarmCondition.Builder
status(AlarmConditionLifeCycleDetails status)
The current status of the monitoring template i.e.AlarmCondition.Builder
systemTags(Map<String,Map<String,Object>> systemTags)
Usage of system tag keys.AlarmCondition.Builder
timeCreated(Date timeCreated)
The date and time the alarm condition was created.AlarmCondition.Builder
timeUpdated(Date timeUpdated)
The date and time the alarm condition was updated.
-
-
-
Method Detail
-
id
public AlarmCondition.Builder id(String id)
The OCID of the Alarm Condition.- Parameters:
id
- the value to set- Returns:
- this builder
-
monitoringTemplateId
public AlarmCondition.Builder monitoringTemplateId(String monitoringTemplateId)
The OCID of the monitoring template.- Parameters:
monitoringTemplateId
- the value to set- Returns:
- this builder
-
namespace
public AlarmCondition.Builder namespace(String namespace)
The stack monitoring service or application emitting the metric that is evaluated by the alarm.- Parameters:
namespace
- the value to set- Returns:
- this builder
-
compositeType
public AlarmCondition.Builder compositeType(String compositeType)
The OCID of the composite resource type like EBS/PEOPLE_SOFT.- Parameters:
compositeType
- the value to set- Returns:
- this builder
-
resourceType
public AlarmCondition.Builder resourceType(String resourceType)
The resource type OCID.- Parameters:
resourceType
- the value to set- Returns:
- this builder
-
metricName
public AlarmCondition.Builder metricName(String metricName)
The metric name.- Parameters:
metricName
- the value to set- Returns:
- this builder
-
conditionType
public AlarmCondition.Builder conditionType(ConditionType conditionType)
Type of defined monitoring template.- Parameters:
conditionType
- the value to set- Returns:
- this builder
-
conditions
public AlarmCondition.Builder conditions(List<Condition> conditions)
Monitoring template conditions- Parameters:
conditions
- the value to set- Returns:
- this builder
-
status
public AlarmCondition.Builder status(AlarmConditionLifeCycleDetails status)
The current status of the monitoring template i.e.whether it is Published or Unpublished
- Parameters:
status
- the value to set- Returns:
- this builder
-
lifecycleState
public AlarmCondition.Builder lifecycleState(AlarmConditionLifeCycleStates lifecycleState)
The current lifecycle state of the monitoring template- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
timeCreated
public AlarmCondition.Builder timeCreated(Date timeCreated)
The date and time the alarm condition was created.Format defined by RFC3339.
- Parameters:
timeCreated
- the value to set- Returns:
- this builder
-
timeUpdated
public AlarmCondition.Builder timeUpdated(Date timeUpdated)
The date and time the alarm condition was updated.Format defined by RFC3339.
- Parameters:
timeUpdated
- the value to set- Returns:
- this builder
-
freeformTags
public AlarmCondition.Builder freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope.Exists for cross-compatibility only. Example: {“bar-key”: “value”}
- Parameters:
freeformTags
- the value to set- Returns:
- this builder
-
definedTags
public AlarmCondition.Builder definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.Each key is predefined and scoped to a namespace. Example: {“foo-namespace”: {“bar-key”: “value”}}
- Parameters:
definedTags
- the value to set- Returns:
- this builder
-
systemTags
public AlarmCondition.Builder systemTags(Map<String,Map<String,Object>> systemTags)
Usage of system tag keys.These predefined keys are scoped to namespaces. Example: {“orcl-cloud”: {“free-tier-retained”: “true”}}
- Parameters:
systemTags
- the value to set- Returns:
- this builder
-
build
public AlarmCondition build()
-
copy
public AlarmCondition.Builder copy(AlarmCondition model)
-
-