Class FilesCoverageRequestAttributes

java.lang.Object
com.datadog.api.client.v2.model.FilesCoverageRequestAttributes

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class FilesCoverageRequestAttributes extends Object
Attributes for requesting per-file code coverage data. Exactly one of commit_sha, branch, or pr_number must be provided. At most one of service , codeowner, or flag may be provided.
  • Field Details

  • Constructor Details

    • FilesCoverageRequestAttributes

      public FilesCoverageRequestAttributes()
  • Method Details

    • branch

      public FilesCoverageRequestAttributes branch(String branch)
    • getBranch

      @Nullable public String getBranch()
      The branch name.
      Returns:
      branch
    • setBranch

      public void setBranch(String branch)
    • changedOnly

      public FilesCoverageRequestAttributes changedOnly(Boolean changedOnly)
    • getChangedOnly

      @Nullable public Boolean getChangedOnly()
      When true, return coverage data only for files that were changed in the specified scope.
      Returns:
      changedOnly
    • setChangedOnly

      public void setChangedOnly(Boolean changedOnly)
    • codeowner

      public FilesCoverageRequestAttributes codeowner(String codeowner)
    • getCodeowner

      @Nullable public String getCodeowner()
      Filter coverage by code owner. At most one of service, codeowner, or flag may be provided.
      Returns:
      codeowner
    • setCodeowner

      public void setCodeowner(String codeowner)
    • commitSha

      public FilesCoverageRequestAttributes commitSha(String commitSha)
    • getCommitSha

      @Nullable public String getCommitSha()
      The commit SHA (40-character hexadecimal string).
      Returns:
      commitSha
    • setCommitSha

      public void setCommitSha(String commitSha)
    • flag

    • getFlag

      @Nullable public String getFlag()
      Filter coverage by coverage flag. At most one of service, codeowner, or flag may be provided.
      Returns:
      flag
    • setFlag

      public void setFlag(String flag)
    • prNumber

      public FilesCoverageRequestAttributes prNumber(Long prNumber)
    • getPrNumber

      @Nullable public Long getPrNumber()
      The pull request number. Must be a positive integer. minimum: 1
      Returns:
      prNumber
    • setPrNumber

      public void setPrNumber(Long prNumber)
    • repositoryId

      public FilesCoverageRequestAttributes repositoryId(String repositoryId)
    • getRepositoryId

      @Deprecated @Nullable public String getRepositoryId()
      Deprecated.
      Deprecated: use repository_url instead. The repository URL.
      Returns:
      repositoryId
    • setRepositoryId

      @Deprecated public void setRepositoryId(String repositoryId)
      Deprecated.
    • repositoryUrl

      public FilesCoverageRequestAttributes repositoryUrl(String repositoryUrl)
    • getRepositoryUrl

      @Nullable public String getRepositoryUrl()
      The repository URL. Accepts a full URL with or without a scheme (for example, https://github.com/org/repo or github.com/org/repo).
      Returns:
      repositoryUrl
    • setRepositoryUrl

      public void setRepositoryUrl(String repositoryUrl)
    • service

      public FilesCoverageRequestAttributes service(String service)
    • getService

      @Nullable public String getService()
      Filter coverage by service name. At most one of service, codeowner, or flag may be provided.
      Returns:
      service
    • setService

      public void setService(String service)
    • putAdditionalProperty

      public FilesCoverageRequestAttributes 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:
      FilesCoverageRequestAttributes
    • 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 FilesCoverageRequestAttributes 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