Package com.oracle.bmc.cloudguard.model
Class Target.Builder
- java.lang.Object
-
- com.oracle.bmc.cloudguard.model.Target.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Target
build()
Target.Builder
compartmentId(String compartmentId)
Compartment OCID where the resource is createdTarget.Builder
copy(Target model)
Target.Builder
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.Target.Builder
description(String description)
The target descriptionTarget.Builder
displayName(String displayName)
Target display nameTarget.Builder
freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope.Target.Builder
id(String id)
Unique identifier that can’t be changed after creationTarget.Builder
inheritedByCompartments(List<String> inheritedByCompartments)
List of inherited compartmentsTarget.Builder
lifecycleState(LifecycleState lifecycleState)
The current lifecycle state of the targetTarget.Builder
lifecyleDetails(String lifecyleDetails)
A message describing the current lifecycle state in more detail.Target.Builder
recipeCount(Integer recipeCount)
Total number of recipes attached to targetTarget.Builder
systemTags(Map<String,Map<String,Object>> systemTags)
System tags for this resource.Target.Builder
targetDetails(TargetDetails targetDetails)
Target.Builder
targetDetectorRecipes(List<TargetDetectorRecipe> targetDetectorRecipes)
List of detector recipes attached to targetTarget.Builder
targetResourceId(String targetResourceId)
Resource ID which the target uses to monitorTarget.Builder
targetResourceType(TargetResourceType targetResourceType)
Type of targetTarget.Builder
targetResponderRecipes(List<TargetResponderRecipe> targetResponderRecipes)
List of responder recipes attached to targetTarget.Builder
timeCreated(Date timeCreated)
The date and time the target was created.Target.Builder
timeUpdated(Date timeUpdated)
The date and time the target was last updated.
-
-
-
Method Detail
-
id
public Target.Builder id(String id)
Unique identifier that can’t be changed after creation- Parameters:
id
- the value to set- Returns:
- this builder
-
displayName
public Target.Builder displayName(String displayName)
Target display name- Parameters:
displayName
- the value to set- Returns:
- this builder
-
compartmentId
public Target.Builder compartmentId(String compartmentId)
Compartment OCID where the resource is created- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
description
public Target.Builder description(String description)
The target description- Parameters:
description
- the value to set- Returns:
- this builder
-
targetResourceType
public Target.Builder targetResourceType(TargetResourceType targetResourceType)
Type of target- Parameters:
targetResourceType
- the value to set- Returns:
- this builder
-
targetResourceId
public Target.Builder targetResourceId(String targetResourceId)
Resource ID which the target uses to monitor- Parameters:
targetResourceId
- the value to set- Returns:
- this builder
-
recipeCount
public Target.Builder recipeCount(Integer recipeCount)
Total number of recipes attached to target- Parameters:
recipeCount
- the value to set- Returns:
- this builder
-
targetDetectorRecipes
public Target.Builder targetDetectorRecipes(List<TargetDetectorRecipe> targetDetectorRecipes)
List of detector recipes attached to target- Parameters:
targetDetectorRecipes
- the value to set- Returns:
- this builder
-
targetResponderRecipes
public Target.Builder targetResponderRecipes(List<TargetResponderRecipe> targetResponderRecipes)
List of responder recipes attached to target- Parameters:
targetResponderRecipes
- the value to set- Returns:
- this builder
-
targetDetails
public Target.Builder targetDetails(TargetDetails targetDetails)
-
inheritedByCompartments
public Target.Builder inheritedByCompartments(List<String> inheritedByCompartments)
List of inherited compartments- Parameters:
inheritedByCompartments
- the value to set- Returns:
- this builder
-
timeCreated
public Target.Builder timeCreated(Date timeCreated)
The date and time the target was created.Format defined by RFC3339.
- Parameters:
timeCreated
- the value to set- Returns:
- this builder
-
timeUpdated
public Target.Builder timeUpdated(Date timeUpdated)
The date and time the target was last updated.Format defined by RFC3339.
- Parameters:
timeUpdated
- the value to set- Returns:
- this builder
-
lifecycleState
public Target.Builder lifecycleState(LifecycleState lifecycleState)
The current lifecycle state of the target- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
lifecyleDetails
public Target.Builder lifecyleDetails(String lifecyleDetails)
A message describing the current lifecycle state in more detail.For example, can be used to provide actionable information for a resource in Failed state. [DEPRECATE]
- Parameters:
lifecyleDetails
- the value to set- Returns:
- this builder
-
freeformTags
public Target.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 Target.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 Target.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
-
build
public Target build()
-
copy
public Target.Builder copy(Target model)
-
-