public static class BillOfMaterials.Builder extends Object
Modifier | Constructor and Description |
---|---|
protected |
Builder(String groupId,
String artifactId) |
Modifier and Type | Method and Description |
---|---|
BillOfMaterials.Builder |
artifactId(String artifactId)
Set the artifact ID of the bom.
|
BillOfMaterials |
build()
Build a
BillOfMaterials with the current state of this builder. |
BillOfMaterials.Builder |
groupId(String groupId)
Set the group ID of the bom.
|
BillOfMaterials.Builder |
order(int order)
Set the order of the bom relative to other boms.
|
BillOfMaterials.Builder |
version(VersionReference version)
Set the version of the bom.
|
public BillOfMaterials.Builder groupId(String groupId)
groupId
- the group IDpublic BillOfMaterials.Builder artifactId(String artifactId)
artifactId
- the artifact IDpublic BillOfMaterials.Builder version(VersionReference version)
version
- the versionVersionReference.ofProperty(String)
,
VersionReference.ofValue(String)
public BillOfMaterials.Builder order(int order)
Integer.MAX_VALUE
which means the bom has the lowest priority.order
- the order of the bompublic BillOfMaterials build()
BillOfMaterials
with the current state of this builder.BillOfMaterials
Copyright © 2020 Pivotal Software, Inc.. All rights reserved.