Package com.datadog.api.client.v2.model
Class AiCustomRuleRevisionResponseAttributes
java.lang.Object
com.datadog.api.client.v2.model.AiCustomRuleRevisionResponseAttributes
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class AiCustomRuleRevisionResponseAttributes
extends Object
Response attributes of an AI 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 Stringboolean -
Constructor Summary
ConstructorsConstructorDescriptionAiCustomRuleRevisionResponseAttributes(CustomRuleRevisionAttributesCategory category, String checksum, String content, OffsetDateTime createdAt, String createdBy, String cwe, String description, List<String> directories, AiCustomRuleRevisionExecutionMode executionMode, List<String> globs, Boolean isDefault, Boolean isPublished, Boolean isTesting, CustomRuleRevisionAttributesSeverity severity, String shortDescription, Long versionId) -
Method Summary
Modifier and TypeMethodDescriptionaddDirectoriesItem(String directoriesItem) addGlobsItem(String globsItem) category(CustomRuleRevisionAttributesCategory category) createdAt(OffsetDateTime createdAt) description(String description) directories(List<String> directories) booleanReturn true if this AiCustomRuleRevisionResponseAttributes object is equal to o.executionMode(AiCustomRuleRevisionExecutionMode executionMode) Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Rule categoryChecksum of the revision content.Base64-encoded AI model content for this revision.The creation timestamp.The identifier of the user who created the revision.getCwe()The associated CWE identifier.Base64-encoded full description.Directory patterns this rule applies to.The execution mode for an AI rule revision.getGlobs()File glob patterns this rule applies to.Whether this is a default Datadog rule.Whether this revision is published.Whether this revision is for testing only.Rule severityBase64-encoded short description.The version identifier for this revision.inthashCode()isPublished(Boolean isPublished) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidvoidsetChecksum(String checksum) voidsetContent(String content) voidsetCreatedAt(OffsetDateTime createdAt) voidsetCreatedBy(String createdBy) voidvoidsetDescription(String description) voidsetDirectories(List<String> directories) voidsetExecutionMode(AiCustomRuleRevisionExecutionMode executionMode) voidvoidsetIsDefault(Boolean isDefault) voidsetIsPublished(Boolean isPublished) voidsetIsTesting(Boolean isTesting) voidvoidsetShortDescription(String shortDescription) voidsetVersionId(Long versionId) 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_CREATED_AT
- See Also:
-
JSON_PROPERTY_CREATED_BY
- 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_GLOBS
- See Also:
-
JSON_PROPERTY_IS_DEFAULT
- See Also:
-
JSON_PROPERTY_IS_PUBLISHED
- See Also:
-
JSON_PROPERTY_IS_TESTING
- See Also:
-
JSON_PROPERTY_SEVERITY
- See Also:
-
JSON_PROPERTY_SHORT_DESCRIPTION
- See Also:
-
JSON_PROPERTY_VERSION_ID
- See Also:
-
-
Constructor Details
-
AiCustomRuleRevisionResponseAttributes
public AiCustomRuleRevisionResponseAttributes() -
AiCustomRuleRevisionResponseAttributes
public AiCustomRuleRevisionResponseAttributes(CustomRuleRevisionAttributesCategory category, String checksum, String content, OffsetDateTime createdAt, String createdBy, String cwe, String description, List<String> directories, AiCustomRuleRevisionExecutionMode executionMode, List<String> globs, Boolean isDefault, Boolean isPublished, Boolean isTesting, CustomRuleRevisionAttributesSeverity severity, String shortDescription, Long versionId)
-
-
Method Details
-
category
public AiCustomRuleRevisionResponseAttributes category(CustomRuleRevisionAttributesCategory category) -
getCategory
Rule category- Returns:
- category
-
setCategory
-
checksum
-
getChecksum
Checksum of the revision content.- Returns:
- checksum
-
setChecksum
-
content
-
getContent
Base64-encoded AI model content for this revision.- Returns:
- content
-
setContent
-
createdAt
-
getCreatedAt
The creation timestamp.- Returns:
- createdAt
-
setCreatedAt
-
createdBy
-
getCreatedBy
The identifier of the user who created the revision.- Returns:
- createdBy
-
setCreatedBy
-
cwe
-
getCwe
The associated CWE identifier.- Returns:
- cwe
-
setCwe
-
description
-
getDescription
Base64-encoded full description.- Returns:
- description
-
setDescription
-
directories
-
addDirectoriesItem
-
getDirectories
Directory patterns this rule applies to.- Returns:
- directories
-
setDirectories
-
executionMode
public AiCustomRuleRevisionResponseAttributes executionMode(AiCustomRuleRevisionExecutionMode executionMode) -
getExecutionMode
The execution mode for an AI rule revision.- Returns:
- executionMode
-
setExecutionMode
-
globs
-
addGlobsItem
-
getGlobs
File glob patterns this rule applies to.- Returns:
- globs
-
setGlobs
-
isDefault
-
getIsDefault
Whether this is a default Datadog rule.- Returns:
- isDefault
-
setIsDefault
-
isPublished
-
getIsPublished
Whether this revision is published.- Returns:
- isPublished
-
setIsPublished
-
isTesting
-
getIsTesting
Whether this revision is for testing only.- Returns:
- isTesting
-
setIsTesting
-
severity
public AiCustomRuleRevisionResponseAttributes severity(CustomRuleRevisionAttributesSeverity severity) -
getSeverity
Rule severity- Returns:
- severity
-
setSeverity
-
shortDescription
-
getShortDescription
Base64-encoded short description.- Returns:
- shortDescription
-
setShortDescription
-
versionId
-
getVersionId
The version identifier for this 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:
- AiCustomRuleRevisionResponseAttributes
-
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 AiCustomRuleRevisionResponseAttributes object is equal to o. -
hashCode
public int hashCode() -
toString
-