Package com.datadog.api.client.v2.model
Class AiPromptResponseAttributes
java.lang.Object
com.datadog.api.client.v2.model.AiPromptResponseAttributes
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class AiPromptResponseAttributes
extends Object
Response attributes of an AI prompt.
-
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 Stringboolean -
Constructor Summary
ConstructorsConstructorDescriptionAiPromptResponseAttributes(CustomRuleRevisionAttributesCategory category, String checksum, String content, String description, List<String> directories, AiCustomRuleRevisionExecutionMode executionMode, List<String> fileSearchKeywords, List<String> globs, Boolean isDefault, Boolean isTesting, List<String> resultKeywordsExclude, String ruleVersion, CustomRuleRevisionAttributesSeverity severity, String shortDescription) -
Method Summary
Modifier and TypeMethodDescriptionaddDirectoriesItem(String directoriesItem) addFileSearchKeywordsItem(String fileSearchKeywordsItem) addGlobsItem(String globsItem) addResultKeywordsExcludeItem(String resultKeywordsExcludeItem) category(CustomRuleRevisionAttributesCategory category) description(String description) directories(List<String> directories) booleanReturn true if this AiPromptResponseAttributes object is equal to o.executionMode(AiCustomRuleRevisionExecutionMode executionMode) fileSearchKeywords(List<String> fileSearchKeywords) Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Rule categoryChecksum of the prompt content.Base64-encoded AI prompt content.getCwe()The CWE identifier associated with this prompt.Base64-encoded full description.Directory patterns this prompt applies to.The execution mode for an AI rule revision.Keywords used to search for relevant files.getGlobs()File glob patterns this prompt applies to.Whether this is a default Datadog prompt.Whether this prompt is for testing only.Programming languageKeywords to exclude from results.The version of the rule this prompt is associated with.Rule severityBase64-encoded short description.inthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.resultKeywordsExclude(List<String> resultKeywordsExclude) ruleVersion(String ruleVersion) voidvoidsetChecksum(String checksum) voidsetContent(String content) voidvoidsetDescription(String description) voidsetDirectories(List<String> directories) voidsetExecutionMode(AiCustomRuleRevisionExecutionMode executionMode) voidsetFileSearchKeywords(List<String> fileSearchKeywords) voidvoidsetIsDefault(Boolean isDefault) voidsetIsTesting(Boolean isTesting) voidsetLanguage(Language language) voidsetResultKeywordsExclude(List<String> resultKeywordsExclude) voidsetRuleVersion(String ruleVersion) voidvoidsetShortDescription(String shortDescription) severity(CustomRuleRevisionAttributesSeverity severity) shortDescription(String shortDescription) toString()
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_CATEGORY
- See Also:
-
JSON_PROPERTY_CHECKSUM
- See Also:
-
JSON_PROPERTY_CONTENT
- See Also:
-
JSON_PROPERTY_CWE
- See Also:
-
JSON_PROPERTY_DESCRIPTION
- See Also:
-
JSON_PROPERTY_DIRECTORIES
- See Also:
-
JSON_PROPERTY_EXECUTION_MODE
- See Also:
-
JSON_PROPERTY_FILE_SEARCH_KEYWORDS
- See Also:
-
JSON_PROPERTY_GLOBS
- See Also:
-
JSON_PROPERTY_IS_DEFAULT
- See Also:
-
JSON_PROPERTY_IS_TESTING
- See Also:
-
JSON_PROPERTY_LANGUAGE
- See Also:
-
JSON_PROPERTY_RESULT_KEYWORDS_EXCLUDE
- See Also:
-
JSON_PROPERTY_RULE_VERSION
- See Also:
-
JSON_PROPERTY_SEVERITY
- See Also:
-
JSON_PROPERTY_SHORT_DESCRIPTION
- See Also:
-
-
Constructor Details
-
AiPromptResponseAttributes
public AiPromptResponseAttributes() -
AiPromptResponseAttributes
public AiPromptResponseAttributes(CustomRuleRevisionAttributesCategory category, String checksum, String content, String description, List<String> directories, AiCustomRuleRevisionExecutionMode executionMode, List<String> fileSearchKeywords, List<String> globs, Boolean isDefault, Boolean isTesting, List<String> resultKeywordsExclude, String ruleVersion, CustomRuleRevisionAttributesSeverity severity, String shortDescription)
-
-
Method Details
-
category
-
getCategory
Rule category- Returns:
- category
-
setCategory
-
checksum
-
getChecksum
Checksum of the prompt content.- Returns:
- checksum
-
setChecksum
-
content
-
getContent
Base64-encoded AI prompt content.- Returns:
- content
-
setContent
-
cwe
-
getCwe
The CWE identifier associated with this prompt.- Returns:
- cwe
-
setCwe
-
description
-
getDescription
Base64-encoded full description.- Returns:
- description
-
setDescription
-
directories
-
addDirectoriesItem
-
getDirectories
Directory patterns this prompt applies to.- Returns:
- directories
-
setDirectories
-
executionMode
-
getExecutionMode
The execution mode for an AI rule revision.- Returns:
- executionMode
-
setExecutionMode
-
fileSearchKeywords
-
addFileSearchKeywordsItem
-
getFileSearchKeywords
Keywords used to search for relevant files.- Returns:
- fileSearchKeywords
-
setFileSearchKeywords
-
globs
-
addGlobsItem
-
getGlobs
File glob patterns this prompt applies to.- Returns:
- globs
-
setGlobs
-
isDefault
-
getIsDefault
Whether this is a default Datadog prompt.- Returns:
- isDefault
-
setIsDefault
-
isTesting
-
getIsTesting
Whether this prompt is for testing only.- Returns:
- isTesting
-
setIsTesting
-
language
-
getLanguage
Programming language- Returns:
- language
-
setLanguage
-
resultKeywordsExclude
-
addResultKeywordsExcludeItem
-
getResultKeywordsExclude
Keywords to exclude from results.- Returns:
- resultKeywordsExclude
-
setResultKeywordsExclude
-
ruleVersion
-
getRuleVersion
The version of the rule this prompt is associated with.- Returns:
- ruleVersion
-
setRuleVersion
-
severity
-
getSeverity
Rule severity- Returns:
- severity
-
setSeverity
-
shortDescription
-
getShortDescription
Base64-encoded short description.- Returns:
- shortDescription
-
setShortDescription
-
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:
- AiPromptResponseAttributes
-
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 AiPromptResponseAttributes object is equal to o. -
hashCode
public int hashCode() -
toString
-