Package com.datadog.api.client.v2.model
Class CustomRuleRevisionInput
java.lang.Object
com.datadog.api.client.v2.model.CustomRuleRevisionInput
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class CustomRuleRevisionInput
extends Object
A revision of a custom static analysis rule as embedded in a rule supplied by a create or update
request. Nested revisions are sent flat, without a
data/type/
attributes envelope. id, version_id, checksum,
created_at and created_by are server-assigned and read-only; they are
declared so that a ruleset previously read back can be supplied unchanged.-
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 Stringboolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddArgumentsItem(Argument argumentsItem) addTagsItem(String tagsItem) addTestsItem(CustomRuleRevisionTest testsItem) category(CustomRuleRevisionAttributesCategory category) creationMessage(String creationMessage) description(String description) documentationUrl(String documentationUrl) booleanReturn true if this CustomRuleRevisionInput object is equal to o.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>Base64-encoded full descriptionDocumentation URLorg.openapitools.jackson.nullable.JsonNullable<String>getId()Revision identifierWhether the revision should be publishedWhether this is a testing revisionProgramming languageRule severityBase64-encoded short descriptionWhether to use AI for fixesgetTags()Rule tagsgetTests()Rule testsorg.openapitools.jackson.nullable.JsonNullable<List<CustomRuleRevisionTest>>Tree-sitter queryMonotonically increasing version number of the revision.inthashCode()isPublished(Boolean isPublished) voidsetArguments(List<Argument> arguments) voidsetArguments_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<List<Argument>> arguments) voidvoidvoidsetCreationMessage(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) voidvoidsetTags_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<List<String>> tags) voidsetTests(List<CustomRuleRevisionTest> tests) voidsetTests_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<List<CustomRuleRevisionTest>> tests) voidsetTreeSitterQuery(String treeSitterQuery) 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_ID
- 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
-
CustomRuleRevisionInput
public CustomRuleRevisionInput()
-
-
Method Details
-
arguments
-
addArgumentsItem
-
getArguments
Rule arguments- Returns:
- arguments
-
getArguments_JsonNullable
-
setArguments_JsonNullable
-
setArguments
-
category
-
getCategory
Rule category- Returns:
- category
-
setCategory
-
getChecksum
Code checksum- Returns:
- checksum
-
code
-
getCode
Rule code- Returns:
- code
-
setCode
-
getCreatedAt
Creation timestamp- Returns:
- createdAt
-
getCreatedBy
Creator identifier- Returns:
- createdBy
-
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
Base64-encoded 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
-
getId
Revision identifier- Returns:
- id
-
isPublished
-
getIsPublished
Whether the revision should be 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
Base64-encoded short description- Returns:
- shortDescription
-
setShortDescription
-
shouldUseAiFix
-
getShouldUseAiFix
Whether to use AI for fixes- Returns:
- shouldUseAiFix
-
setShouldUseAiFix
-
tags
-
addTagsItem
-
getTags
Rule tags- Returns:
- tags
-
getTags_JsonNullable
-
setTags_JsonNullable
-
setTags
-
tests
-
addTestsItem
-
getTests
Rule tests- Returns:
- tests
-
getTests_JsonNullable
public org.openapitools.jackson.nullable.JsonNullable<List<CustomRuleRevisionTest>> getTests_JsonNullable() -
setTests_JsonNullable
public void setTests_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<List<CustomRuleRevisionTest>> tests) -
setTests
-
treeSitterQuery
-
getTreeSitterQuery
Tree-sitter query- Returns:
- treeSitterQuery
-
setTreeSitterQuery
-
getVersionId
Monotonically increasing version number of the revision.- Returns:
- versionId
-
equals
Return true if this CustomRuleRevisionInput object is equal to o. -
hashCode
public int hashCode() -
toString
-