Package com.datadog.api.client.v2.model
Class CycloneDXComponent
java.lang.Object
com.datadog.api.client.v2.model.CycloneDXComponent
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class CycloneDXComponent
extends Object
A software component identified during scanning.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCycloneDXComponent(String bomRef, String name, CycloneDXComponentType type, String version) -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturn true if this CycloneDXComponent object is equal to o.Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.A unique reference identifier used to link vulnerabilities to this component.getName()The name of the component.getPurl()The Package URL (PURL) of the component.getType()The type of the scanned component.The version of the component.inthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidvoidvoidvoidvoidsetVersion(String version) toString()type(CycloneDXComponentType type)
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_BOM_REF
- See Also:
-
JSON_PROPERTY_NAME
- See Also:
-
JSON_PROPERTY_PURL
- See Also:
-
JSON_PROPERTY_TYPE
- See Also:
-
JSON_PROPERTY_VERSION
- See Also:
-
-
Constructor Details
-
CycloneDXComponent
public CycloneDXComponent() -
CycloneDXComponent
-
-
Method Details
-
bomRef
-
getBomRef
A unique reference identifier used to link vulnerabilities to this component.- Returns:
- bomRef
-
setBomRef
-
name
-
getName
The name of the component.- Returns:
- name
-
setName
-
purl
-
getPurl
The Package URL (PURL) of the component. Required whentypeislibrary.- Returns:
- purl
-
setPurl
-
type
-
getType
The type of the scanned component.- Returns:
- type
-
setType
-
version
-
getVersion
The version of the component.- 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:
- CycloneDXComponent
-
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 CycloneDXComponent object is equal to o. -
hashCode
public int hashCode() -
toString
-