Package com.datadog.api.client.v2.model
Class CustomRuleRevisionInputAttributes
java.lang.Object
com.datadog.api.client.v2.model.CustomRuleRevisionInputAttributes
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class CustomRuleRevisionInputAttributes
extends Object
Input attributes for creating or updating a custom rule revision.
-
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
ConstructorsConstructorDescriptionCustomRuleRevisionInputAttributes(List<Argument> arguments, CustomRuleRevisionAttributesCategory category, String code, String creationMessage, String description, Boolean isPublished, Boolean isTesting, Language language, CustomRuleRevisionAttributesSeverity severity, String shortDescription, Boolean shouldUseAiFix, List<String> tags, List<CustomRuleRevisionTest> tests, String treeSitterQuery) -
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 CustomRuleRevisionInputAttributes object is equal to o.Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Rule argumentsRule categoryCode checksum.getCode()Rule codeCreation timestamp.Creator identifier.Revision 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) 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) voidvoidsetTests(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_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
-
CustomRuleRevisionInputAttributes
public CustomRuleRevisionInputAttributes() -
CustomRuleRevisionInputAttributes
public CustomRuleRevisionInputAttributes(List<Argument> arguments, CustomRuleRevisionAttributesCategory category, String code, String creationMessage, String description, Boolean isPublished, Boolean isTesting, Language language, CustomRuleRevisionAttributesSeverity severity, String shortDescription, Boolean shouldUseAiFix, List<String> tags, List<CustomRuleRevisionTest> tests, String treeSitterQuery)
-
-
Method Details
-
arguments
-
addArgumentsItem
-
getArguments
Rule arguments- Returns:
- arguments
-
setArguments
-
category
-
getCategory
Rule category- Returns:
- category
-
setCategory
-
getChecksum
Code checksum. Derived by the API fromcode; ignored on write.- Returns:
- checksum
-
code
-
getCode
Rule code- Returns:
- code
-
setCode
-
getCreatedAt
Creation timestamp. Set by the API; ignored on write.- Returns:
- createdAt
-
getCreatedBy
Creator identifier. Set by the API from the caller; ignored on write.- 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
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
-
getVersionId
Monotonically increasing version number of the revision. Assigned by the API; ignored on write.- Returns:
- versionId
-
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:
- CustomRuleRevisionInputAttributes
-
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 CustomRuleRevisionInputAttributes object is equal to o. -
hashCode
public int hashCode() -
toString
-