Class Rule.Builder

  • Enclosing class:
    Rule

    public static class Rule.Builder
    extends Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • id

        public Rule.Builder id​(String id)
        The log analytics entity OCID.

        This ID is a reference used by log analytics features and it represents a resource that is provisioned and managed by the customer on their premises or on the cloud.

        Parameters:
        id - the value to set
        Returns:
        this builder
      • description

        public Rule.Builder description​(String description)
        Description for this resource.
        Parameters:
        description - the value to set
        Returns:
        this builder
      • compartmentId

        public Rule.Builder compartmentId​(String compartmentId)
        Compartment Identifier [OCID] (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
        Parameters:
        compartmentId - the value to set
        Returns:
        this builder
      • timeCreated

        public Rule.Builder timeCreated​(Date timeCreated)
        The date and time the resource was created, in the format defined by RFC3339.
        Parameters:
        timeCreated - the value to set
        Returns:
        this builder
      • timeUpdated

        public Rule.Builder timeUpdated​(Date timeUpdated)
        The date and time the resource was last updated, in the format defined by RFC3339.
        Parameters:
        timeUpdated - the value to set
        Returns:
        this builder
      • freeformTags

        public Rule.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 Rule.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
      • lifecycleState

        public Rule.Builder lifecycleState​(ConfigLifecycleState lifecycleState)
        The current state of the logging analytics rule.
        Parameters:
        lifecycleState - the value to set
        Returns:
        this builder
      • kind

        public Rule.Builder kind​(RuleKind kind)
        The kind of rule - either an ingest time rule or a scheduled task.
        Parameters:
        kind - the value to set
        Returns:
        this builder
      • targetService

        public Rule.Builder targetService​(String targetService)
        The target service.
        Parameters:
        targetService - the value to set
        Returns:
        this builder
      • displayName

        public Rule.Builder displayName​(String displayName)
        The ingest time rule or scheduled task display name.
        Parameters:
        displayName - the value to set
        Returns:
        this builder
      • isEnabled

        public Rule.Builder isEnabled​(Boolean isEnabled)
        A flag indicating whether or not the ingest time rule or scheduled task is enabled.
        Parameters:
        isEnabled - the value to set
        Returns:
        this builder
      • lastExecutionStatus

        public Rule.Builder lastExecutionStatus​(Rule.LastExecutionStatus lastExecutionStatus)
        The most recent task execution status.
        Parameters:
        lastExecutionStatus - the value to set
        Returns:
        this builder
      • timeLastExecuted

        public Rule.Builder timeLastExecuted​(Date timeLastExecuted)
        The date and time the scheduled task last executed, in the format defined by RFC3339.
        Parameters:
        timeLastExecuted - the value to set
        Returns:
        this builder
      • build

        public Rule build()