Package com.oracle.bmc.adm.model
Class ApplicationDependency.Builder
- java.lang.Object
-
- com.oracle.bmc.adm.model.ApplicationDependency.Builder
-
- Enclosing class:
- ApplicationDependency
public static class ApplicationDependency.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ApplicationDependency.Builder
applicationDependencyNodeIds(List<String> applicationDependencyNodeIds)
List of application dependencies on which this application dependency depends, each identified by its nodeId.ApplicationDependency
build()
ApplicationDependency.Builder
copy(ApplicationDependency model)
ApplicationDependency.Builder
gav(String gav)
Group Artifact Version (GAV) identifier (Group:Artifact:Version).ApplicationDependency.Builder
nodeId(String nodeId)
Unique identifier of an application dependency, for example nodeId1.ApplicationDependency.Builder
purl(String purl)
Package URL defined in https://github.com/package-url/purl-spec, e.g.
-
-
-
Method Detail
-
gav
public ApplicationDependency.Builder gav(String gav)
Group Artifact Version (GAV) identifier (Group:Artifact:Version).Example: org.graalvm.nativeimage:svm:21.1.0. “N/A” for non-maven artifacts.
- Parameters:
gav
- the value to set- Returns:
- this builder
-
purl
public ApplicationDependency.Builder purl(String purl)
Package URL defined in https://github.com/package-url/purl-spec, e.g.pkg:maven/org.graalvm.nativeimage/svm@21.1.0
- Parameters:
purl
- the value to set- Returns:
- this builder
-
nodeId
public ApplicationDependency.Builder nodeId(String nodeId)
Unique identifier of an application dependency, for example nodeId1.The nodeId can be generated by assigning a unique id to each application dependency in the tree of application dependencies. Every node, even those who share the same GAV, should have a different nodeId. The preferred way of constructing a nodeId is to assign incremental integers during a breadth first or depth first search. A nodeId can be reused only it refers to the same subtree of application dependencies. (This is not equivalent to referring to the same GAV, that is, a GAV can have multiple transitive dependencies.)
- Parameters:
nodeId
- the value to set- Returns:
- this builder
-
applicationDependencyNodeIds
public ApplicationDependency.Builder applicationDependencyNodeIds(List<String> applicationDependencyNodeIds)
List of application dependencies on which this application dependency depends, each identified by its nodeId.- Parameters:
applicationDependencyNodeIds
- the value to set- Returns:
- this builder
-
build
public ApplicationDependency build()
-
copy
public ApplicationDependency.Builder copy(ApplicationDependency model)
-
-