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 Details

  • Constructor Details

  • Method Details

    • content

      public AnalysisEdit content(String content)
    • getContent

      @Nullable public String getContent()
      The content to insert or replace at the specified position, if applicable.
      Returns:
      content
    • setContent

      public void setContent(String content)
    • editType

      public AnalysisEdit editType(AnalysisEditType editType)
    • getEditType

      public AnalysisEditType getEditType()
      The type of code edit to apply when fixing a violation.
      Returns:
      editType
    • setEditType

      public void setEditType(AnalysisEditType editType)
    • end

      public AnalysisEdit end(AnalysisPosition end)
    • getEnd

      public AnalysisPosition getEnd()
      A position in source code, identified by line and column numbers.
      Returns:
      end
    • setEnd

      public void setEnd(AnalysisPosition end)
    • start

      public AnalysisEdit start(AnalysisPosition start)
    • getStart

      public AnalysisPosition getStart()
      A position in source code, identified by line and column numbers.
      Returns:
      start
    • setStart

      public void setStart(AnalysisPosition start)
    • putAdditionalProperty

      public AnalysisEdit 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 set
      value - The associated value
      Returns:
      AnalysisEdit
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
      Return the additional (undeclared) property.
      Returns:
      The additional properties
    • getAdditionalProperty

      public Object getAdditionalProperty(String key)
      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

      public boolean equals(Object o)
      Return true if this AnalysisEdit object is equal to o.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object