Class MonitoringTemplate.Builder
- java.lang.Object
- 
- com.oracle.bmc.stackmonitoring.model.MonitoringTemplate.Builder
 
- 
- Enclosing class:
- MonitoringTemplate
 
 public static class MonitoringTemplate.Builder extends Object 
- 
- 
Constructor SummaryConstructors Constructor Description Builder()
 - 
Method SummaryAll 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- 
idpublic MonitoringTemplate.Builder id(String id) The OCID of the monitoringTemplate- Parameters:
- id- the value to set
- Returns:
- this builder
 
 - 
displayNamepublic 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
 
 - 
tenantIdpublic MonitoringTemplate.Builder tenantId(String tenantId) Tenant Identifier OCID- Parameters:
- tenantId- the value to set
- Returns:
- this builder
 
 - 
compartmentIdpublic MonitoringTemplate.Builder compartmentId(String compartmentId) The OCID of the compartment containing the monitoringTemplate.- Parameters:
- compartmentId- the value to set
- Returns:
- this builder
 
 - 
descriptionpublic 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
 
 - 
statuspublic 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
 
 - 
lifecycleStatepublic MonitoringTemplate.Builder lifecycleState(MonitoringTemplateLifeCycleStates lifecycleState) The current lifecycle state of the monitoring template.- Parameters:
- lifecycleState- the value to set
- Returns:
- this builder
 
 - 
destinationspublic 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
 
 - 
isAlarmsEnabledpublic 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
 
 - 
isSplitNotificationEnabledpublic 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
 
 - 
memberspublic MonitoringTemplate.Builder members(List<MemberReference> members) List of members of this monitoring template.- Parameters:
- members- the value to set
- Returns:
- this builder
 
 - 
repeatNotificationDurationpublic 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
 
 - 
messageFormatpublic MonitoringTemplate.Builder messageFormat(MessageFormat messageFormat) The format to use for alarm notifications.- Parameters:
- messageFormat- the value to set
- Returns:
- this builder
 
 - 
totalAlarmConditionspublic MonitoringTemplate.Builder totalAlarmConditions(Float totalAlarmConditions) Total Alarm Conditions- Parameters:
- totalAlarmConditions- the value to set
- Returns:
- this builder
 
 - 
totalAppliedAlarmConditionspublic MonitoringTemplate.Builder totalAppliedAlarmConditions(Float totalAppliedAlarmConditions) Total Applied Alarm Conditions- Parameters:
- totalAppliedAlarmConditions- the value to set
- Returns:
- this builder
 
 - 
timeCreatedpublic 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
 
 - 
timeUpdatedpublic 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
 
 - 
freeformTagspublic 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
 
 - 
definedTagspublic 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
 
 - 
systemTagspublic 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
 
 - 
buildpublic MonitoringTemplate build() 
 - 
copypublic MonitoringTemplate.Builder copy(MonitoringTemplate model) 
 
- 
 
-