Package com.oracle.bmc.cloudguard.model
Class DetectorRecipe.Builder
- java.lang.Object
-
- com.oracle.bmc.cloudguard.model.DetectorRecipe.Builder
-
- Enclosing class:
- DetectorRecipe
public static class DetectorRecipe.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DetectorRecipe
build()
DetectorRecipe.Builder
compartmentId(String compartmentId)
Compartment OCID of detector recipeDetectorRecipe.Builder
copy(DetectorRecipe model)
DetectorRecipe.Builder
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.DetectorRecipe.Builder
description(String description)
Detector recipe descriptionDetectorRecipe.Builder
detector(DetectorEnum detector)
Type of detectorDetectorRecipe.Builder
detectorRecipeType(DetectorRecipeEnum detectorRecipeType)
Recipe type ( STANDARD, ENTERPRISE )DetectorRecipe.Builder
detectorRules(List<DetectorRecipeDetectorRule> detectorRules)
List of detector rules for the detector type for recipe - user inputDetectorRecipe.Builder
displayName(String displayName)
Display name of detector recipeDetectorRecipe.Builder
effectiveDetectorRules(List<DetectorRecipeDetectorRule> effectiveDetectorRules)
List of effective detector rules for the detector type for recipe after applying defaultsDetectorRecipe.Builder
freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope.DetectorRecipe.Builder
id(String id)
OCID for detector recipeDetectorRecipe.Builder
lifecycleState(LifecycleState lifecycleState)
The current lifecycle state of the resourceDetectorRecipe.Builder
owner(OwnerType owner)
Owner of detector recipeDetectorRecipe.Builder
sourceDataRetention(Integer sourceDataRetention)
The number of days for which source data is retainedDetectorRecipe.Builder
sourceDetectorRecipeId(String sourceDetectorRecipeId)
Recipe OCID of the source recipe to be clonedDetectorRecipe.Builder
systemTags(Map<String,Map<String,Object>> systemTags)
System tags for this resource.DetectorRecipe.Builder
targetIds(List<String> targetIds)
List of target IDs to which the recipe is attachedDetectorRecipe.Builder
timeCreated(Date timeCreated)
The date and time the detector recipe was created Format defined by RFC3339.DetectorRecipe.Builder
timeUpdated(Date timeUpdated)
The date and time the detector recipe was last updated Format defined by RFC3339.
-
-
-
Method Detail
-
id
public DetectorRecipe.Builder id(String id)
OCID for detector recipe- Parameters:
id
- the value to set- Returns:
- this builder
-
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
-
owner
public DetectorRecipe.Builder owner(OwnerType owner)
Owner of detector recipe- Parameters:
owner
- the value to set- Returns:
- this builder
-
detector
public DetectorRecipe.Builder detector(DetectorEnum detector)
Type of detector- Parameters:
detector
- the value to set- Returns:
- this builder
-
detectorRules
public DetectorRecipe.Builder detectorRules(List<DetectorRecipeDetectorRule> detectorRules)
List of detector rules for the detector type for recipe - user input- Parameters:
detectorRules
- 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
-
build
public DetectorRecipe build()
-
copy
public DetectorRecipe.Builder copy(DetectorRecipe model)
-
-