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

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

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

/**
 * (experimental) Less oft-needed functions to manipulate Tokens.
 */
@javax.annotation.Generated(value = "jsii-pacmak/1.17.1 (build 2bac5fd)", date = "2021-02-18T13:56:39.676Z")
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@software.amazon.jsii.Jsii(module = com.hashicorp.cdktf.$Module.class, fqn = "cdktf.Tokenization")
public class Tokenization extends software.amazon.jsii.JsiiObject {

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

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

    /**
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
    public Tokenization() {
        super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
        software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this);
    }

    /**
     * (experimental) Return whether the given object is an IResolvable object.
     * 

* This is different from Token.isUnresolved() which will also check for * encoded Tokens, whereas this method will only do a type check on the given * object. *

* @param obj This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull java.lang.Boolean isResolvable(final @org.jetbrains.annotations.NotNull java.lang.Object obj) { return software.amazon.jsii.JsiiObject.jsiiStaticCall(com.hashicorp.cdktf.Tokenization.class, "isResolvable", software.amazon.jsii.NativeType.forClass(java.lang.Boolean.class), new Object[] { obj }); } /** * (experimental) Resolves an object by evaluating all tokens and removing any undefined or empty objects or arrays. *

* Values can only be primitives, arrays or tokens. Other objects (i.e. with methods) will be rejected. *

* @param obj The object to resolve. This parameter is required. * @param options Prefix key path components for diagnostics. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull java.lang.Object resolve(final @org.jetbrains.annotations.NotNull java.lang.Object obj, final @org.jetbrains.annotations.NotNull com.hashicorp.cdktf.ResolveOptions options) { return software.amazon.jsii.JsiiObject.jsiiStaticCall(com.hashicorp.cdktf.Tokenization.class, "resolve", software.amazon.jsii.NativeType.forClass(java.lang.Object.class), new Object[] { obj, java.util.Objects.requireNonNull(options, "options is required") }); } /** * (experimental) Un-encode a Tokenized value from a list. *

* @param l This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.Nullable com.hashicorp.cdktf.IResolvable reverseList(final @org.jetbrains.annotations.NotNull java.util.List l) { return software.amazon.jsii.JsiiObject.jsiiStaticCall(com.hashicorp.cdktf.Tokenization.class, "reverseList", software.amazon.jsii.NativeType.forClass(com.hashicorp.cdktf.IResolvable.class), new Object[] { java.util.Objects.requireNonNull(l, "l is required") }); } /** * (experimental) Un-encode a Tokenized value from a number. *

* @param n This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.Nullable com.hashicorp.cdktf.IResolvable reverseNumber(final @org.jetbrains.annotations.NotNull java.lang.Number n) { return software.amazon.jsii.JsiiObject.jsiiStaticCall(com.hashicorp.cdktf.Tokenization.class, "reverseNumber", software.amazon.jsii.NativeType.forClass(com.hashicorp.cdktf.IResolvable.class), new Object[] { java.util.Objects.requireNonNull(n, "n is required") }); } /** * (experimental) Un-encode a string potentially containing encoded tokens. *

* @param s This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull com.hashicorp.cdktf.TokenizedStringFragments reverseString(final @org.jetbrains.annotations.NotNull java.lang.String s) { return software.amazon.jsii.JsiiObject.jsiiStaticCall(com.hashicorp.cdktf.Tokenization.class, "reverseString", software.amazon.jsii.NativeType.forClass(com.hashicorp.cdktf.TokenizedStringFragments.class), new Object[] { java.util.Objects.requireNonNull(s, "s is required") }); } /** * (experimental) Stringify a number directly or lazily if it's a Token. *

* If it is an object (i.e., { Ref: 'SomeLogicalId' }), return it as-is. *

* @param x This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull java.lang.String stringifyNumber(final @org.jetbrains.annotations.NotNull java.lang.Number x) { return software.amazon.jsii.JsiiObject.jsiiStaticCall(com.hashicorp.cdktf.Tokenization.class, "stringifyNumber", software.amazon.jsii.NativeType.forClass(java.lang.String.class), new Object[] { java.util.Objects.requireNonNull(x, "x is required") }); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy