Package com.datadog.api.client.v2.model
Class AnalysisRequestRule
java.lang.Object
com.datadog.api.client.v2.model.AnalysisRequestRule
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class AnalysisRequestRule
extends Object
A static analysis rule to apply during code analysis. Clients forward complete rule objects
returned by the rulesets endpoints, so every member of that resource is declared here; only
id, category, checksum, language,
severity, tree_sitter_query, entity_checked, regex,
type and code are read by this operation and the rest are ignored. The
schema stays open so that any member beyond the forwarded rule resource is reported as a
promotion candidate rather than rejected; it can be closed once that telemetry confirms none
remain.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringboolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddArgumentsItem(AnalysisRequestRuleArgument argumentsItem) addTagsItem(String tagsItem) addTestsItem(AnalysisRequestRuleTest testsItem) arguments(List<AnalysisRequestRuleArgument> arguments) creationMessage(String creationMessage) description(String description) documentationUrl(String documentationUrl) entityChecked(String entityChecked) booleanReturn true if this AnalysisRequestRule object is equal to o.Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.The configurable arguments accepted by the rule.The category of the rule (for example,BEST_PRACTICES,SECURITY).A checksum of the rule definition.getCode()The base64-encoded rule implementation code.The date and time when the rule was created.The identifier of the user or system that created the rule.The message associated with the custom rule revision.getCve()The CVE identifier associated with the rule.getCwe()The CWE identifier associated with the rule.A detailed explanation of what the rule detects.A URL pointing to the rule documentation.The code entity type checked by the rule, applicable when rule type isAST_CHECK.org.openapitools.jackson.nullable.JsonNullable<String>getId()The unique identifier of the rule.Whether the rule is published.Whether the rule is in testing mode.The programming language this rule targets.The date and time when the rule was last modified.The identifier of the user or system that last updated the rule.getName()The name of the rule.getRegex()A base64-encoded regex pattern used by the rule, applicable when rule type isREGEX.org.openapitools.jackson.nullable.JsonNullable<String>The severity of findings from this rule (for example,ERROR,WARNING).A brief summary of what the rule detects.Whether an AI-generated fix should be offered.getTags()Tags associated with the custom rule revision.getTests()The test cases associated with the rule.The base64-encoded tree-sitter query used by the rule.getType()The rule type indicating the detection mechanism (for example,TREE_SITTER_QUERY).The custom rule revision version.inthashCode()isPublished(Boolean isPublished) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetArguments(List<AnalysisRequestRuleArgument> arguments) voidsetCategory(String category) voidsetChecksum(String checksum) voidvoidsetCreationMessage(String creationMessage) voidvoidvoidsetDescription(String description) voidsetDocumentationUrl(String documentationUrl) voidsetEntityChecked(String entityChecked) voidsetEntityChecked_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> entityChecked) voidvoidsetIsPublished(Boolean isPublished) voidsetIsTesting(Boolean isTesting) voidsetLanguage(String language) voidvoidvoidsetRegex_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> regex) voidsetSeverity(String severity) voidsetShortDescription(String shortDescription) voidsetShouldUseAiFix(Boolean shouldUseAiFix) voidvoidsetTests(List<AnalysisRequestRuleTest> tests) voidsetTreeSitterQuery(String treeSitterQuery) voidvoidsetVersionId(Long versionId) shortDescription(String shortDescription) shouldUseAiFix(Boolean shouldUseAiFix) tests(List<AnalysisRequestRuleTest> tests) toString()treeSitterQuery(String treeSitterQuery)
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_ARGUMENTS
- See Also:
-
JSON_PROPERTY_CATEGORY
- See Also:
-
JSON_PROPERTY_CHECKSUM
- See Also:
-
JSON_PROPERTY_CODE
- See Also:
-
JSON_PROPERTY_CREATED_AT
- See Also:
-
JSON_PROPERTY_CREATED_BY
- See Also:
-
JSON_PROPERTY_CREATION_MESSAGE
- See Also:
-
JSON_PROPERTY_CVE
- See Also:
-
JSON_PROPERTY_CWE
- See Also:
-
JSON_PROPERTY_DESCRIPTION
- See Also:
-
JSON_PROPERTY_DOCUMENTATION_URL
- See Also:
-
JSON_PROPERTY_ENTITY_CHECKED
- See Also:
-
JSON_PROPERTY_ID
- See Also:
-
JSON_PROPERTY_IS_PUBLISHED
- See Also:
-
JSON_PROPERTY_IS_TESTING
- See Also:
-
JSON_PROPERTY_LANGUAGE
- See Also:
-
JSON_PROPERTY_LAST_UPDATED_AT
- See Also:
-
JSON_PROPERTY_LAST_UPDATED_BY
- See Also:
-
JSON_PROPERTY_NAME
- See Also:
-
JSON_PROPERTY_REGEX
- See Also:
-
JSON_PROPERTY_SEVERITY
- See Also:
-
JSON_PROPERTY_SHORT_DESCRIPTION
- See Also:
-
JSON_PROPERTY_SHOULD_USE_AI_FIX
- See Also:
-
JSON_PROPERTY_TAGS
- See Also:
-
JSON_PROPERTY_TESTS
- See Also:
-
JSON_PROPERTY_TREE_SITTER_QUERY
- See Also:
-
JSON_PROPERTY_TYPE
- See Also:
-
JSON_PROPERTY_VERSION_ID
- See Also:
-
-
Constructor Details
-
AnalysisRequestRule
public AnalysisRequestRule() -
AnalysisRequestRule
-
-
Method Details
-
arguments
-
addArgumentsItem
-
getArguments
The configurable arguments accepted by the rule. Forwarded from the rulesets endpoints; ignored by this operation.- Returns:
- arguments
-
setArguments
-
category
-
getCategory
The category of the rule (for example,BEST_PRACTICES,SECURITY).- Returns:
- category
-
setCategory
-
checksum
-
getChecksum
A checksum of the rule definition.- Returns:
- checksum
-
setChecksum
-
code
-
getCode
The base64-encoded rule implementation code.- Returns:
- code
-
setCode
-
getCreatedAt
The date and time when the rule was created. Server-assigned by the rulesets endpoints; ignored by this operation.- Returns:
- createdAt
-
getCreatedBy
The identifier of the user or system that created the rule. Server-assigned by the rulesets endpoints; ignored by this operation.- Returns:
- createdBy
-
creationMessage
-
getCreationMessage
The message associated with the custom rule revision. Forwarded from the custom rulesets endpoints; ignored by this operation.- Returns:
- creationMessage
-
setCreationMessage
-
cve
-
getCve
The CVE identifier associated with the rule. Forwarded from the rulesets endpoints; ignored by this operation.- Returns:
- cve
-
setCve
-
cwe
-
getCwe
The CWE identifier associated with the rule. Forwarded from the rulesets endpoints; ignored by this operation.- Returns:
- cwe
-
setCwe
-
description
-
getDescription
A detailed explanation of what the rule detects. Forwarded from the rulesets endpoints; ignored by this operation.- Returns:
- description
-
setDescription
-
documentationUrl
-
getDocumentationUrl
A URL pointing to the rule documentation. Forwarded from the rulesets endpoints; ignored by this operation.- Returns:
- documentationUrl
-
setDocumentationUrl
-
entityChecked
-
getEntityChecked
The code entity type checked by the rule, applicable when rule type isAST_CHECK.- Returns:
- entityChecked
-
getEntityChecked_JsonNullable
-
setEntityChecked_JsonNullable
public void setEntityChecked_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> entityChecked) -
setEntityChecked
-
id
-
getId
The unique identifier of the rule.- Returns:
- id
-
setId
-
isPublished
-
getIsPublished
Whether the rule is published. Forwarded from the rulesets endpoints; ignored by this operation.- Returns:
- isPublished
-
setIsPublished
-
isTesting
-
getIsTesting
Whether the rule is in testing mode. Forwarded from the rulesets endpoints; ignored by this operation.- Returns:
- isTesting
-
setIsTesting
-
language
-
getLanguage
The programming language this rule targets.- Returns:
- language
-
setLanguage
-
getLastUpdatedAt
The date and time when the rule was last modified. Server-assigned by the rulesets endpoints; ignored by this operation.- Returns:
- lastUpdatedAt
-
getLastUpdatedBy
The identifier of the user or system that last updated the rule. Server-assigned by the rulesets endpoints; ignored by this operation.- Returns:
- lastUpdatedBy
-
name
-
getName
The name of the rule. Forwarded from the rulesets endpoints; ignored by this operation.- Returns:
- name
-
setName
-
regex
-
getRegex
A base64-encoded regex pattern used by the rule, applicable when rule type isREGEX.- Returns:
- regex
-
getRegex_JsonNullable
-
setRegex_JsonNullable
-
setRegex
-
severity
-
getSeverity
The severity of findings from this rule (for example,ERROR,WARNING).- Returns:
- severity
-
setSeverity
-
shortDescription
-
getShortDescription
A brief summary of what the rule detects. Forwarded from the rulesets endpoints; ignored by this operation.- Returns:
- shortDescription
-
setShortDescription
-
shouldUseAiFix
-
getShouldUseAiFix
Whether an AI-generated fix should be offered. Forwarded from the rulesets endpoints; ignored by this operation.- Returns:
- shouldUseAiFix
-
setShouldUseAiFix
-
tags
-
addTagsItem
-
getTags
Tags associated with the custom rule revision. Forwarded from the custom rulesets endpoints; ignored by this operation.- Returns:
- tags
-
setTags
-
tests
-
addTestsItem
-
getTests
The test cases associated with the rule. Forwarded from the rulesets endpoints; ignored by this operation.- Returns:
- tests
-
setTests
-
treeSitterQuery
-
getTreeSitterQuery
The base64-encoded tree-sitter query used by the rule.- Returns:
- treeSitterQuery
-
setTreeSitterQuery
-
type
-
getType
The rule type indicating the detection mechanism (for example,TREE_SITTER_QUERY).- Returns:
- type
-
setType
-
versionId
-
getVersionId
The custom rule revision version. Forwarded from the custom rulesets endpoints; ignored by this operation.- Returns:
- versionId
-
setVersionId
-
putAdditionalProperty
Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.- Parameters:
key- The arbitrary key to setvalue- The associated value- Returns:
- AnalysisRequestRule
-
getAdditionalProperties
Return the additional (undeclared) property.- Returns:
- The additional properties
-
getAdditionalProperty
Return the additional (undeclared) property with the specified name.- Parameters:
key- The arbitrary key to get- Returns:
- The specific additional property for the given key
-
equals
Return true if this AnalysisRequestRule object is equal to o. -
hashCode
public int hashCode() -
toString
-