io.github.pmckeown.rest.model.Bom Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dependency-track-maven-plugin Show documentation
Show all versions of dependency-track-maven-plugin Show documentation
Maven plugin to integrate with a Dependency Track server to submit dependency manifests and gather project metrics.
package io.github.pmckeown.rest.model;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
/**
* Encapsulates the request payload for uploading a BOM
*
* @author Paul McKeown
*/
public class Bom {
private String projectName;
private String projectVersion;
private boolean autoCreate;
private String base64EncodedBom;
public Bom(String projectName, String projectVersion, boolean autoCreate, String base64EncodedBom) {
this.projectName = projectName;
this.projectVersion = projectVersion;
this.autoCreate = autoCreate;
this.base64EncodedBom = base64EncodedBom;
}
public String getProjectName() {
return projectName;
}
public String getProjectVersion() {
return projectVersion;
}
public boolean isAutoCreate() {
return autoCreate;
}
public String getBom() {
return base64EncodedBom;
}
public String toString() {
return ToStringBuilder.reflectionToString(this, ToStringStyle.JSON_STYLE);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy