@Generated(value="OracleSDKGenerator", comments="API Version: 20200131") public final class TargetDetectorRecipe extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
A TargetDetectorRecipe resource contains a specific instance of one of the supported detector types (for example, activity, configuration, or threat) in which some settings can be modified specifically for a single target.
A TargetDetectorRecipe resource: * Is effectively a copy of a DetectorRecipe resource in which
users can make very limited changes if it’s Oracle-managed, and more changes if it’s
user-managed. * Is visible on the Cloud Guard Targets, Target Details page. * Is located in a
specific OCI compartment. * Can be modified by users, programmatically or through the UI. *
Changes that can be made here override any settings in the corresponding DetectorRecipe, of which
the TargetDetectorRecipe resource is effectively a copy, created when the detector recipe is
attached to the target.
Note: Objects should always be created or deserialized using the TargetDetectorRecipe.Builder
. This model
distinguishes fields that are null
because they are unset from fields that are explicitly
set to null
. This is done in the setter methods of the TargetDetectorRecipe.Builder
, which maintain a
set of all explicitly set fields called TargetDetectorRecipe.Builder.__explicitlySet__
. The hashCode()
and equals(Object)
methods are implemented to take the explicitly set
fields into account. The constructor, on the other hand, does not take the explicitly set fields
into account (since the constructor cannot distinguish explicit null
from unset null
).
Modifier and Type | Class and Description |
---|---|
static class |
TargetDetectorRecipe.Builder |
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and Description |
---|
TargetDetectorRecipe(String id,
String displayName,
String description,
String compartmentId,
String detectorRecipeId,
OwnerType owner,
DetectorEnum detector,
List<TargetDetectorRecipeDetectorRule> detectorRules,
List<TargetDetectorRecipeDetectorRule> effectiveDetectorRules,
Date timeCreated,
Date timeUpdated,
LifecycleState lifecycleState,
List<ResourceLock> locks,
DetectorRecipeEnum detectorRecipeType,
Integer sourceDataRetention)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static TargetDetectorRecipe.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
String |
getCompartmentId()
Compartment OCID of the detector recipe
|
String |
getDescription()
Detector recipe description.
|
DetectorEnum |
getDetector()
Type of detector
|
String |
getDetectorRecipeId()
Unique identifier for of original Oracle-managed detector recipe on which the
TargetDetectorRecipe is based
|
DetectorRecipeEnum |
getDetectorRecipeType()
Recipe type ( STANDARD, ENTERPRISE )
|
List<TargetDetectorRecipeDetectorRule> |
getDetectorRules()
List of detector rules for the detector recipe - user input
|
String |
getDisplayName()
Display name of the detector recipe
|
List<TargetDetectorRecipeDetectorRule> |
getEffectiveDetectorRules()
List of currently enabled detector rules for the detector type for recipe after applying
defaults
|
String |
getId()
OCID for the detector recipe
|
LifecycleState |
getLifecycleState()
The current lifecycle state of the resource
|
List<ResourceLock> |
getLocks()
Locks associated with this resource.
|
OwnerType |
getOwner()
Owner of the detector recipe
|
Integer |
getSourceDataRetention()
The number of days for which source data is retained
|
Date |
getTimeCreated()
The date and time the target detector recipe was created.
|
Date |
getTimeUpdated()
The date and time the target detector recipe was last updated.
|
int |
hashCode() |
TargetDetectorRecipe.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated @ConstructorProperties(value={"id","displayName","description","compartmentId","detectorRecipeId","owner","detector","detectorRules","effectiveDetectorRules","timeCreated","timeUpdated","lifecycleState","locks","detectorRecipeType","sourceDataRetention"}) public TargetDetectorRecipe(String id, String displayName, String description, String compartmentId, String detectorRecipeId, OwnerType owner, DetectorEnum detector, List<TargetDetectorRecipeDetectorRule> detectorRules, List<TargetDetectorRecipeDetectorRule> effectiveDetectorRules, Date timeCreated, Date timeUpdated, LifecycleState lifecycleState, List<ResourceLock> locks, DetectorRecipeEnum detectorRecipeType, Integer sourceDataRetention)
public static TargetDetectorRecipe.Builder builder()
Create a new builder.
public TargetDetectorRecipe.Builder toBuilder()
public String getId()
OCID for the detector recipe
public String getDisplayName()
Display name of the detector recipe
public String getDescription()
Detector recipe description.
public String getCompartmentId()
Compartment OCID of the detector recipe
public String getDetectorRecipeId()
Unique identifier for of original Oracle-managed detector recipe on which the TargetDetectorRecipe is based
public OwnerType getOwner()
Owner of the detector recipe
public DetectorEnum getDetector()
Type of detector
public List<TargetDetectorRecipeDetectorRule> getDetectorRules()
List of detector rules for the detector recipe - user input
public List<TargetDetectorRecipeDetectorRule> getEffectiveDetectorRules()
List of currently enabled detector rules for the detector type for recipe after applying defaults
public Date getTimeCreated()
The date and time the target detector recipe was created. Format defined by RFC3339.
public Date getTimeUpdated()
The date and time the target detector recipe was last updated. Format defined by RFC3339.
public LifecycleState getLifecycleState()
The current lifecycle state of the resource
public List<ResourceLock> getLocks()
Locks associated with this resource.
public DetectorRecipeEnum getDetectorRecipeType()
Recipe type ( STANDARD, ENTERPRISE )
public Integer getSourceDataRetention()
The number of days for which source data is retained
public String toString()
toString
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.
includeByteArrayContents
- true to include the full contents of byte arrayspublic boolean equals(Object o)
equals
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public int hashCode()
hashCode
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Copyright © 2016–2024. All rights reserved.