Class Edge


  • @Validated
    @Generated(value="io.swagger.codegen.v3.generators.java.SpringCodegen",
               date="2023-12-06T11:25:47.362934Z[Etc/UTC]")
    public class Edge
    extends java.lang.Object
    A common structure to represent all edges to entities when used inside aspects as collections This ensures that all edges have common structure around audit-stamps and will support PATCH, time-travel automatically.
    • Constructor Detail

      • Edge

        public Edge()
    • Method Detail

      • sourceUrn

        public Edge sourceUrn​(java.lang.String sourceUrn)
      • getSourceUrn

        public java.lang.String getSourceUrn()
        Urn of the source of this relationship edge. If not specified, assumed to be the entity that this aspect belongs to.
        Returns:
        sourceUrn
      • setSourceUrn

        public void setSourceUrn​(java.lang.String sourceUrn)
      • destinationUrn

        public Edge destinationUrn​(java.lang.String destinationUrn)
      • getDestinationUrn

        @NotNull
        public @NotNull java.lang.String getDestinationUrn()
        Urn of the destination of this relationship edge.
        Returns:
        destinationUrn
      • setDestinationUrn

        public void setDestinationUrn​(java.lang.String destinationUrn)
      • getCreated

        @Valid
        public @Valid AuditStamp getCreated()
        Get created
        Returns:
        created
      • setCreated

        public void setCreated​(AuditStamp created)
      • lastModified

        public Edge lastModified​(AuditStamp lastModified)
      • getLastModified

        @Valid
        public @Valid AuditStamp getLastModified()
        Get lastModified
        Returns:
        lastModified
      • setLastModified

        public void setLastModified​(AuditStamp lastModified)
      • properties

        public Edge properties​(java.util.Map<java.lang.String,​java.lang.String> properties)
      • putPropertiesItem

        public Edge putPropertiesItem​(java.lang.String key,
                                      java.lang.String propertiesItem)
      • getProperties

        public java.util.Map<java.lang.String,​java.lang.String> getProperties()
        A generic properties bag that allows us to store specific information on this graph edge.
        Returns:
        properties
      • setProperties

        public void setProperties​(java.util.Map<java.lang.String,​java.lang.String> properties)
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object