software.aws.awsprototypingsdk.cdkgraph.RootNode Maven / Gradle / Ivy
Show all versions of cdk-graph Show documentation
package software.aws.awsprototypingsdk.cdkgraph;
/**
* (experimental) RootNode represents the root of the store tree.
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.82.0 (build 2d2ddd7)", date = "2023-08-15T05:45:13.819Z")
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@software.amazon.jsii.Jsii(module = software.aws.awsprototypingsdk.cdkgraph.$Module.class, fqn = "@aws-prototyping-sdk/cdk-graph.RootNode")
public class RootNode extends software.aws.awsprototypingsdk.cdkgraph.Node {
protected RootNode(final software.amazon.jsii.JsiiObjectRef objRef) {
super(objRef);
}
protected RootNode(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) {
super(initializationMode);
}
static {
PATH = software.amazon.jsii.JsiiObject.jsiiStaticGet(software.aws.awsprototypingsdk.cdkgraph.RootNode.class, "PATH", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
UUID = software.amazon.jsii.JsiiObject.jsiiStaticGet(software.aws.awsprototypingsdk.cdkgraph.RootNode.class, "UUID", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
}
/**
* @param store Reference to the store. This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public RootNode(final @org.jetbrains.annotations.NotNull software.aws.awsprototypingsdk.cdkgraph.Store store) {
super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(store, "store is required") });
}
/**
* (experimental) Indicates if node is a {@link RootNode}.
*
* @param node This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public static @org.jetbrains.annotations.NotNull java.lang.Boolean isRootNode(final @org.jetbrains.annotations.NotNull software.aws.awsprototypingsdk.cdkgraph.Node node) {
return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.aws.awsprototypingsdk.cdkgraph.RootNode.class, "isRootNode", software.amazon.jsii.NativeType.forClass(java.lang.Boolean.class), new Object[] { java.util.Objects.requireNonNull(node, "node is required") });
}
/**
* (experimental) Return this construct and all of its sub-nodes in the given order.
*
* Optionally filter nodes based on predicate.
* The root not is excluded from list
*
* @param options
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@Override
public @org.jetbrains.annotations.NotNull java.util.List findAll(final @org.jetbrains.annotations.Nullable software.aws.awsprototypingsdk.cdkgraph.IFindNodeOptions options) {
return java.util.Collections.unmodifiableList(software.amazon.jsii.Kernel.call(this, "findAll", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(software.aws.awsprototypingsdk.cdkgraph.Node.class)), new Object[] { options }));
}
/**
* (experimental) Return this construct and all of its sub-nodes in the given order.
*
* Optionally filter nodes based on predicate.
* The root not is excluded from list
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@Override
public @org.jetbrains.annotations.NotNull java.util.List findAll() {
return java.util.Collections.unmodifiableList(software.amazon.jsii.Kernel.call(this, "findAll", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(software.aws.awsprototypingsdk.cdkgraph.Node.class))));
}
/**
* (experimental) Collapses all sub-nodes of this node into this node.
*
* > {@link RootNode} does not support this mutation
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@Override
public void mutateCollapse() {
software.amazon.jsii.Kernel.call(this, "mutateCollapse", software.amazon.jsii.NativeType.VOID);
}
/**
* (experimental) Collapses *this node* into *an ancestor* > {@link RootNode} does not support this mutation.
*
* @param _ancestor This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@Override
public @org.jetbrains.annotations.NotNull software.aws.awsprototypingsdk.cdkgraph.Node mutateCollapseTo(final @org.jetbrains.annotations.NotNull software.aws.awsprototypingsdk.cdkgraph.Node _ancestor) {
return software.amazon.jsii.Kernel.call(this, "mutateCollapseTo", software.amazon.jsii.NativeType.forClass(software.aws.awsprototypingsdk.cdkgraph.Node.class), new Object[] { java.util.Objects.requireNonNull(_ancestor, "_ancestor is required") });
}
/**
* (experimental) Collapses *this node* into *it's parent node* > {@link RootNode} does not support this mutation.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@Override
public @org.jetbrains.annotations.NotNull software.aws.awsprototypingsdk.cdkgraph.Node mutateCollapseToParent() {
return software.amazon.jsii.Kernel.call(this, "mutateCollapseToParent", software.amazon.jsii.NativeType.forClass(software.aws.awsprototypingsdk.cdkgraph.Node.class));
}
/**
* (experimental) Destroys this node by removing all references and removing this node from the store.
*
* > {@link RootNode} does not support this mutation
*
* @param _strict
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@Override
public void mutateDestroy(final @org.jetbrains.annotations.Nullable java.lang.Boolean _strict) {
software.amazon.jsii.Kernel.call(this, "mutateDestroy", software.amazon.jsii.NativeType.VOID, new Object[] { _strict });
}
/**
* (experimental) Destroys this node by removing all references and removing this node from the store.
*
* > {@link RootNode} does not support this mutation
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@Override
public void mutateDestroy() {
software.amazon.jsii.Kernel.call(this, "mutateDestroy", software.amazon.jsii.NativeType.VOID);
}
/**
* (experimental) Hoist this node to an ancestor by removing it from its current parent node and in turn moving it to the ancestor.
*
* > {@link RootNode} does not support this mutation
*
* @param _newParent This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@Override
public void mutateHoist(final @org.jetbrains.annotations.NotNull software.aws.awsprototypingsdk.cdkgraph.Node _newParent) {
software.amazon.jsii.Kernel.call(this, "mutateHoist", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(_newParent, "_newParent is required") });
}
/**
* (experimental) Fixed path of root.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public final static java.lang.String PATH;
/**
* (experimental) Fixed UUID of root.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public final static java.lang.String UUID;
}