Class McpScanRequestDataAttributesLibrariesItems

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

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class McpScanRequestDataAttributesLibrariesItems extends Object
A library declaration to include in the dependency scan.
  • Field Details

  • Constructor Details

    • McpScanRequestDataAttributesLibrariesItems

      public McpScanRequestDataAttributesLibrariesItems()
    • McpScanRequestDataAttributesLibrariesItems

      public McpScanRequestDataAttributesLibrariesItems(Boolean isDev, Boolean isDirect, String packageManager, String purl)
  • Method Details

    • exclusions

      public McpScanRequestDataAttributesLibrariesItems exclusions(List<String> exclusions)
    • addExclusionsItem

      public McpScanRequestDataAttributesLibrariesItems addExclusionsItem(String exclusionsItem)
    • getExclusions

      @Nullable public List<String> getExclusions()
      The list of dependency PURLs to exclude when resolving transitive dependencies for this library.
      Returns:
      exclusions
    • setExclusions

      public void setExclusions(List<String> exclusions)
    • isDev

    • getIsDev

      public Boolean getIsDev()
      Whether this library is a development-only dependency.
      Returns:
      isDev
    • setIsDev

      public void setIsDev(Boolean isDev)
    • isDirect

    • getIsDirect

      public Boolean getIsDirect()
      Whether this library is a direct (rather than transitive) dependency.
      Returns:
      isDirect
    • setIsDirect

      public void setIsDirect(Boolean isDirect)
    • packageManager

      public McpScanRequestDataAttributesLibrariesItems packageManager(String packageManager)
    • getPackageManager

      public String getPackageManager()
      The package manager that produced this library entry (for example, npm, pip , nuget).
      Returns:
      packageManager
    • setPackageManager

      public void setPackageManager(String packageManager)
    • purl

    • getPurl

      public String getPurl()
      The Package URL (PURL) uniquely identifying the library and its version.
      Returns:
      purl
    • setPurl

      public void setPurl(String purl)
    • targetFrameworks

      public McpScanRequestDataAttributesLibrariesItems targetFrameworks(List<String> targetFrameworks)
    • addTargetFrameworksItem

      public McpScanRequestDataAttributesLibrariesItems addTargetFrameworksItem(String targetFrameworksItem)
    • getTargetFrameworks

      @Nullable public List<String> getTargetFrameworks()
      The list of target framework identifiers associated with the library.
      Returns:
      targetFrameworks
    • setTargetFrameworks

      public void setTargetFrameworks(List<String> targetFrameworks)
    • putAdditionalProperty

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