Class LineageRelationship
- java.lang.Object
-
- io.datahubproject.openapi.generated.LineageRelationship
-
@Validated @Generated(value="io.swagger.codegen.v3.generators.java.SpringCodegen", date="2023-12-06T11:25:47.362934Z[Etc/UTC]") public class LineageRelationship extends java.lang.ObjectMetadata about a lineage relationship between two entities
-
-
Constructor Summary
Constructors Constructor Description LineageRelationship()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LineageRelationshipaddPathItem(java.lang.String pathItem)LineageRelationshipaddPathsItem(java.util.List<java.lang.String> pathsItem)LineageRelationshipcreatedActor(java.lang.String createdActor)LineageRelationshipcreatedOn(java.lang.Long createdOn)LineageRelationshipdegree(java.lang.Integer degree)LineageRelationshipentity(java.lang.String entity)booleanequals(java.lang.Object o)java.lang.StringgetCreatedActor()Urn of the actor that created this lineage relationship.@Min(-9223372036854775808L) @Max(9223372036854775807L) java.lang.LonggetCreatedOn()Timestamp for when this lineage relationship was created.@NotNull @Min(-2147483648L) @Max(2147483647L) java.lang.IntegergetDegree()Degree of relationship (number of hops to get to entity) minimum: -2147483648 maximum: 2147483647@NotNull java.lang.StringgetEntity()Entity that is related via lineage@NotNull java.util.List<java.lang.String>getPath()Optional list of entities between the source and destination node@NotNull @Valid java.util.List<java.util.List<java.lang.String>>getPaths()Optional list of entities between the source and destination node.@NotNull java.lang.StringgetType()The type of the relationshipjava.lang.StringgetUpdatedActor()Urn of the actor that last updated this lineage relationship.@Min(-9223372036854775808L) @Max(9223372036854775807L) java.lang.LonggetUpdatedOn()Timestamp for when this lineage relationship was last updated.inthashCode()java.lang.BooleanisIsManual()Whether this lineage edge is a manual edge.LineageRelationshipisManual(java.lang.Boolean isManual)LineageRelationshippath(java.util.List<java.lang.String> path)LineageRelationshippaths(java.util.List<java.util.List<java.lang.String>> paths)voidsetCreatedActor(java.lang.String createdActor)voidsetCreatedOn(java.lang.Long createdOn)voidsetDegree(java.lang.Integer degree)voidsetEntity(java.lang.String entity)voidsetIsManual(java.lang.Boolean isManual)voidsetPath(java.util.List<java.lang.String> path)voidsetPaths(java.util.List<java.util.List<java.lang.String>> paths)voidsetType(java.lang.String type)voidsetUpdatedActor(java.lang.String updatedActor)voidsetUpdatedOn(java.lang.Long updatedOn)java.lang.StringtoString()LineageRelationshiptype(java.lang.String type)LineageRelationshipupdatedActor(java.lang.String updatedActor)LineageRelationshipupdatedOn(java.lang.Long updatedOn)
-
-
-
Method Detail
-
type
public LineageRelationship type(java.lang.String type)
-
getType
@NotNull public @NotNull java.lang.String getType()
The type of the relationship- Returns:
- type
-
setType
public void setType(java.lang.String type)
-
entity
public LineageRelationship entity(java.lang.String entity)
-
getEntity
@NotNull public @NotNull java.lang.String getEntity()
Entity that is related via lineage- Returns:
- entity
-
setEntity
public void setEntity(java.lang.String entity)
-
paths
public LineageRelationship paths(java.util.List<java.util.List<java.lang.String>> paths)
-
addPathsItem
public LineageRelationship addPathsItem(java.util.List<java.lang.String> pathsItem)
-
getPaths
@NotNull @Valid public @NotNull @Valid java.util.List<java.util.List<java.lang.String>> getPaths()
Optional list of entities between the source and destination node. There can be multiple paths from the source to the destination.- Returns:
- paths
-
setPaths
public void setPaths(java.util.List<java.util.List<java.lang.String>> paths)
-
path
public LineageRelationship path(java.util.List<java.lang.String> path)
-
addPathItem
public LineageRelationship addPathItem(java.lang.String pathItem)
-
getPath
@NotNull public @NotNull java.util.List<java.lang.String> getPath()
Optional list of entities between the source and destination node- Returns:
- path
-
setPath
public void setPath(java.util.List<java.lang.String> path)
-
degree
public LineageRelationship degree(java.lang.Integer degree)
-
getDegree
@NotNull @Min(-2147483648L) @Max(2147483647L) public @NotNull @Min(-2147483648L) @Max(2147483647L) java.lang.Integer getDegree()
Degree of relationship (number of hops to get to entity) minimum: -2147483648 maximum: 2147483647- Returns:
- degree
-
setDegree
public void setDegree(java.lang.Integer degree)
-
createdOn
public LineageRelationship createdOn(java.lang.Long createdOn)
-
getCreatedOn
@Min(-9223372036854775808L) @Max(9223372036854775807L) public @Min(-9223372036854775808L) @Max(9223372036854775807L) java.lang.Long getCreatedOn()
Timestamp for when this lineage relationship was created. Could be null. minimum: -9223372036854775808 maximum: 9223372036854775807- Returns:
- createdOn
-
setCreatedOn
public void setCreatedOn(java.lang.Long createdOn)
-
createdActor
public LineageRelationship createdActor(java.lang.String createdActor)
-
getCreatedActor
public java.lang.String getCreatedActor()
Urn of the actor that created this lineage relationship. Could be null.- Returns:
- createdActor
-
setCreatedActor
public void setCreatedActor(java.lang.String createdActor)
-
updatedOn
public LineageRelationship updatedOn(java.lang.Long updatedOn)
-
getUpdatedOn
@Min(-9223372036854775808L) @Max(9223372036854775807L) public @Min(-9223372036854775808L) @Max(9223372036854775807L) java.lang.Long getUpdatedOn()
Timestamp for when this lineage relationship was last updated. Could be null. minimum: -9223372036854775808 maximum: 9223372036854775807- Returns:
- updatedOn
-
setUpdatedOn
public void setUpdatedOn(java.lang.Long updatedOn)
-
updatedActor
public LineageRelationship updatedActor(java.lang.String updatedActor)
-
getUpdatedActor
public java.lang.String getUpdatedActor()
Urn of the actor that last updated this lineage relationship. Could be null.- Returns:
- updatedActor
-
setUpdatedActor
public void setUpdatedActor(java.lang.String updatedActor)
-
isManual
public LineageRelationship isManual(java.lang.Boolean isManual)
-
isIsManual
public java.lang.Boolean isIsManual()
Whether this lineage edge is a manual edge.- Returns:
- isManual
-
setIsManual
public void setIsManual(java.lang.Boolean isManual)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-