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

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

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

/**
 * Represents a CloudFormation mapping.
 */
@javax.annotation.Generated(value = "jsii-pacmak/0.10.5 (build 46bc9b0)", date = "2019-05-06T20:49:40.937Z")
@software.amazon.jsii.Jsii(module = software.amazon.awscdk.$Module.class, fqn = "@aws-cdk/cdk.CfnMapping")
public class CfnMapping extends software.amazon.awscdk.CfnRefElement {
    protected CfnMapping(final software.amazon.jsii.JsiiObject.InitializationMode mode) {
        super(mode);
    }
    public CfnMapping(final software.amazon.awscdk.Construct scope, final java.lang.String id, @javax.annotation.Nullable final software.amazon.awscdk.CfnMappingProps props) {
        super(software.amazon.jsii.JsiiObject.InitializationMode.Jsii);
        software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(scope, "scope is required"), java.util.Objects.requireNonNull(id, "id is required"), props });
    }
    public CfnMapping(final software.amazon.awscdk.Construct scope, final java.lang.String id) {
        super(software.amazon.jsii.JsiiObject.InitializationMode.Jsii);
        software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(scope, "scope is required"), java.util.Objects.requireNonNull(id, "id is required") });
    }

    /**
     * @return A reference to a value in the map based on the two keys.
     */
    public java.lang.String findInMap(final java.lang.String key1, final java.lang.String key2) {
        return this.jsiiCall("findInMap", java.lang.String.class, new Object[] { java.util.Objects.requireNonNull(key1, "key1 is required"), java.util.Objects.requireNonNull(key2, "key2 is required") });
    }

    /**
     * Sets a value in the map based on the two keys.
     */
    public void setValue(final java.lang.String key1, final java.lang.String key2, @javax.annotation.Nullable final java.lang.Object value) {
        this.jsiiCall("setValue", Void.class, new Object[] { java.util.Objects.requireNonNull(key1, "key1 is required"), java.util.Objects.requireNonNull(key2, "key2 is required"), value });
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy