Package io.openlineage.client
Class OpenLineage.SourceCodeLocationJobFacetBuilder
- java.lang.Object
-
- io.openlineage.client.OpenLineage.SourceCodeLocationJobFacetBuilder
-
- All Implemented Interfaces:
OpenLineage.Builder<OpenLineage.SourceCodeLocationJobFacet>
- Enclosing class:
- OpenLineage
public final class OpenLineage.SourceCodeLocationJobFacetBuilder extends java.lang.Object implements OpenLineage.Builder<OpenLineage.SourceCodeLocationJobFacet>
builder class for SourceCodeLocationJobFacet
-
-
Constructor Summary
Constructors Constructor Description SourceCodeLocationJobFacetBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OpenLineage.SourceCodeLocationJobFacetBuilder
branch(java.lang.String branch)
OpenLineage.SourceCodeLocationJobFacet
build()
build an instance of SourceCodeLocationJobFacet from the fields set in the builderOpenLineage.SourceCodeLocationJobFacetBuilder
path(java.lang.String path)
OpenLineage.SourceCodeLocationJobFacetBuilder
put(java.lang.String key, java.lang.Object value)
add additional propertiesOpenLineage.SourceCodeLocationJobFacetBuilder
repoUrl(java.lang.String repoUrl)
OpenLineage.SourceCodeLocationJobFacetBuilder
tag(java.lang.String tag)
OpenLineage.SourceCodeLocationJobFacetBuilder
type(java.lang.String type)
OpenLineage.SourceCodeLocationJobFacetBuilder
url(java.net.URI url)
OpenLineage.SourceCodeLocationJobFacetBuilder
version(java.lang.String version)
-
-
-
Method Detail
-
type
public OpenLineage.SourceCodeLocationJobFacetBuilder type(java.lang.String type)
- Parameters:
type
- the source control system- Returns:
- this
-
url
public OpenLineage.SourceCodeLocationJobFacetBuilder url(java.net.URI url)
- Parameters:
url
- the full http URL to locate the file- Returns:
- this
-
repoUrl
public OpenLineage.SourceCodeLocationJobFacetBuilder repoUrl(java.lang.String repoUrl)
- Parameters:
repoUrl
- the URL to the repository- Returns:
- this
-
path
public OpenLineage.SourceCodeLocationJobFacetBuilder path(java.lang.String path)
- Parameters:
path
- the path in the repo containing the source files- Returns:
- this
-
version
public OpenLineage.SourceCodeLocationJobFacetBuilder version(java.lang.String version)
- Parameters:
version
- the current version deployed (not a branch name, the actual unique version)- Returns:
- this
-
tag
public OpenLineage.SourceCodeLocationJobFacetBuilder tag(java.lang.String tag)
- Parameters:
tag
- optional tag name- Returns:
- this
-
branch
public OpenLineage.SourceCodeLocationJobFacetBuilder branch(java.lang.String branch)
- Parameters:
branch
- optional branch name- Returns:
- this
-
put
public OpenLineage.SourceCodeLocationJobFacetBuilder put(java.lang.String key, java.lang.Object value)
add additional properties- Parameters:
key
- the additional property namevalue
- the additional property value- Returns:
- this
-
build
public OpenLineage.SourceCodeLocationJobFacet build()
build an instance of SourceCodeLocationJobFacet from the fields set in the builder- Specified by:
build
in interfaceOpenLineage.Builder<OpenLineage.SourceCodeLocationJobFacet>
- Returns:
- the constructed type
-
-