Package com.datadog.api.client.v2.model
Class SBOMAttributes
java.lang.Object
com.datadog.api.client.v2.model.SBOMAttributes
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class SBOMAttributes
extends Object
The JSON:API attributes of the SBOM.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSBOMAttributes(String bomFormat, List<SBOMComponent> components, List<SBOMComponentDependency> dependencies, SBOMMetadata metadata, String serialNumber, SpecVersion specVersion, Long version) -
Method Summary
Modifier and TypeMethodDescriptionaddComponentsItem(SBOMComponent componentsItem) addDependenciesItem(SBOMComponentDependency dependenciesItem) components(List<SBOMComponent> components) dependencies(List<SBOMComponentDependency> dependencies) booleanReturn true if this SBOMAttributes object is equal to o.Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Specifies the format of the BOM.A list of software and hardware components.List of dependencies between components of the SBOM.Provides additional information about a BOM.Every BOM generated has a unique serial number, even if the contents of the BOM have not changed overt time.The version of the CycloneDX specification a BOM conforms to.It increments when a BOM is modified.inthashCode()metadata(SBOMMetadata metadata) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.serialNumber(String serialNumber) voidsetBomFormat(String bomFormat) voidsetComponents(List<SBOMComponent> components) voidsetDependencies(List<SBOMComponentDependency> dependencies) voidsetMetadata(SBOMMetadata metadata) voidsetSerialNumber(String serialNumber) voidsetSpecVersion(SpecVersion specVersion) voidsetVersion(Long version) specVersion(SpecVersion specVersion) toString()
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_BOM_FORMAT
- See Also:
-
JSON_PROPERTY_COMPONENTS
- See Also:
-
JSON_PROPERTY_DEPENDENCIES
- See Also:
-
JSON_PROPERTY_METADATA
- See Also:
-
JSON_PROPERTY_SERIAL_NUMBER
- See Also:
-
JSON_PROPERTY_SPEC_VERSION
- See Also:
-
JSON_PROPERTY_VERSION
- See Also:
-
-
Constructor Details
-
SBOMAttributes
public SBOMAttributes() -
SBOMAttributes
public SBOMAttributes(String bomFormat, List<SBOMComponent> components, List<SBOMComponentDependency> dependencies, SBOMMetadata metadata, String serialNumber, SpecVersion specVersion, Long version)
-
-
Method Details
-
bomFormat
-
getBomFormat
Specifies the format of the BOM. This helps to identify the file as CycloneDX since BOM do not have a filename convention nor does JSON schema support namespaces. This value MUST beCycloneDX.- Returns:
- bomFormat
-
setBomFormat
-
components
-
addComponentsItem
-
getComponents
A list of software and hardware components.- Returns:
- components
-
setComponents
-
dependencies
-
addDependenciesItem
-
getDependencies
List of dependencies between components of the SBOM.- Returns:
- dependencies
-
setDependencies
-
metadata
-
getMetadata
Provides additional information about a BOM.- Returns:
- metadata
-
setMetadata
-
serialNumber
-
getSerialNumber
Every BOM generated has a unique serial number, even if the contents of the BOM have not changed overt time. The serial number follows RFC-4122- Returns:
- serialNumber
-
setSerialNumber
-
specVersion
-
getSpecVersion
The version of the CycloneDX specification a BOM conforms to.- Returns:
- specVersion
-
setSpecVersion
-
version
-
getVersion
It increments when a BOM is modified. The default value is 1.- Returns:
- version
-
setVersion
-
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:
- SBOMAttributes
-
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 SBOMAttributes object is equal to o. -
hashCode
public int hashCode() -
toString
-