Package org.cdk8s

Class DependencyVertex

  • All Implemented Interfaces:
    software.amazon.jsii.JsiiSerializable

    @Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
               date="2023-07-17T00:29:41.264Z")
    @Stability(Stable)
    public class DependencyVertex
    extends software.amazon.jsii.JsiiObject
    Represents a vertex in the graph.

    The value of each vertex is an IConstruct that is accessible via the .value getter.

    • Nested Class Summary

      • Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject

        software.amazon.jsii.JsiiObject.InitializationMode
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
        DependencyVertex()  
      protected DependencyVertex​(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)  
      protected DependencyVertex​(software.amazon.jsii.JsiiObjectRef objRef)  
        DependencyVertex​(software.constructs.IConstruct value)  
    • Constructor Detail

      • DependencyVertex

        protected DependencyVertex​(software.amazon.jsii.JsiiObjectRef objRef)
      • DependencyVertex

        protected DependencyVertex​(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
      • DependencyVertex

        @Stability(Stable)
        public DependencyVertex​(@Nullable
                                software.constructs.IConstruct value)
        Parameters:
        value -
      • DependencyVertex

        @Stability(Stable)
        public DependencyVertex()
    • Method Detail

      • addChild

        @Stability(Stable)
        public void addChild​(@NotNull
                             DependencyVertex dep)
        Adds a vertex as a dependency of the current node.

        Also updates the parents of dep, so that it contains this node as a parent.

        This operation will fail in case it creates a cycle in the graph.

        Parameters:
        dep - The dependency. This parameter is required.
      • topology

        @Stability(Stable)
        @NotNull
        public List<software.constructs.IConstruct> topology()
        Returns a topologically sorted array of the constructs in the sub-graph.
      • getInbound

        @Stability(Stable)
        @NotNull
        public List<DependencyVertex> getInbound()
        Returns the parents of the vertex (i.e dependants).
      • getOutbound

        @Stability(Stable)
        @NotNull
        public List<DependencyVertex> getOutbound()
        Returns the children of the vertex (i.e dependencies).
      • getValue

        @Stability(Stable)
        @Nullable
        public software.constructs.IConstruct getValue()
        Returns the IConstruct this graph vertex represents.

        null in case this is the root of the graph.