Class CreateMonitoringTemplateDetails.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • displayName

        public CreateMonitoringTemplateDetails.Builder displayName​(String displayName)
        A user-friendly name for the monitoring template.

        It is unique and mutable in nature. Avoid entering confidential information.

        Parameters:
        displayName - the value to set
        Returns:
        this builder
      • compartmentId

        public CreateMonitoringTemplateDetails.Builder compartmentId​(String compartmentId)
        The OCID of the compartment containing the monitoringTemplate.
        Parameters:
        compartmentId - the value to set
        Returns:
        this builder
      • description

        public CreateMonitoringTemplateDetails.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
      • destinations

        public CreateMonitoringTemplateDetails.Builder destinations​(List<String> destinations)
        A list of destinations for alarm notifications.

        Each destination is represented by the OCID of a related resource, such as a topic.

        Parameters:
        destinations - the value to set
        Returns:
        this builder
      • isAlarmsEnabled

        public CreateMonitoringTemplateDetails.Builder isAlarmsEnabled​(Boolean isAlarmsEnabled)
        Whether the alarm is enabled or disabled, it will be Enabled by default.
        Parameters:
        isAlarmsEnabled - the value to set
        Returns:
        this builder
      • isSplitNotificationEnabled

        public CreateMonitoringTemplateDetails.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
      • repeatNotificationDuration

        public CreateMonitoringTemplateDetails.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
      • freeformTags

        public CreateMonitoringTemplateDetails.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 CreateMonitoringTemplateDetails.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