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

com.hashicorp.cdktf.Aspects Maven / Gradle / Ivy

There is a newer version: 0.21.0-pre.141
Show newest version
package com.hashicorp.cdktf;

/**
 * (experimental) Aspects can be applied to CDK tree scopes and can operate on the tree before synthesis.
 */
@javax.annotation.Generated(value = "jsii-pacmak/1.102.0 (build e354887)", date = "2024-11-11T10:07:41.814Z")
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@software.amazon.jsii.Jsii(module = com.hashicorp.cdktf.$Module.class, fqn = "cdktf.Aspects")
public class Aspects extends software.amazon.jsii.JsiiObject {

    protected Aspects(final software.amazon.jsii.JsiiObjectRef objRef) {
        super(objRef);
    }

    protected Aspects(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) {
        super(initializationMode);
    }

    /**
     * (experimental) Returns the Aspects object associated with a construct scope.
     * 

* @param scope The scope for which these aspects will apply. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull com.hashicorp.cdktf.Aspects of(final @org.jetbrains.annotations.NotNull software.constructs.IConstruct scope) { return software.amazon.jsii.JsiiObject.jsiiStaticCall(com.hashicorp.cdktf.Aspects.class, "of", software.amazon.jsii.NativeType.forClass(com.hashicorp.cdktf.Aspects.class), new Object[] { java.util.Objects.requireNonNull(scope, "scope is required") }); } /** * (experimental) Adds an aspect to apply this scope before synthesis. *

* @param aspect The aspect to add. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public void add(final @org.jetbrains.annotations.NotNull com.hashicorp.cdktf.IAspect aspect) { software.amazon.jsii.Kernel.call(this, "add", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(aspect, "aspect is required") }); } /** * (experimental) The list of aspects which were directly applied on this scope. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.util.List getAll() { return java.util.Collections.unmodifiableList(software.amazon.jsii.Kernel.get(this, "all", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(com.hashicorp.cdktf.IAspect.class)))); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy