All Downloads are FREE. Search and download functionalities are using the official Maven repository.

software.amazon.awscdk.Reference Maven / Gradle / Ivy

There is a newer version: 0.36.1
Show newest version
package software.amazon.awscdk;

/**
 * A Token that represents a reference between two constructs.
 * 
 * References are recorded.
 */
@javax.annotation.Generated(value = "jsii-pacmak/0.10.5 (build 46bc9b0)", date = "2019-05-06T20:49:40.956Z")
@software.amazon.jsii.Jsii(module = software.amazon.awscdk.$Module.class, fqn = "@aws-cdk/cdk.Reference")
public class Reference extends software.amazon.awscdk.Token {
    protected Reference(final software.amazon.jsii.JsiiObject.InitializationMode mode) {
        super(mode);
    }
    public Reference(@javax.annotation.Nullable final java.lang.Object value, final java.lang.String displayName, final software.amazon.awscdk.Construct target) {
        super(software.amazon.jsii.JsiiObject.InitializationMode.Jsii);
        software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { value, java.util.Objects.requireNonNull(displayName, "displayName is required"), java.util.Objects.requireNonNull(target, "target is required") });
    }

    /**
     * Check whether this is actually a Reference.
     */
    public static java.lang.Boolean isReference(final software.amazon.awscdk.Token x) {
        return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.awscdk.Reference.class, "isReference", java.lang.Boolean.class, new Object[] { java.util.Objects.requireNonNull(x, "x is required") });
    }

    public software.amazon.awscdk.Construct getTarget() {
        return this.jsiiGet("target", software.amazon.awscdk.Construct.class);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy