Package com.datadog.api.client.v2.model
Class AnalysisEdit
java.lang.Object
com.datadog.api.client.v2.model.AnalysisEdit
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class AnalysisEdit
extends Object
A single edit operation within a fix suggestion for a rule violation.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAnalysisEdit(String content, AnalysisEditType editType, AnalysisPosition end, AnalysisPosition start) -
Method Summary
Modifier and TypeMethodDescriptioneditType(AnalysisEditType editType) end(AnalysisPosition end) booleanReturn true if this AnalysisEdit object is equal to o.Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.The content to insert or replace at the specified position, if applicable.The type of code edit to apply when fixing a violation.getEnd()A position in source code, identified by line and column numbers.getStart()A position in source code, identified by line and column numbers.inthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetContent(String content) voidsetEditType(AnalysisEditType editType) voidsetEnd(AnalysisPosition end) voidsetStart(AnalysisPosition start) start(AnalysisPosition start) toString()
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_CONTENT
- See Also:
-
JSON_PROPERTY_EDIT_TYPE
- See Also:
-
JSON_PROPERTY_END
- See Also:
-
JSON_PROPERTY_START
- See Also:
-
-
Constructor Details
-
AnalysisEdit
public AnalysisEdit() -
AnalysisEdit
public AnalysisEdit(String content, AnalysisEditType editType, AnalysisPosition end, AnalysisPosition start)
-
-
Method Details
-
content
-
getContent
The content to insert or replace at the specified position, if applicable.- Returns:
- content
-
setContent
-
editType
-
getEditType
The type of code edit to apply when fixing a violation.- Returns:
- editType
-
setEditType
-
end
-
getEnd
A position in source code, identified by line and column numbers.- Returns:
- end
-
setEnd
-
start
-
getStart
A position in source code, identified by line and column numbers.- Returns:
- start
-
setStart
-
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:
- AnalysisEdit
-
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 AnalysisEdit object is equal to o. -
hashCode
public int hashCode() -
toString
-