@Generated(value="https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class AnalysisRequestRule extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
JSON_PROPERTY_CATEGORY |
static String |
JSON_PROPERTY_CHECKSUM |
static String |
JSON_PROPERTY_CODE |
static String |
JSON_PROPERTY_ENTITY_CHECKED |
static String |
JSON_PROPERTY_ID |
static String |
JSON_PROPERTY_LANGUAGE |
static String |
JSON_PROPERTY_REGEX |
static String |
JSON_PROPERTY_SEVERITY |
static String |
JSON_PROPERTY_TREE_SITTER_QUERY |
static String |
JSON_PROPERTY_TYPE |
boolean |
unparsed |
| Constructor and Description |
|---|
AnalysisRequestRule() |
AnalysisRequestRule(String category,
String checksum,
String code,
String id,
String language,
String severity,
String treeSitterQuery,
String type) |
| Modifier and Type | Method and Description |
|---|---|
AnalysisRequestRule |
category(String category) |
AnalysisRequestRule |
checksum(String checksum) |
AnalysisRequestRule |
code(String code) |
AnalysisRequestRule |
entityChecked(String entityChecked) |
boolean |
equals(Object o)
Return true if this AnalysisRequestRule object is equal to o.
|
Map<String,Object> |
getAdditionalProperties()
Return the additional (undeclared) property.
|
Object |
getAdditionalProperty(String key)
Return the additional (undeclared) property with the specified name.
|
String |
getCategory()
The category of the rule (for example,
BEST_PRACTICES, SECURITY). |
String |
getChecksum()
A checksum of the rule definition.
|
String |
getCode()
The base64-encoded rule implementation code.
|
org.openapitools.jackson.nullable.JsonNullable<String> |
getEntityChecked_JsonNullable() |
String |
getEntityChecked()
The code entity type checked by the rule, applicable when rule type is
AST_CHECK. |
String |
getId()
The unique identifier of the rule.
|
String |
getLanguage()
The programming language this rule targets.
|
org.openapitools.jackson.nullable.JsonNullable<String> |
getRegex_JsonNullable() |
String |
getRegex()
A base64-encoded regex pattern used by the rule, applicable when rule type is
REGEX
. |
String |
getSeverity()
The severity of findings from this rule (for example,
ERROR, WARNING
). |
String |
getTreeSitterQuery()
The base64-encoded tree-sitter query used by the rule.
|
String |
getType()
The rule type indicating the detection mechanism (for example,
TREE_SITTER_QUERY). |
int |
hashCode() |
AnalysisRequestRule |
id(String id) |
AnalysisRequestRule |
language(String language) |
AnalysisRequestRule |
putAdditionalProperty(String key,
Object value)
Set the additional (undeclared) property with the specified name and value.
|
AnalysisRequestRule |
regex(String regex) |
void |
setCategory(String category) |
void |
setChecksum(String checksum) |
void |
setCode(String code) |
void |
setEntityChecked_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> entityChecked) |
void |
setEntityChecked(String entityChecked) |
void |
setId(String id) |
void |
setLanguage(String language) |
void |
setRegex_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> regex) |
void |
setRegex(String regex) |
void |
setSeverity(String severity) |
void |
setTreeSitterQuery(String treeSitterQuery) |
void |
setType(String type) |
AnalysisRequestRule |
severity(String severity) |
String |
toString() |
AnalysisRequestRule |
treeSitterQuery(String treeSitterQuery) |
AnalysisRequestRule |
type(String type) |
public boolean unparsed
public static final String JSON_PROPERTY_CATEGORY
public static final String JSON_PROPERTY_CHECKSUM
public static final String JSON_PROPERTY_CODE
public static final String JSON_PROPERTY_ENTITY_CHECKED
public static final String JSON_PROPERTY_ID
public static final String JSON_PROPERTY_LANGUAGE
public static final String JSON_PROPERTY_REGEX
public static final String JSON_PROPERTY_SEVERITY
public static final String JSON_PROPERTY_TREE_SITTER_QUERY
public static final String JSON_PROPERTY_TYPE
public AnalysisRequestRule category(String category)
public String getCategory()
BEST_PRACTICES, SECURITY).public void setCategory(String category)
public AnalysisRequestRule checksum(String checksum)
public String getChecksum()
public void setChecksum(String checksum)
public AnalysisRequestRule code(String code)
public String getCode()
public void setCode(String code)
public AnalysisRequestRule entityChecked(String entityChecked)
@Nullable public String getEntityChecked()
AST_CHECK.public org.openapitools.jackson.nullable.JsonNullable<String> getEntityChecked_JsonNullable()
public void setEntityChecked_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> entityChecked)
public void setEntityChecked(String entityChecked)
public AnalysisRequestRule id(String id)
public String getId()
public void setId(String id)
public AnalysisRequestRule language(String language)
public String getLanguage()
public void setLanguage(String language)
public AnalysisRequestRule regex(String regex)
@Nullable public String getRegex()
REGEX
.public org.openapitools.jackson.nullable.JsonNullable<String> getRegex_JsonNullable()
public void setRegex_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> regex)
public void setRegex(String regex)
public AnalysisRequestRule severity(String severity)
public String getSeverity()
ERROR, WARNING
).public void setSeverity(String severity)
public AnalysisRequestRule treeSitterQuery(String treeSitterQuery)
public String getTreeSitterQuery()
public void setTreeSitterQuery(String treeSitterQuery)
public AnalysisRequestRule type(String type)
public String getType()
TREE_SITTER_QUERY).public void setType(String type)
public AnalysisRequestRule putAdditionalProperty(String key, Object value)
key - The arbitrary key to setvalue - The associated valuepublic Map<String,Object> getAdditionalProperties()
public Object getAdditionalProperty(String key)
key - The arbitrary key to getpublic boolean equals(Object o)
Copyright © 2026. All rights reserved.