Class MonitoringTemplate.Builder
- java.lang.Object
-
- com.oracle.bmc.stackmonitoring.model.MonitoringTemplate.Builder
-
- Enclosing class:
- MonitoringTemplate
public static class MonitoringTemplate.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MonitoringTemplatebuild()MonitoringTemplate.BuildercompartmentId(String compartmentId)The OCID of the compartment containing the monitoringTemplate.MonitoringTemplate.Buildercopy(MonitoringTemplate model)MonitoringTemplate.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.MonitoringTemplate.Builderdescription(String description)A user-friendly description for the monitoring template.MonitoringTemplate.Builderdestinations(List<String> destinations)A list of destinations for alarm notifications.MonitoringTemplate.BuilderdisplayName(String displayName)A user-friendly name for the monitoring template.MonitoringTemplate.BuilderfreeformTags(Map<String,String> freeformTags)Simple key-value pair that is applied without any predefined name, type or scope.MonitoringTemplate.Builderid(String id)The OCID of the monitoringTemplateMonitoringTemplate.BuilderisAlarmsEnabled(Boolean isAlarmsEnabled)Whether the alarm is enabled or disabled.MonitoringTemplate.BuilderisSplitNotificationEnabled(Boolean isSplitNotificationEnabled)Whether the alarm notification is enabled or disabled, it will be Enabled by default.MonitoringTemplate.BuilderlifecycleState(MonitoringTemplateLifeCycleStates lifecycleState)The current lifecycle state of the monitoring template.MonitoringTemplate.Buildermembers(List<MemberReference> members)List of members of this monitoring template.MonitoringTemplate.BuildermessageFormat(MessageFormat messageFormat)The format to use for alarm notifications.MonitoringTemplate.BuilderrepeatNotificationDuration(String repeatNotificationDuration)The frequency for re-submitting alarm notifications, if the alarm keeps firing without interruption.MonitoringTemplate.Builderstatus(MonitoringTemplateLifeCycleDetails status)The current status of the monitoring template i.e.MonitoringTemplate.BuildersystemTags(Map<String,Map<String,Object>> systemTags)Usage of system tag keys.MonitoringTemplate.BuildertenantId(String tenantId)Tenant Identifier OCIDMonitoringTemplate.BuildertimeCreated(Date timeCreated)The date and time the monitoringTemplate was created.MonitoringTemplate.BuildertimeUpdated(Date timeUpdated)The date and time the monitoringTemplate was last updated.MonitoringTemplate.BuildertotalAlarmConditions(Float totalAlarmConditions)Total Alarm ConditionsMonitoringTemplate.BuildertotalAppliedAlarmConditions(Float totalAppliedAlarmConditions)Total Applied Alarm Conditions
-
-
-
Method Detail
-
id
public MonitoringTemplate.Builder id(String id)
The OCID of the monitoringTemplate- Parameters:
id- the value to set- Returns:
- this builder
-
displayName
public MonitoringTemplate.Builder displayName(String displayName)
A user-friendly name for the monitoring template.It should be unique, and it’s mutable in nature. Avoid entering confidential information.
- Parameters:
displayName- the value to set- Returns:
- this builder
-
tenantId
public MonitoringTemplate.Builder tenantId(String tenantId)
Tenant Identifier OCID- Parameters:
tenantId- the value to set- Returns:
- this builder
-
compartmentId
public MonitoringTemplate.Builder compartmentId(String compartmentId)
The OCID of the compartment containing the monitoringTemplate.- Parameters:
compartmentId- the value to set- Returns:
- this builder
-
description
public MonitoringTemplate.Builder description(String description)
A user-friendly description for the monitoring template.It does not have to be unique, and it’s changeable. Avoid entering confidential information.
- Parameters:
description- the value to set- Returns:
- this builder
-
status
public MonitoringTemplate.Builder status(MonitoringTemplateLifeCycleDetails status)
The current status of the monitoring template i.e.whether it is Applied or NotApplied.
- Parameters:
status- the value to set- Returns:
- this builder
-
lifecycleState
public MonitoringTemplate.Builder lifecycleState(MonitoringTemplateLifeCycleStates lifecycleState)
The current lifecycle state of the monitoring template.- Parameters:
lifecycleState- the value to set- Returns:
- this builder
-
destinations
public MonitoringTemplate.Builder destinations(List<String> destinations)
A list of destinations for alarm notifications.Each destination is represented by the OCID of a related resource.
- Parameters:
destinations- the value to set- Returns:
- this builder
-
isAlarmsEnabled
public MonitoringTemplate.Builder isAlarmsEnabled(Boolean isAlarmsEnabled)
Whether the alarm is enabled or disabled.Default value is enabled.
- Parameters:
isAlarmsEnabled- the value to set- Returns:
- this builder
-
isSplitNotificationEnabled
public MonitoringTemplate.Builder isSplitNotificationEnabled(Boolean isSplitNotificationEnabled)
Whether the alarm notification is enabled or disabled, it will be Enabled by default.- Parameters:
isSplitNotificationEnabled- the value to set- Returns:
- this builder
-
members
public MonitoringTemplate.Builder members(List<MemberReference> members)
List of members of this monitoring template.- Parameters:
members- the value to set- Returns:
- this builder
-
repeatNotificationDuration
public MonitoringTemplate.Builder repeatNotificationDuration(String repeatNotificationDuration)
The frequency for re-submitting alarm notifications, if the alarm keeps firing without interruption.Format defined by ISO 8601. For example, PT4H indicates four hours. Minimum- PT1M. Maximum - P30D.
- Parameters:
repeatNotificationDuration- the value to set- Returns:
- this builder
-
messageFormat
public MonitoringTemplate.Builder messageFormat(MessageFormat messageFormat)
The format to use for alarm notifications.- Parameters:
messageFormat- the value to set- Returns:
- this builder
-
totalAlarmConditions
public MonitoringTemplate.Builder totalAlarmConditions(Float totalAlarmConditions)
Total Alarm Conditions- Parameters:
totalAlarmConditions- the value to set- Returns:
- this builder
-
totalAppliedAlarmConditions
public MonitoringTemplate.Builder totalAppliedAlarmConditions(Float totalAppliedAlarmConditions)
Total Applied Alarm Conditions- Parameters:
totalAppliedAlarmConditions- the value to set- Returns:
- this builder
-
timeCreated
public MonitoringTemplate.Builder timeCreated(Date timeCreated)
The date and time the monitoringTemplate was created.Format defined by RFC3339.
- Parameters:
timeCreated- the value to set- Returns:
- this builder
-
timeUpdated
public MonitoringTemplate.Builder timeUpdated(Date timeUpdated)
The date and time the monitoringTemplate was last updated.Format defined by RFC3339.
- Parameters:
timeUpdated- the value to set- Returns:
- this builder
-
freeformTags
public MonitoringTemplate.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 MonitoringTemplate.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 MonitoringTemplate.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 MonitoringTemplate build()
-
copy
public MonitoringTemplate.Builder copy(MonitoringTemplate model)
-
-