Package com.datadog.api.client.v2.model
Class GetMultipleRulesetsResponseDataAttributesRulesetsItemsRulesItemsTestsItems
java.lang.Object
com.datadog.api.client.v2.model.GetMultipleRulesetsResponseDataAttributesRulesetsItemsRulesItemsTestsItems
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class GetMultipleRulesetsResponseDataAttributesRulesetsItemsRulesItemsTestsItems
extends Object
A test case associated with a static analysis rule, containing the source code and expected
annotation count.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionannotationCount(Long annotationCount) booleanReturn true if this GetMultipleRulesetsResponseDataAttributesRulesetsItemsRulesItemsTestsItems object is equal to o.Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.The expected number of annotations (findings) the rule should produce when run against the test code.getCode()The source code snippet used as input for the rule test.The filename associated with the test code snippet.inthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetAnnotationCount(Long annotationCount) voidvoidsetFilename(String filename) toString()
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_ANNOTATION_COUNT
- See Also:
-
JSON_PROPERTY_CODE
- See Also:
-
JSON_PROPERTY_FILENAME
- See Also:
-
-
Constructor Details
-
GetMultipleRulesetsResponseDataAttributesRulesetsItemsRulesItemsTestsItems
public GetMultipleRulesetsResponseDataAttributesRulesetsItemsRulesItemsTestsItems()
-
-
Method Details
-
annotationCount
public GetMultipleRulesetsResponseDataAttributesRulesetsItemsRulesItemsTestsItems annotationCount(Long annotationCount) -
getAnnotationCount
The expected number of annotations (findings) the rule should produce when run against the test code. minimum: 0 maximum: 65535- Returns:
- annotationCount
-
setAnnotationCount
-
code
-
getCode
The source code snippet used as input for the rule test.- Returns:
- code
-
setCode
-
filename
public GetMultipleRulesetsResponseDataAttributesRulesetsItemsRulesItemsTestsItems filename(String filename) -
getFilename
The filename associated with the test code snippet.- Returns:
- filename
-
setFilename
-
putAdditionalProperty
public GetMultipleRulesetsResponseDataAttributesRulesetsItemsRulesItemsTestsItems putAdditionalProperty(String key, Object value) 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:
- GetMultipleRulesetsResponseDataAttributesRulesetsItemsRulesItemsTestsItems
-
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 GetMultipleRulesetsResponseDataAttributesRulesetsItemsRulesItemsTestsItems object is equal to o. -
hashCode
public int hashCode() -
toString
-