com.hashicorp.cdktf.TestingAppConfig Maven / Gradle / Ivy
package com.hashicorp.cdktf;
/**
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.98.0 (build 00b106d)", date = "2024-05-27T11:46:32.289Z")
@software.amazon.jsii.Jsii(module = com.hashicorp.cdktf.$Module.class, fqn = "cdktf.TestingAppConfig")
@software.amazon.jsii.Jsii.Proxy(TestingAppConfig.Jsii$Proxy.class)
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public interface TestingAppConfig extends software.amazon.jsii.JsiiSerializable {
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
default @org.jetbrains.annotations.Nullable java.util.Map getContext() {
return null;
}
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
default @org.jetbrains.annotations.Nullable java.lang.Boolean getEnableFutureFlags() {
return null;
}
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
default @org.jetbrains.annotations.Nullable java.lang.Boolean getFakeCdktfJsonPath() {
return null;
}
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
default @org.jetbrains.annotations.Nullable java.lang.String getOutdir() {
return null;
}
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
default @org.jetbrains.annotations.Nullable java.lang.Boolean getStackTraces() {
return null;
}
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
default @org.jetbrains.annotations.Nullable java.lang.Boolean getStubVersion() {
return null;
}
/**
* @return a {@link Builder} of {@link TestingAppConfig}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
static Builder builder() {
return new Builder();
}
/**
* A builder for {@link TestingAppConfig}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public static final class Builder implements software.amazon.jsii.Builder {
java.util.Map context;
java.lang.Boolean enableFutureFlags;
java.lang.Boolean fakeCdktfJsonPath;
java.lang.String outdir;
java.lang.Boolean stackTraces;
java.lang.Boolean stubVersion;
/**
* Sets the value of {@link TestingAppConfig#getContext}
* @param context the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@SuppressWarnings("unchecked")
public Builder context(java.util.Map context) {
this.context = (java.util.Map)context;
return this;
}
/**
* Sets the value of {@link TestingAppConfig#getEnableFutureFlags}
* @param enableFutureFlags the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder enableFutureFlags(java.lang.Boolean enableFutureFlags) {
this.enableFutureFlags = enableFutureFlags;
return this;
}
/**
* Sets the value of {@link TestingAppConfig#getFakeCdktfJsonPath}
* @param fakeCdktfJsonPath the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder fakeCdktfJsonPath(java.lang.Boolean fakeCdktfJsonPath) {
this.fakeCdktfJsonPath = fakeCdktfJsonPath;
return this;
}
/**
* Sets the value of {@link TestingAppConfig#getOutdir}
* @param outdir the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder outdir(java.lang.String outdir) {
this.outdir = outdir;
return this;
}
/**
* Sets the value of {@link TestingAppConfig#getStackTraces}
* @param stackTraces the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder stackTraces(java.lang.Boolean stackTraces) {
this.stackTraces = stackTraces;
return this;
}
/**
* Sets the value of {@link TestingAppConfig#getStubVersion}
* @param stubVersion the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder stubVersion(java.lang.Boolean stubVersion) {
this.stubVersion = stubVersion;
return this;
}
/**
* Builds the configured instance.
* @return a new instance of {@link TestingAppConfig}
* @throws NullPointerException if any required attribute was not provided
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@Override
public TestingAppConfig build() {
return new Jsii$Proxy(this);
}
}
/**
* An implementation for {@link TestingAppConfig}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@software.amazon.jsii.Internal
final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements TestingAppConfig {
private final java.util.Map context;
private final java.lang.Boolean enableFutureFlags;
private final java.lang.Boolean fakeCdktfJsonPath;
private final java.lang.String outdir;
private final java.lang.Boolean stackTraces;
private final java.lang.Boolean stubVersion;
/**
* Constructor that initializes the object based on values retrieved from the JsiiObject.
* @param objRef Reference to the JSII managed object.
*/
protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) {
super(objRef);
this.context = software.amazon.jsii.Kernel.get(this, "context", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(java.lang.Object.class)));
this.enableFutureFlags = software.amazon.jsii.Kernel.get(this, "enableFutureFlags", software.amazon.jsii.NativeType.forClass(java.lang.Boolean.class));
this.fakeCdktfJsonPath = software.amazon.jsii.Kernel.get(this, "fakeCdktfJsonPath", software.amazon.jsii.NativeType.forClass(java.lang.Boolean.class));
this.outdir = software.amazon.jsii.Kernel.get(this, "outdir", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
this.stackTraces = software.amazon.jsii.Kernel.get(this, "stackTraces", software.amazon.jsii.NativeType.forClass(java.lang.Boolean.class));
this.stubVersion = software.amazon.jsii.Kernel.get(this, "stubVersion", software.amazon.jsii.NativeType.forClass(java.lang.Boolean.class));
}
/**
* Constructor that initializes the object based on literal property values passed by the {@link Builder}.
*/
@SuppressWarnings("unchecked")
protected Jsii$Proxy(final Builder builder) {
super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
this.context = (java.util.Map)builder.context;
this.enableFutureFlags = builder.enableFutureFlags;
this.fakeCdktfJsonPath = builder.fakeCdktfJsonPath;
this.outdir = builder.outdir;
this.stackTraces = builder.stackTraces;
this.stubVersion = builder.stubVersion;
}
@Override
public final java.util.Map getContext() {
return this.context;
}
@Override
public final java.lang.Boolean getEnableFutureFlags() {
return this.enableFutureFlags;
}
@Override
public final java.lang.Boolean getFakeCdktfJsonPath() {
return this.fakeCdktfJsonPath;
}
@Override
public final java.lang.String getOutdir() {
return this.outdir;
}
@Override
public final java.lang.Boolean getStackTraces() {
return this.stackTraces;
}
@Override
public final java.lang.Boolean getStubVersion() {
return this.stubVersion;
}
@Override
@software.amazon.jsii.Internal
public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() {
final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE;
final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode();
if (this.getContext() != null) {
data.set("context", om.valueToTree(this.getContext()));
}
if (this.getEnableFutureFlags() != null) {
data.set("enableFutureFlags", om.valueToTree(this.getEnableFutureFlags()));
}
if (this.getFakeCdktfJsonPath() != null) {
data.set("fakeCdktfJsonPath", om.valueToTree(this.getFakeCdktfJsonPath()));
}
if (this.getOutdir() != null) {
data.set("outdir", om.valueToTree(this.getOutdir()));
}
if (this.getStackTraces() != null) {
data.set("stackTraces", om.valueToTree(this.getStackTraces()));
}
if (this.getStubVersion() != null) {
data.set("stubVersion", om.valueToTree(this.getStubVersion()));
}
final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode();
struct.set("fqn", om.valueToTree("cdktf.TestingAppConfig"));
struct.set("data", data);
final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode();
obj.set("$jsii.struct", struct);
return obj;
}
@Override
public final boolean equals(final Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
TestingAppConfig.Jsii$Proxy that = (TestingAppConfig.Jsii$Proxy) o;
if (this.context != null ? !this.context.equals(that.context) : that.context != null) return false;
if (this.enableFutureFlags != null ? !this.enableFutureFlags.equals(that.enableFutureFlags) : that.enableFutureFlags != null) return false;
if (this.fakeCdktfJsonPath != null ? !this.fakeCdktfJsonPath.equals(that.fakeCdktfJsonPath) : that.fakeCdktfJsonPath != null) return false;
if (this.outdir != null ? !this.outdir.equals(that.outdir) : that.outdir != null) return false;
if (this.stackTraces != null ? !this.stackTraces.equals(that.stackTraces) : that.stackTraces != null) return false;
return this.stubVersion != null ? this.stubVersion.equals(that.stubVersion) : that.stubVersion == null;
}
@Override
public final int hashCode() {
int result = this.context != null ? this.context.hashCode() : 0;
result = 31 * result + (this.enableFutureFlags != null ? this.enableFutureFlags.hashCode() : 0);
result = 31 * result + (this.fakeCdktfJsonPath != null ? this.fakeCdktfJsonPath.hashCode() : 0);
result = 31 * result + (this.outdir != null ? this.outdir.hashCode() : 0);
result = 31 * result + (this.stackTraces != null ? this.stackTraces.hashCode() : 0);
result = 31 * result + (this.stubVersion != null ? this.stubVersion.hashCode() : 0);
return result;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy