software.aws.awsprototypingsdk.cdkgraph.Reference Maven / Gradle / Ivy
Show all versions of cdk-graph Show documentation
package software.aws.awsprototypingsdk.cdkgraph;
/**
* (experimental) Reference edge class defines a directed relationship between nodes.
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.82.0 (build 2d2ddd7)", date = "2023-08-15T05:45:13.818Z")
@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.Reference")
public class Reference extends software.aws.awsprototypingsdk.cdkgraph.Edge {
protected Reference(final software.amazon.jsii.JsiiObjectRef objRef) {
super(objRef);
}
protected Reference(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) {
super(initializationMode);
}
static {
ATT_TYPE = software.amazon.jsii.JsiiObject.jsiiStaticGet(software.aws.awsprototypingsdk.cdkgraph.Reference.class, "ATT_TYPE", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
PREFIX = software.amazon.jsii.JsiiObject.jsiiStaticGet(software.aws.awsprototypingsdk.cdkgraph.Reference.class, "PREFIX", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
}
/**
* @param props This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Reference(final @org.jetbrains.annotations.NotNull software.aws.awsprototypingsdk.cdkgraph.IReferenceProps props) {
super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(props, "props is required") });
}
/**
* (experimental) Indicates if edge is a **Ref** based {@link Reference} edge.
*
* @param edge This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public static @org.jetbrains.annotations.NotNull java.lang.Boolean isRef(final @org.jetbrains.annotations.NotNull software.aws.awsprototypingsdk.cdkgraph.Edge edge) {
return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.aws.awsprototypingsdk.cdkgraph.Reference.class, "isRef", software.amazon.jsii.NativeType.forClass(java.lang.Boolean.class), new Object[] { java.util.Objects.requireNonNull(edge, "edge is required") });
}
/**
* (experimental) Indicates if edge is a {@link Reference}.
*
* @param edge This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public static @org.jetbrains.annotations.NotNull java.lang.Boolean isReference(final @org.jetbrains.annotations.NotNull software.aws.awsprototypingsdk.cdkgraph.Edge edge) {
return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.aws.awsprototypingsdk.cdkgraph.Reference.class, "isReference", software.amazon.jsii.NativeType.forClass(java.lang.Boolean.class), new Object[] { java.util.Objects.requireNonNull(edge, "edge is required") });
}
/**
* (experimental) Resolve reference chain.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public @org.jetbrains.annotations.NotNull java.util.List resolveChain() {
return java.util.Collections.unmodifiableList(software.amazon.jsii.Kernel.call(this, "resolveChain", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.Object.class))));
}
/**
* (experimental) Resolve targets by following potential edge chain.
*
* @see {@link EdgeChain }
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public @org.jetbrains.annotations.NotNull java.util.List resolveTargets() {
return java.util.Collections.unmodifiableList(software.amazon.jsii.Kernel.call(this, "resolveTargets", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(software.aws.awsprototypingsdk.cdkgraph.Node.class))));
}
/**
* (experimental) Attribute defining the type of reference.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public final static java.lang.String ATT_TYPE;
/**
* (experimental) Edge prefix to denote Ref type reference edge.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public final static java.lang.String PREFIX;
/**
* (experimental) Get type of reference.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public @org.jetbrains.annotations.NotNull software.aws.awsprototypingsdk.cdkgraph.ReferenceTypeEnum getReferenceType() {
return software.amazon.jsii.Kernel.get(this, "referenceType", software.amazon.jsii.NativeType.forClass(software.aws.awsprototypingsdk.cdkgraph.ReferenceTypeEnum.class));
}
}