Package com.datadog.api.client.v2.model
Class AnalysisRequestDataAttributes
java.lang.Object
com.datadog.api.client.v2.model.AnalysisRequestDataAttributes
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class AnalysisRequestDataAttributes
extends Object
The attributes of the analysis request, containing the source code and rules to apply.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAnalysisRequestDataAttributes(String code, String fileEncoding, String filename, String language, List<AnalysisRequestRule> rules) -
Method Summary
Modifier and TypeMethodDescriptionaddRulesItem(AnalysisRequestRule rulesItem) booleanReturn true if this AnalysisRequestDataAttributes object is equal to o.fileEncoding(String fileEncoding) Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.getCode()The base64-encoded source code to analyze.The encoding of the source code file (must beutf-8).The name of the file being analyzed.The programming language of the source code.getRules()The list of static analysis rules to apply during analysis.inthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.rules(List<AnalysisRequestRule> rules) voidvoidsetFileEncoding(String fileEncoding) voidsetFilename(String filename) voidsetLanguage(String language) voidsetRules(List<AnalysisRequestRule> rules) toString()
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_CODE
- See Also:
-
JSON_PROPERTY_FILE_ENCODING
- See Also:
-
JSON_PROPERTY_FILENAME
- See Also:
-
JSON_PROPERTY_LANGUAGE
- See Also:
-
JSON_PROPERTY_RULES
- See Also:
-
-
Constructor Details
-
AnalysisRequestDataAttributes
public AnalysisRequestDataAttributes() -
AnalysisRequestDataAttributes
-
-
Method Details
-
code
-
getCode
The base64-encoded source code to analyze.- Returns:
- code
-
setCode
-
fileEncoding
-
getFileEncoding
The encoding of the source code file (must beutf-8).- Returns:
- fileEncoding
-
setFileEncoding
-
filename
-
getFilename
The name of the file being analyzed.- Returns:
- filename
-
setFilename
-
language
-
getLanguage
The programming language of the source code.- Returns:
- language
-
setLanguage
-
rules
-
addRulesItem
-
getRules
The list of static analysis rules to apply during analysis.- Returns:
- rules
-
setRules
-
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:
- AnalysisRequestDataAttributes
-
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 AnalysisRequestDataAttributes object is equal to o. -
hashCode
public int hashCode() -
toString
-