Package com.datadog.api.client.v2.model
Class CustomRuleRevisionAttributes
java.lang.Object
com.datadog.api.client.v2.model.CustomRuleRevisionAttributes
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class CustomRuleRevisionAttributes
extends Object
Attributes of a custom rule revision, including code, metadata, and 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 Stringboolean -
Constructor Summary
ConstructorsConstructorDescriptionCustomRuleRevisionAttributes(List<Argument> arguments, CustomRuleRevisionAttributesCategory category, String checksum, String code, OffsetDateTime createdAt, String createdBy, String creationMessage, String description, Boolean isPublished, Boolean isTesting, Language language, CustomRuleRevisionAttributesSeverity severity, String shortDescription, Boolean shouldUseAiFix, List<String> tags, List<CustomRuleRevisionTest> tests, String treeSitterQuery, Long versionId) -
Method Summary
Modifier and TypeMethodDescriptionaddArgumentsItem(Argument argumentsItem) addTagsItem(String tagsItem) addTestsItem(CustomRuleRevisionTest testsItem) category(CustomRuleRevisionAttributesCategory category) createdAt(OffsetDateTime createdAt) creationMessage(String creationMessage) description(String description) documentationUrl(String documentationUrl) booleanReturn true if this CustomRuleRevisionAttributes object is equal to o.Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Rule argumentsRule categoryCode checksumgetCode()Rule codeCreation timestampCreator identifierRevision creation messagegetCve()Associated CVEorg.openapitools.jackson.nullable.JsonNullable<String>getCwe()Associated CWEorg.openapitools.jackson.nullable.JsonNullable<String>Full descriptionDocumentation URLorg.openapitools.jackson.nullable.JsonNullable<String>Whether the revision is publishedWhether this is a testing revisionProgramming languageRule severityShort descriptionWhether to use AI for fixesgetTags()Rule tagsgetTests()Rule testsTree-sitter queryMonotonically increasing version number of the revision.inthashCode()isPublished(Boolean isPublished) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetArguments(List<Argument> arguments) voidvoidsetChecksum(String checksum) voidvoidsetCreatedAt(OffsetDateTime createdAt) voidsetCreatedBy(String createdBy) voidsetCreationMessage(String creationMessage) voidvoidsetCve_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> cve) voidvoidsetCwe_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> cwe) voidsetDescription(String description) voidsetDocumentationUrl(String documentationUrl) voidsetDocumentationUrl_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> documentationUrl) voidsetIsPublished(Boolean isPublished) voidsetIsTesting(Boolean isTesting) voidsetLanguage(Language language) voidvoidsetShortDescription(String shortDescription) voidsetShouldUseAiFix(Boolean shouldUseAiFix) voidvoidsetTests(List<CustomRuleRevisionTest> tests) voidsetTreeSitterQuery(String treeSitterQuery) voidsetVersionId(Long versionId) severity(CustomRuleRevisionAttributesSeverity severity) shortDescription(String shortDescription) shouldUseAiFix(Boolean shouldUseAiFix) tests(List<CustomRuleRevisionTest> 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_IS_PUBLISHED
- See Also:
-
JSON_PROPERTY_IS_TESTING
- See Also:
-
JSON_PROPERTY_LANGUAGE
- 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_VERSION_ID
- See Also:
-
-
Constructor Details
-
CustomRuleRevisionAttributes
public CustomRuleRevisionAttributes() -
CustomRuleRevisionAttributes
public CustomRuleRevisionAttributes(List<Argument> arguments, CustomRuleRevisionAttributesCategory category, String checksum, String code, OffsetDateTime createdAt, String createdBy, String creationMessage, String description, Boolean isPublished, Boolean isTesting, Language language, CustomRuleRevisionAttributesSeverity severity, String shortDescription, Boolean shouldUseAiFix, List<String> tags, List<CustomRuleRevisionTest> tests, String treeSitterQuery, Long versionId)
-
-
Method Details
-
arguments
-
addArgumentsItem
-
getArguments
Rule arguments- Returns:
- arguments
-
setArguments
-
category
-
getCategory
Rule category- Returns:
- category
-
setCategory
-
checksum
-
getChecksum
Code checksum- Returns:
- checksum
-
setChecksum
-
code
-
getCode
Rule code- Returns:
- code
-
setCode
-
createdAt
-
getCreatedAt
Creation timestamp- Returns:
- createdAt
-
setCreatedAt
-
createdBy
-
getCreatedBy
Creator identifier- Returns:
- createdBy
-
setCreatedBy
-
creationMessage
-
getCreationMessage
Revision creation message- Returns:
- creationMessage
-
setCreationMessage
-
cve
-
getCve
Associated CVE- Returns:
- cve
-
getCve_JsonNullable
-
setCve_JsonNullable
-
setCve
-
cwe
-
getCwe
Associated CWE- Returns:
- cwe
-
getCwe_JsonNullable
-
setCwe_JsonNullable
-
setCwe
-
description
-
getDescription
Full description- Returns:
- description
-
setDescription
-
documentationUrl
-
getDocumentationUrl
Documentation URL- Returns:
- documentationUrl
-
getDocumentationUrl_JsonNullable
-
setDocumentationUrl_JsonNullable
public void setDocumentationUrl_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> documentationUrl) -
setDocumentationUrl
-
isPublished
-
getIsPublished
Whether the revision is published- Returns:
- isPublished
-
setIsPublished
-
isTesting
-
getIsTesting
Whether this is a testing revision- Returns:
- isTesting
-
setIsTesting
-
language
-
getLanguage
Programming language- Returns:
- language
-
setLanguage
-
severity
-
getSeverity
Rule severity- Returns:
- severity
-
setSeverity
-
shortDescription
-
getShortDescription
Short description- Returns:
- shortDescription
-
setShortDescription
-
shouldUseAiFix
-
getShouldUseAiFix
Whether to use AI for fixes- Returns:
- shouldUseAiFix
-
setShouldUseAiFix
-
tags
-
addTagsItem
-
getTags
Rule tags- Returns:
- tags
-
setTags
-
tests
-
addTestsItem
-
getTests
Rule tests- Returns:
- tests
-
setTests
-
treeSitterQuery
-
getTreeSitterQuery
Tree-sitter query- Returns:
- treeSitterQuery
-
setTreeSitterQuery
-
versionId
-
getVersionId
Monotonically increasing version number of the revision.- 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:
- CustomRuleRevisionAttributes
-
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 CustomRuleRevisionAttributes object is equal to o. -
hashCode
public int hashCode() -
toString
-