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

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

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

/**
 */
@javax.annotation.Generated(value = "jsii-pacmak/1.17.1 (build 2bac5fd)", date = "2021-02-18T13:56:39.624Z")
@software.amazon.jsii.Jsii(module = com.hashicorp.cdktf.$Module.class, fqn = "cdktf.ITerraformResource")
@software.amazon.jsii.Jsii.Proxy(ITerraformResource.Jsii$Proxy.class)
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public interface ITerraformResource extends software.amazon.jsii.JsiiSerializable {

    /**
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
    @org.jetbrains.annotations.NotNull java.lang.String getFqn();

    /**
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
    @org.jetbrains.annotations.NotNull java.lang.String getFriendlyUniqueId();

    /**
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
    @org.jetbrains.annotations.NotNull java.lang.String getTerraformResourceType();

    /**
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
    default @org.jetbrains.annotations.Nullable java.lang.Number getCount() {
        return null;
    }

    /**
     */
    @software.amazon.jsii.Optional
    default void setCount(final @org.jetbrains.annotations.Nullable java.lang.Number value) {
        throw new UnsupportedOperationException("'void " + getClass().getCanonicalName() + "#setCount(@org.jetbrains.annotations.Nullable java.lang.Number)' is not implemented!");
    }

    /**
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
    default @org.jetbrains.annotations.Nullable java.util.List getDependsOn() {
        return null;
    }

    /**
     */
    @software.amazon.jsii.Optional
    default void setDependsOn(final @org.jetbrains.annotations.Nullable java.util.List value) {
        throw new UnsupportedOperationException("'void " + getClass().getCanonicalName() + "#setDependsOn(@org.jetbrains.annotations.Nullable java.util.List)' is not implemented!");
    }

    /**
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
    default @org.jetbrains.annotations.Nullable com.hashicorp.cdktf.TerraformResourceLifecycle getLifecycle() {
        return null;
    }

    /**
     */
    @software.amazon.jsii.Optional
    default void setLifecycle(final @org.jetbrains.annotations.Nullable com.hashicorp.cdktf.TerraformResourceLifecycle value) {
        throw new UnsupportedOperationException("'void " + getClass().getCanonicalName() + "#setLifecycle(@org.jetbrains.annotations.Nullable com.hashicorp.cdktf.TerraformResourceLifecycle)' is not implemented!");
    }

    /**
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
    default @org.jetbrains.annotations.Nullable com.hashicorp.cdktf.TerraformProvider getProvider() {
        return null;
    }

    /**
     */
    @software.amazon.jsii.Optional
    default void setProvider(final @org.jetbrains.annotations.Nullable com.hashicorp.cdktf.TerraformProvider value) {
        throw new UnsupportedOperationException("'void " + getClass().getCanonicalName() + "#setProvider(@org.jetbrains.annotations.Nullable com.hashicorp.cdktf.TerraformProvider)' is not implemented!");
    }

    /**
     * @param terraformAttribute This parameter is required.
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
    @org.jetbrains.annotations.NotNull java.lang.String interpolationForAttribute(final @org.jetbrains.annotations.NotNull java.lang.String terraformAttribute);

    /**
     * A proxy class which represents a concrete javascript instance of this type.
     */
    @software.amazon.jsii.Internal
    final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements com.hashicorp.cdktf.ITerraformResource.Jsii$Default {
        protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) {
            super(objRef);
        }

        /**
         */
        @Override
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
        public final @org.jetbrains.annotations.NotNull java.lang.String getFqn() {
            return software.amazon.jsii.Kernel.get(this, "fqn", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
        }

        /**
         */
        @Override
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
        public final @org.jetbrains.annotations.NotNull java.lang.String getFriendlyUniqueId() {
            return software.amazon.jsii.Kernel.get(this, "friendlyUniqueId", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
        }

        /**
         */
        @Override
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
        public final @org.jetbrains.annotations.NotNull java.lang.String getTerraformResourceType() {
            return software.amazon.jsii.Kernel.get(this, "terraformResourceType", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
        }

        /**
         */
        @Override
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
        public final @org.jetbrains.annotations.Nullable java.lang.Number getCount() {
            return software.amazon.jsii.Kernel.get(this, "count", software.amazon.jsii.NativeType.forClass(java.lang.Number.class));
        }

        /**
         */
        @Override
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
        public final void setCount(final @org.jetbrains.annotations.Nullable java.lang.Number value) {
            software.amazon.jsii.Kernel.set(this, "count", value);
        }

        /**
         */
        @Override
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
        public final @org.jetbrains.annotations.Nullable java.util.List getDependsOn() {
            return java.util.Optional.ofNullable((java.util.List)(software.amazon.jsii.Kernel.get(this, "dependsOn", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class))))).map(java.util.Collections::unmodifiableList).orElse(null);
        }

        /**
         */
        @Override
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
        public final void setDependsOn(final @org.jetbrains.annotations.Nullable java.util.List value) {
            software.amazon.jsii.Kernel.set(this, "dependsOn", value);
        }

        /**
         */
        @Override
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
        public final @org.jetbrains.annotations.Nullable com.hashicorp.cdktf.TerraformResourceLifecycle getLifecycle() {
            return software.amazon.jsii.Kernel.get(this, "lifecycle", software.amazon.jsii.NativeType.forClass(com.hashicorp.cdktf.TerraformResourceLifecycle.class));
        }

        /**
         */
        @Override
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
        public final void setLifecycle(final @org.jetbrains.annotations.Nullable com.hashicorp.cdktf.TerraformResourceLifecycle value) {
            software.amazon.jsii.Kernel.set(this, "lifecycle", value);
        }

        /**
         */
        @Override
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
        public final @org.jetbrains.annotations.Nullable com.hashicorp.cdktf.TerraformProvider getProvider() {
            return software.amazon.jsii.Kernel.get(this, "provider", software.amazon.jsii.NativeType.forClass(com.hashicorp.cdktf.TerraformProvider.class));
        }

        /**
         */
        @Override
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
        public final void setProvider(final @org.jetbrains.annotations.Nullable com.hashicorp.cdktf.TerraformProvider value) {
            software.amazon.jsii.Kernel.set(this, "provider", value);
        }

        /**
         * @param terraformAttribute This parameter is required.
         */
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
        @Override
        public final @org.jetbrains.annotations.NotNull java.lang.String interpolationForAttribute(final @org.jetbrains.annotations.NotNull java.lang.String terraformAttribute) {
            return software.amazon.jsii.Kernel.call(this, "interpolationForAttribute", software.amazon.jsii.NativeType.forClass(java.lang.String.class), new Object[] { java.util.Objects.requireNonNull(terraformAttribute, "terraformAttribute is required") });
        }
    }

    /**
     * Internal default implementation for {@link ITerraformResource}.
     */
    @software.amazon.jsii.Internal
    interface Jsii$Default extends ITerraformResource {

        /**
         */
        @Override
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
        default @org.jetbrains.annotations.NotNull java.lang.String getFqn() {
            return software.amazon.jsii.Kernel.get(this, "fqn", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
        }

        /**
         */
        @Override
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
        default @org.jetbrains.annotations.NotNull java.lang.String getFriendlyUniqueId() {
            return software.amazon.jsii.Kernel.get(this, "friendlyUniqueId", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
        }

        /**
         */
        @Override
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
        default @org.jetbrains.annotations.NotNull java.lang.String getTerraformResourceType() {
            return software.amazon.jsii.Kernel.get(this, "terraformResourceType", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
        }

        /**
         */
        @Override
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
        default @org.jetbrains.annotations.Nullable java.lang.Number getCount() {
            return software.amazon.jsii.Kernel.get(this, "count", software.amazon.jsii.NativeType.forClass(java.lang.Number.class));
        }

        /**
         */
        @Override
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
        default void setCount(final @org.jetbrains.annotations.Nullable java.lang.Number value) {
            software.amazon.jsii.Kernel.set(this, "count", value);
        }

        /**
         */
        @Override
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
        default @org.jetbrains.annotations.Nullable java.util.List getDependsOn() {
            return java.util.Optional.ofNullable((java.util.List)(software.amazon.jsii.Kernel.get(this, "dependsOn", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class))))).map(java.util.Collections::unmodifiableList).orElse(null);
        }

        /**
         */
        @Override
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
        default void setDependsOn(final @org.jetbrains.annotations.Nullable java.util.List value) {
            software.amazon.jsii.Kernel.set(this, "dependsOn", value);
        }

        /**
         */
        @Override
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
        default @org.jetbrains.annotations.Nullable com.hashicorp.cdktf.TerraformResourceLifecycle getLifecycle() {
            return software.amazon.jsii.Kernel.get(this, "lifecycle", software.amazon.jsii.NativeType.forClass(com.hashicorp.cdktf.TerraformResourceLifecycle.class));
        }

        /**
         */
        @Override
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
        default void setLifecycle(final @org.jetbrains.annotations.Nullable com.hashicorp.cdktf.TerraformResourceLifecycle value) {
            software.amazon.jsii.Kernel.set(this, "lifecycle", value);
        }

        /**
         */
        @Override
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
        default @org.jetbrains.annotations.Nullable com.hashicorp.cdktf.TerraformProvider getProvider() {
            return software.amazon.jsii.Kernel.get(this, "provider", software.amazon.jsii.NativeType.forClass(com.hashicorp.cdktf.TerraformProvider.class));
        }

        /**
         */
        @Override
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
        default void setProvider(final @org.jetbrains.annotations.Nullable com.hashicorp.cdktf.TerraformProvider value) {
            software.amazon.jsii.Kernel.set(this, "provider", value);
        }

        /**
         * @param terraformAttribute This parameter is required.
         */
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
        @Override
        default @org.jetbrains.annotations.NotNull java.lang.String interpolationForAttribute(final @org.jetbrains.annotations.NotNull java.lang.String terraformAttribute) {
            return software.amazon.jsii.Kernel.call(this, "interpolationForAttribute", software.amazon.jsii.NativeType.forClass(java.lang.String.class), new Object[] { java.util.Objects.requireNonNull(terraformAttribute, "terraformAttribute is required") });
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy