@Generated(value="https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class SBOMComponent extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
JSON_PROPERTY_BOM_REF |
static String |
JSON_PROPERTY_LICENSES |
static String |
JSON_PROPERTY_NAME |
static String |
JSON_PROPERTY_PROPERTIES |
static String |
JSON_PROPERTY_PURL |
static String |
JSON_PROPERTY_SUPPLIER |
static String |
JSON_PROPERTY_TYPE |
static String |
JSON_PROPERTY_VERSION |
boolean |
unparsed |
| Constructor and Description |
|---|
SBOMComponent() |
SBOMComponent(String name,
SBOMComponentSupplier supplier,
SBOMComponentType type,
String version) |
| Modifier and Type | Method and Description |
|---|---|
SBOMComponent |
addLicensesItem(SBOMComponentLicense licensesItem) |
SBOMComponent |
addPropertiesItem(SBOMComponentProperty propertiesItem) |
SBOMComponent |
bomRef(String bomRef) |
boolean |
equals(Object o)
Return true if this SBOMComponent object is equal to o.
|
Map<String,Object> |
getAdditionalProperties()
Return the additional (undeclared) property.
|
Object |
getAdditionalProperty(String key)
Return the additional (undeclared) property with the specified name.
|
String |
getBomRef()
An optional identifier that can be used to reference the component elsewhere in the BOM.
|
List<SBOMComponentLicense> |
getLicenses()
The software licenses of the SBOM component.
|
String |
getName()
The name of the component.
|
List<SBOMComponentProperty> |
getProperties()
The custom properties of the component of the SBOM.
|
String |
getPurl()
Specifies the package-url (purl).
|
SBOMComponentSupplier |
getSupplier()
The supplier of the component.
|
SBOMComponentType |
getType()
The SBOM component type
|
String |
getVersion()
The component version.
|
int |
hashCode() |
SBOMComponent |
licenses(List<SBOMComponentLicense> licenses) |
SBOMComponent |
name(String name) |
SBOMComponent |
properties(List<SBOMComponentProperty> properties) |
SBOMComponent |
purl(String purl) |
SBOMComponent |
putAdditionalProperty(String key,
Object value)
Set the additional (undeclared) property with the specified name and value.
|
void |
setBomRef(String bomRef) |
void |
setLicenses(List<SBOMComponentLicense> licenses) |
void |
setName(String name) |
void |
setProperties(List<SBOMComponentProperty> properties) |
void |
setPurl(String purl) |
void |
setSupplier(SBOMComponentSupplier supplier) |
void |
setType(SBOMComponentType type) |
void |
setVersion(String version) |
SBOMComponent |
supplier(SBOMComponentSupplier supplier) |
String |
toString() |
SBOMComponent |
type(SBOMComponentType type) |
SBOMComponent |
version(String version) |
public boolean unparsed
public static final String JSON_PROPERTY_BOM_REF
public static final String JSON_PROPERTY_LICENSES
public static final String JSON_PROPERTY_NAME
public static final String JSON_PROPERTY_PROPERTIES
public static final String JSON_PROPERTY_PURL
public static final String JSON_PROPERTY_SUPPLIER
public static final String JSON_PROPERTY_TYPE
public static final String JSON_PROPERTY_VERSION
public SBOMComponent()
public SBOMComponent(String name, SBOMComponentSupplier supplier, SBOMComponentType type, String version)
public SBOMComponent bomRef(String bomRef)
@Nullable public String getBomRef()
public void setBomRef(String bomRef)
public SBOMComponent licenses(List<SBOMComponentLicense> licenses)
public SBOMComponent addLicensesItem(SBOMComponentLicense licensesItem)
@Nullable public List<SBOMComponentLicense> getLicenses()
public void setLicenses(List<SBOMComponentLicense> licenses)
public SBOMComponent name(String name)
public String getName()
public void setName(String name)
public SBOMComponent properties(List<SBOMComponentProperty> properties)
public SBOMComponent addPropertiesItem(SBOMComponentProperty propertiesItem)
@Nullable public List<SBOMComponentProperty> getProperties()
public void setProperties(List<SBOMComponentProperty> properties)
public SBOMComponent purl(String purl)
@Nullable public String getPurl()
public void setPurl(String purl)
public SBOMComponent supplier(SBOMComponentSupplier supplier)
public SBOMComponentSupplier getSupplier()
public void setSupplier(SBOMComponentSupplier supplier)
public SBOMComponent type(SBOMComponentType type)
public SBOMComponentType getType()
public void setType(SBOMComponentType type)
public SBOMComponent version(String version)
public String getVersion()
public void setVersion(String version)
public SBOMComponent putAdditionalProperty(String key, Object value)
key - The arbitrary key to setvalue - The associated valuepublic Map<String,Object> getAdditionalProperties()
public Object getAdditionalProperty(String key)
key - The arbitrary key to getpublic boolean equals(Object o)
Copyright © 2025. All rights reserved.