Package com.datadog.api.client.v2.model
Class GetMultipleRulesetsResponseDataAttributesRulesetsItemsRulesItems
java.lang.Object
com.datadog.api.client.v2.model.GetMultipleRulesetsResponseDataAttributesRulesetsItemsRulesItems
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class GetMultipleRulesetsResponseDataAttributesRulesetsItemsRulesItems
extends Object
A static analysis rule within a ruleset, including its definition, metadata, and associated test
cases.
-
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 Stringboolean -
Constructor Summary
ConstructorsConstructorDescriptionGetMultipleRulesetsResponseDataAttributesRulesetsItemsRulesItems(List<GetMultipleRulesetsResponseDataAttributesRulesetsItemsRulesItemsArgumentsItems> arguments, String category, String checksum, String code, OffsetDateTime createdAt, String createdBy, String description, String id, Boolean isPublished, Boolean isTesting, String language, OffsetDateTime lastUpdatedAt, String lastUpdatedBy, String name, String severity, String shortDescription, Boolean shouldUseAiFix, List<GetMultipleRulesetsResponseDataAttributesRulesetsItemsRulesItemsTestsItems> tests, String type) -
Method Summary
Modifier and TypeMethodDescriptionaddArgumentsItem(GetMultipleRulesetsResponseDataAttributesRulesetsItemsRulesItemsArgumentsItems argumentsItem) arguments(List<GetMultipleRulesetsResponseDataAttributesRulesetsItemsRulesItemsArgumentsItems> arguments) createdAt(OffsetDateTime createdAt) description(String description) documentationUrl(String documentationUrl) entityChecked(String entityChecked) booleanReturn true if this GetMultipleRulesetsResponseDataAttributesRulesetsItemsRulesItems object is equal to o.Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.The list of configurable arguments accepted by this rule.The category classifying the type of issue this rule detects (e.g., security, style, performance).A checksum of the rule definition used to detect changes.getCode()The rule implementation code used by the static analysis engine.The date and time when the rule was created.The identifier of the user or system that created the rule.getCve()The CVE identifier associated with the vulnerability this rule detects, if applicable.getCwe()The CWE identifier associated with the weakness category this rule detects, if applicable.A detailed explanation of what the rule detects and why it matters.A URL pointing to additional documentation for this rule.The code entity type (e.g., function, class, variable) that this rule inspects.getId()The unique identifier of the rule, which is the same as its name.Indicates whether the rule is publicly published and available to all users.Indicates whether the rule is in testing mode and not yet promoted to production.The programming language this rule applies to.The date and time when the rule was last modified.The identifier of the user or system that last updated the rule.getName()The unique name identifying this rule within its ruleset.getRegex()A regular expression pattern used by the rule for pattern-based detection.The severity level of findings produced by this rule (e.g., ERROR, WARNING, NOTICE).A brief summary of what the rule detects, suitable for display in listings.Indicates whether an AI-generated fix suggestion should be offered for findings from this rule.getTests()The list of test cases used to validate the rule's behavior.The Tree-sitter query expression used by the rule to match code patterns in the AST.getType()The rule type indicating the detection mechanism used (e.g., tree_sitter, regex).inthashCode()isPublished(Boolean isPublished) lastUpdatedAt(OffsetDateTime lastUpdatedAt) lastUpdatedBy(String lastUpdatedBy) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetArguments(List<GetMultipleRulesetsResponseDataAttributesRulesetsItemsRulesItemsArgumentsItems> arguments) voidsetCategory(String category) voidsetChecksum(String checksum) voidvoidsetCreatedAt(OffsetDateTime createdAt) voidsetCreatedBy(String createdBy) voidvoidvoidsetDescription(String description) voidsetDocumentationUrl(String documentationUrl) voidsetEntityChecked(String entityChecked) voidvoidsetIsPublished(Boolean isPublished) voidsetIsTesting(Boolean isTesting) voidsetLanguage(String language) voidsetLastUpdatedAt(OffsetDateTime lastUpdatedAt) voidsetLastUpdatedBy(String lastUpdatedBy) voidvoidvoidsetSeverity(String severity) voidsetShortDescription(String shortDescription) voidsetShouldUseAiFix(Boolean shouldUseAiFix) voidvoidsetTreeSitterQuery(String treeSitterQuery) voidshortDescription(String shortDescription) shouldUseAiFix(Boolean shouldUseAiFix) 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_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_TESTS
- See Also:
-
JSON_PROPERTY_TREE_SITTER_QUERY
- See Also:
-
JSON_PROPERTY_TYPE
- See Also:
-
-
Constructor Details
-
GetMultipleRulesetsResponseDataAttributesRulesetsItemsRulesItems
public GetMultipleRulesetsResponseDataAttributesRulesetsItemsRulesItems() -
GetMultipleRulesetsResponseDataAttributesRulesetsItemsRulesItems
public GetMultipleRulesetsResponseDataAttributesRulesetsItemsRulesItems(List<GetMultipleRulesetsResponseDataAttributesRulesetsItemsRulesItemsArgumentsItems> arguments, String category, String checksum, String code, OffsetDateTime createdAt, String createdBy, String description, String id, Boolean isPublished, Boolean isTesting, String language, OffsetDateTime lastUpdatedAt, String lastUpdatedBy, String name, String severity, String shortDescription, Boolean shouldUseAiFix, List<GetMultipleRulesetsResponseDataAttributesRulesetsItemsRulesItemsTestsItems> tests, String type)
-
-
Method Details
-
arguments
-
addArgumentsItem
public GetMultipleRulesetsResponseDataAttributesRulesetsItemsRulesItems addArgumentsItem(GetMultipleRulesetsResponseDataAttributesRulesetsItemsRulesItemsArgumentsItems argumentsItem) -
getArguments
public List<GetMultipleRulesetsResponseDataAttributesRulesetsItemsRulesItemsArgumentsItems> getArguments()The list of configurable arguments accepted by this rule.- Returns:
- arguments
-
setArguments
public void setArguments(List<GetMultipleRulesetsResponseDataAttributesRulesetsItemsRulesItemsArgumentsItems> arguments) -
category
-
getCategory
The category classifying the type of issue this rule detects (e.g., security, style, performance).- Returns:
- category
-
setCategory
-
checksum
-
getChecksum
A checksum of the rule definition used to detect changes.- Returns:
- checksum
-
setChecksum
-
code
-
getCode
The rule implementation code used by the static analysis engine.- Returns:
- code
-
setCode
-
createdAt
public GetMultipleRulesetsResponseDataAttributesRulesetsItemsRulesItems createdAt(OffsetDateTime createdAt) -
getCreatedAt
The date and time when the rule was created.- Returns:
- createdAt
-
setCreatedAt
-
createdBy
-
getCreatedBy
The identifier of the user or system that created the rule.- Returns:
- createdBy
-
setCreatedBy
-
cve
-
getCve
The CVE identifier associated with the vulnerability this rule detects, if applicable.- Returns:
- cve
-
setCve
-
cwe
-
getCwe
The CWE identifier associated with the weakness category this rule detects, if applicable.- Returns:
- cwe
-
setCwe
-
description
public GetMultipleRulesetsResponseDataAttributesRulesetsItemsRulesItems description(String description) -
getDescription
A detailed explanation of what the rule detects and why it matters.- Returns:
- description
-
setDescription
-
documentationUrl
public GetMultipleRulesetsResponseDataAttributesRulesetsItemsRulesItems documentationUrl(String documentationUrl) -
getDocumentationUrl
A URL pointing to additional documentation for this rule.- Returns:
- documentationUrl
-
setDocumentationUrl
-
entityChecked
public GetMultipleRulesetsResponseDataAttributesRulesetsItemsRulesItems entityChecked(String entityChecked) -
getEntityChecked
The code entity type (e.g., function, class, variable) that this rule inspects.- Returns:
- entityChecked
-
setEntityChecked
-
id
-
getId
The unique identifier of the rule, which is the same as its name.- Returns:
- id
-
setId
-
isPublished
public GetMultipleRulesetsResponseDataAttributesRulesetsItemsRulesItems isPublished(Boolean isPublished) -
getIsPublished
Indicates whether the rule is publicly published and available to all users.- Returns:
- isPublished
-
setIsPublished
-
isTesting
public GetMultipleRulesetsResponseDataAttributesRulesetsItemsRulesItems isTesting(Boolean isTesting) -
getIsTesting
Indicates whether the rule is in testing mode and not yet promoted to production.- Returns:
- isTesting
-
setIsTesting
-
language
-
getLanguage
The programming language this rule applies to.- Returns:
- language
-
setLanguage
-
lastUpdatedAt
public GetMultipleRulesetsResponseDataAttributesRulesetsItemsRulesItems lastUpdatedAt(OffsetDateTime lastUpdatedAt) -
getLastUpdatedAt
The date and time when the rule was last modified.- Returns:
- lastUpdatedAt
-
setLastUpdatedAt
-
lastUpdatedBy
public GetMultipleRulesetsResponseDataAttributesRulesetsItemsRulesItems lastUpdatedBy(String lastUpdatedBy) -
getLastUpdatedBy
The identifier of the user or system that last updated the rule.- Returns:
- lastUpdatedBy
-
setLastUpdatedBy
-
name
-
getName
The unique name identifying this rule within its ruleset.- Returns:
- name
-
setName
-
regex
-
getRegex
A regular expression pattern used by the rule for pattern-based detection.- Returns:
- regex
-
setRegex
-
severity
-
getSeverity
The severity level of findings produced by this rule (e.g., ERROR, WARNING, NOTICE).- Returns:
- severity
-
setSeverity
-
shortDescription
public GetMultipleRulesetsResponseDataAttributesRulesetsItemsRulesItems shortDescription(String shortDescription) -
getShortDescription
A brief summary of what the rule detects, suitable for display in listings.- Returns:
- shortDescription
-
setShortDescription
-
shouldUseAiFix
public GetMultipleRulesetsResponseDataAttributesRulesetsItemsRulesItems shouldUseAiFix(Boolean shouldUseAiFix) -
getShouldUseAiFix
Indicates whether an AI-generated fix suggestion should be offered for findings from this rule.- Returns:
- shouldUseAiFix
-
setShouldUseAiFix
-
tests
-
addTestsItem
-
getTests
The list of test cases used to validate the rule's behavior.- Returns:
- tests
-
setTests
public void setTests(List<GetMultipleRulesetsResponseDataAttributesRulesetsItemsRulesItemsTestsItems> tests) -
treeSitterQuery
public GetMultipleRulesetsResponseDataAttributesRulesetsItemsRulesItems treeSitterQuery(String treeSitterQuery) -
getTreeSitterQuery
The Tree-sitter query expression used by the rule to match code patterns in the AST.- Returns:
- treeSitterQuery
-
setTreeSitterQuery
-
type
-
getType
The rule type indicating the detection mechanism used (e.g., tree_sitter, regex).- Returns:
- type
-
setType
-
putAdditionalProperty
public GetMultipleRulesetsResponseDataAttributesRulesetsItemsRulesItems putAdditionalProperty(String key, Object value) 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:
- GetMultipleRulesetsResponseDataAttributesRulesetsItemsRulesItems
-
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 GetMultipleRulesetsResponseDataAttributesRulesetsItemsRulesItems object is equal to o. -
hashCode
public int hashCode() -
toString
-