Class DetectorRecipe.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • displayName

        public DetectorRecipe.Builder displayName​(String displayName)
        Display name of detector recipe
        Parameters:
        displayName - the value to set
        Returns:
        this builder
      • description

        public DetectorRecipe.Builder description​(String description)
        Detector recipe description
        Parameters:
        description - the value to set
        Returns:
        this builder
      • compartmentId

        public DetectorRecipe.Builder compartmentId​(String compartmentId)
        Compartment OCID of detector recipe
        Parameters:
        compartmentId - the value to set
        Returns:
        this builder
      • sourceDetectorRecipeId

        public DetectorRecipe.Builder sourceDetectorRecipeId​(String sourceDetectorRecipeId)
        Recipe OCID of the source recipe to be cloned
        Parameters:
        sourceDetectorRecipeId - the value to set
        Returns:
        this builder
      • detectorRecipeType

        public DetectorRecipe.Builder detectorRecipeType​(DetectorRecipeEnum detectorRecipeType)
        Recipe type ( STANDARD, ENTERPRISE )
        Parameters:
        detectorRecipeType - the value to set
        Returns:
        this builder
      • effectiveDetectorRules

        public DetectorRecipe.Builder effectiveDetectorRules​(List<DetectorRecipeDetectorRule> effectiveDetectorRules)
        List of effective detector rules for the detector type for recipe after applying defaults
        Parameters:
        effectiveDetectorRules - the value to set
        Returns:
        this builder
      • timeCreated

        public DetectorRecipe.Builder timeCreated​(Date timeCreated)
        The date and time the detector recipe was created Format defined by RFC3339.
        Parameters:
        timeCreated - the value to set
        Returns:
        this builder
      • timeUpdated

        public DetectorRecipe.Builder timeUpdated​(Date timeUpdated)
        The date and time the detector recipe was last updated Format defined by RFC3339.
        Parameters:
        timeUpdated - the value to set
        Returns:
        this builder
      • lifecycleState

        public DetectorRecipe.Builder lifecycleState​(LifecycleState lifecycleState)
        The current lifecycle state of the resource
        Parameters:
        lifecycleState - the value to set
        Returns:
        this builder
      • sourceDataRetention

        public DetectorRecipe.Builder sourceDataRetention​(Integer sourceDataRetention)
        The number of days for which source data is retained
        Parameters:
        sourceDataRetention - the value to set
        Returns:
        this builder
      • freeformTags

        public DetectorRecipe.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”}

        Avoid entering confidential information.

        Parameters:
        freeformTags - the value to set
        Returns:
        this builder
      • definedTags

        public DetectorRecipe.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 DetectorRecipe.Builder systemTags​(Map<String,​Map<String,​Object>> systemTags)
        System tags for this resource.

        Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system.

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

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

        public DetectorRecipe.Builder targetIds​(List<String> targetIds)
        List of target IDs to which the recipe is attached
        Parameters:
        targetIds - the value to set
        Returns:
        this builder