Package com.datadog.api.client.v2.model
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionchangedOnly(Boolean changedOnly) booleanReturn true if this FilesCoverageRequestAttributes object is equal to o.Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.The branch name.When true, return coverage data only for files that were changed in the specified scope.Filter coverage by code owner.The commit SHA (40-character hexadecimal string).getFlag()Filter coverage by coverage flag.The pull request number.Deprecated.The repository URL.Filter coverage by service name.inthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.repositoryId(String repositoryId) repositoryUrl(String repositoryUrl) voidvoidsetChangedOnly(Boolean changedOnly) voidsetCodeowner(String codeowner) voidsetCommitSha(String commitSha) voidvoidsetPrNumber(Long prNumber) voidsetRepositoryId(String repositoryId) Deprecated.voidsetRepositoryUrl(String repositoryUrl) voidsetService(String service) toString()
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_BRANCH
- See Also:
-
JSON_PROPERTY_CHANGED_ONLY
- See Also:
-
JSON_PROPERTY_CODEOWNER
- See Also:
-
JSON_PROPERTY_COMMIT_SHA
- See Also:
-
JSON_PROPERTY_FLAG
- See Also:
-
JSON_PROPERTY_PR_NUMBER
- See Also:
-
JSON_PROPERTY_REPOSITORY_ID
- See Also:
-
JSON_PROPERTY_REPOSITORY_URL
- See Also:
-
JSON_PROPERTY_SERVICE
- See Also:
-
-
Constructor Details
-
FilesCoverageRequestAttributes
public FilesCoverageRequestAttributes()
-
-
Method Details
-
branch
-
getBranch
The branch name.- Returns:
- branch
-
setBranch
-
changedOnly
-
getChangedOnly
When true, return coverage data only for files that were changed in the specified scope.- Returns:
- changedOnly
-
setChangedOnly
-
codeowner
-
getCodeowner
Filter coverage by code owner. At most one ofservice,codeowner, orflagmay be provided.- Returns:
- codeowner
-
setCodeowner
-
commitSha
-
getCommitSha
The commit SHA (40-character hexadecimal string).- Returns:
- commitSha
-
setCommitSha
-
flag
-
getFlag
Filter coverage by coverage flag. At most one ofservice,codeowner, orflagmay be provided.- Returns:
- flag
-
setFlag
-
prNumber
-
getPrNumber
The pull request number. Must be a positive integer. minimum: 1- Returns:
- prNumber
-
setPrNumber
-
repositoryId
-
getRepositoryId
Deprecated.Deprecated: userepository_urlinstead. The repository URL.- Returns:
- repositoryId
-
setRepositoryId
Deprecated. -
repositoryUrl
-
getRepositoryUrl
The repository URL. Accepts a full URL with or without a scheme (for example,https://github.com/org/repoorgithub.com/org/repo).- Returns:
- repositoryUrl
-
setRepositoryUrl
-
service
-
getService
Filter coverage by service name. At most one ofservice,codeowner, orflagmay be provided.- Returns:
- service
-
setService
-
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:
- FilesCoverageRequestAttributes
-
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 FilesCoverageRequestAttributes object is equal to o. -
hashCode
public int hashCode() -
toString
-