Class OccMetricAlarm.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • id

        public OccMetricAlarm.Builder id​(String id)
        Unique OCID for this alarm configuration.
        Parameters:
        id - the value to set
        Returns:
        this builder
      • displayName

        public OccMetricAlarm.Builder displayName​(String displayName)
        Human-readable name for the alarm.
        Parameters:
        displayName - the value to set
        Returns:
        this builder
      • description

        public OccMetricAlarm.Builder description​(String description)
        Optional description for the alarm.
        Parameters:
        description - the value to set
        Returns:
        this builder
      • timeCreated

        public OccMetricAlarm.Builder timeCreated​(Date timeCreated)
        Creation timestamp (RFC 3339).
        Parameters:
        timeCreated - the value to set
        Returns:
        this builder
      • timeUpdated

        public OccMetricAlarm.Builder timeUpdated​(Date timeUpdated)
        Last update timestamp (RFC 3339).
        Parameters:
        timeUpdated - the value to set
        Returns:
        this builder
      • compartmentId

        public OccMetricAlarm.Builder compartmentId​(String compartmentId)
        Compartment OCID in which the alarm is created.
        Parameters:
        compartmentId - the value to set
        Returns:
        this builder
      • isActive

        public OccMetricAlarm.Builder isActive​(Boolean isActive)
        Alarm active status.
        Parameters:
        isActive - the value to set
        Returns:
        this builder
      • subscribers

        public OccMetricAlarm.Builder subscribers​(List<String> subscribers)
        List of topic OCIDs for notifications.
        Parameters:
        subscribers - the value to set
        Returns:
        this builder
      • threshold

        public OccMetricAlarm.Builder threshold​(Integer threshold)
        Threshold at which alarm must be triggered.
        Parameters:
        threshold - the value to set
        Returns:
        this builder
      • freeformTags

        public OccMetricAlarm.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 OccMetricAlarm.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
      • systemTags

        public OccMetricAlarm.Builder systemTags​(Map<String,​Map<String,​Object>> systemTags)
        System tags for this resource.

        Each key is predefined and scoped to a namespace.

        Example: {"orcl-cloud": {"free-tier-retained": "true"}}

        Parameters:
        systemTags - the value to set
        Returns:
        this builder