org.cdk8s.cdktfresolver.CdktfResolver Maven / Gradle / Ivy
package org.cdk8s.cdktfresolver;
/**
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.103.1 (build bef2dea)", date = "2024-09-17T12:15:05.510Z")
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@software.amazon.jsii.Jsii(module = org.cdk8s.cdktfresolver.$Module.class, fqn = "@cdk8s/cdktf-resolver.CdktfResolver")
public class CdktfResolver extends software.amazon.jsii.JsiiObject implements org.cdk8s.IResolver {
protected CdktfResolver(final software.amazon.jsii.JsiiObjectRef objRef) {
super(objRef);
}
protected CdktfResolver(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) {
super(initializationMode);
}
/**
* @param props This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public CdktfResolver(final @org.jetbrains.annotations.NotNull org.cdk8s.cdktfresolver.CdktfResolverProps props) {
super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(props, "props is required") });
}
/**
* This function is invoked on every property during cdk8s synthesis.
*
* To replace a value, implementations must invoke context.replaceValue
.
*
* @param context This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@Override
public void resolve(final @org.jetbrains.annotations.NotNull org.cdk8s.ResolutionContext context) {
software.amazon.jsii.Kernel.call(this, "resolve", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(context, "context is required") });
}
/**
* A fluent builder for {@link org.cdk8s.cdktfresolver.CdktfResolver}.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static final class Builder implements software.amazon.jsii.Builder {
/**
* @return a new instance of {@link Builder}.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static Builder create() {
return new Builder();
}
private final org.cdk8s.cdktfresolver.CdktfResolverProps.Builder props;
private Builder() {
this.props = new org.cdk8s.cdktfresolver.CdktfResolverProps.Builder();
}
/**
* The CDKTF App instance in which the outputs are deinfed in.
*
* @return {@code this}
* @param app The CDKTF App instance in which the outputs are deinfed in. This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder app(final com.hashicorp.cdktf.App app) {
this.props.app(app);
return this;
}
/**
* @return a newly built instance of {@link org.cdk8s.cdktfresolver.CdktfResolver}.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@Override
public org.cdk8s.cdktfresolver.CdktfResolver build() {
return new org.cdk8s.cdktfresolver.CdktfResolver(
this.props.build()
);
}
}
}