Package com.datadog.api.client.v2.model
Class CycloneDXBom
java.lang.Object
com.datadog.api.client.v2.model.CycloneDXBom
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class CycloneDXBom
extends Object
A CycloneDX 1.5 Bill of Materials (BOM) document containing vulnerability data.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCycloneDXBom(String bomFormat, List<CycloneDXComponent> components, CycloneDXMetadata metadata, String specVersion, List<CycloneDXVulnerability> vulnerabilities) -
Method Summary
Modifier and TypeMethodDescriptionaddComponentsItem(CycloneDXComponent componentsItem) addVulnerabilitiesItem(CycloneDXVulnerability vulnerabilitiesItem) components(List<CycloneDXComponent> components) booleanReturn true if this CycloneDXBom object is equal to o.Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.The BOM format identifier.The list of scanned software components.Metadata about the BOM, including the scanned asset and the scanner tool.The CycloneDX specification version.The version number of the BOM document.The list of detected vulnerabilities.inthashCode()metadata(CycloneDXMetadata metadata) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetBomFormat(String bomFormat) voidsetComponents(List<CycloneDXComponent> components) voidsetMetadata(CycloneDXMetadata metadata) voidsetSpecVersion(String specVersion) voidsetVersion(Long version) voidsetVulnerabilities(List<CycloneDXVulnerability> vulnerabilities) specVersion(String specVersion) toString()vulnerabilities(List<CycloneDXVulnerability> vulnerabilities)
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_BOM_FORMAT
- See Also:
-
JSON_PROPERTY_COMPONENTS
- See Also:
-
JSON_PROPERTY_METADATA
- See Also:
-
JSON_PROPERTY_SPEC_VERSION
- See Also:
-
JSON_PROPERTY_VERSION
- See Also:
-
JSON_PROPERTY_VULNERABILITIES
- See Also:
-
-
Constructor Details
-
CycloneDXBom
public CycloneDXBom() -
CycloneDXBom
public CycloneDXBom(String bomFormat, List<CycloneDXComponent> components, CycloneDXMetadata metadata, String specVersion, List<CycloneDXVulnerability> vulnerabilities)
-
-
Method Details
-
bomFormat
-
getBomFormat
The BOM format identifier. Must beCycloneDX.- Returns:
- bomFormat
-
setBomFormat
-
components
-
addComponentsItem
-
getComponents
The list of scanned software components. Cannot be empty.- Returns:
- components
-
setComponents
-
metadata
-
getMetadata
Metadata about the BOM, including the scanned asset and the scanner tool.- Returns:
- metadata
-
setMetadata
-
specVersion
-
getSpecVersion
The CycloneDX specification version. Must be1.5.- Returns:
- specVersion
-
setSpecVersion
-
version
-
getVersion
The version number of the BOM document.- Returns:
- version
-
setVersion
-
vulnerabilities
-
addVulnerabilitiesItem
-
getVulnerabilities
The list of detected vulnerabilities. Cannot be empty.- Returns:
- vulnerabilities
-
setVulnerabilities
-
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:
- CycloneDXBom
-
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 CycloneDXBom object is equal to o. -
hashCode
public int hashCode() -
toString
-