
io.github.cdklabs.projen.javascript.HasteConfig Maven / Gradle / Ivy
package io.github.cdklabs.projen.javascript;
/**
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.50.0 (build d1830a4)", date = "2022-01-03T02:39:48.637Z")
@software.amazon.jsii.Jsii(module = io.github.cdklabs.projen.$Module.class, fqn = "projen.javascript.HasteConfig")
@software.amazon.jsii.Jsii.Proxy(HasteConfig.Jsii$Proxy.class)
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public interface HasteConfig extends software.amazon.jsii.JsiiSerializable {
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
default @org.jetbrains.annotations.Nullable java.lang.Boolean getComputeSha1() {
return null;
}
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
default @org.jetbrains.annotations.Nullable java.lang.String getDefaultPlatform() {
return null;
}
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
default @org.jetbrains.annotations.Nullable java.lang.String getHasteImplModulePath() {
return null;
}
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
default @org.jetbrains.annotations.Nullable java.util.List getPlatforms() {
return null;
}
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
default @org.jetbrains.annotations.Nullable java.lang.Boolean getThrowOnModuleCollision() {
return null;
}
/**
* @return a {@link Builder} of {@link HasteConfig}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
static Builder builder() {
return new Builder();
}
/**
* A builder for {@link HasteConfig}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public static final class Builder implements software.amazon.jsii.Builder {
java.lang.Boolean computeSha1;
java.lang.String defaultPlatform;
java.lang.String hasteImplModulePath;
java.util.List platforms;
java.lang.Boolean throwOnModuleCollision;
/**
* Sets the value of {@link HasteConfig#getComputeSha1}
* @param computeSha1 the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder computeSha1(java.lang.Boolean computeSha1) {
this.computeSha1 = computeSha1;
return this;
}
/**
* Sets the value of {@link HasteConfig#getDefaultPlatform}
* @param defaultPlatform the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder defaultPlatform(java.lang.String defaultPlatform) {
this.defaultPlatform = defaultPlatform;
return this;
}
/**
* Sets the value of {@link HasteConfig#getHasteImplModulePath}
* @param hasteImplModulePath the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder hasteImplModulePath(java.lang.String hasteImplModulePath) {
this.hasteImplModulePath = hasteImplModulePath;
return this;
}
/**
* Sets the value of {@link HasteConfig#getPlatforms}
* @param platforms the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder platforms(java.util.List platforms) {
this.platforms = platforms;
return this;
}
/**
* Sets the value of {@link HasteConfig#getThrowOnModuleCollision}
* @param throwOnModuleCollision the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder throwOnModuleCollision(java.lang.Boolean throwOnModuleCollision) {
this.throwOnModuleCollision = throwOnModuleCollision;
return this;
}
/**
* Builds the configured instance.
* @return a new instance of {@link HasteConfig}
* @throws NullPointerException if any required attribute was not provided
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@Override
public HasteConfig build() {
return new Jsii$Proxy(this);
}
}
/**
* An implementation for {@link HasteConfig}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@software.amazon.jsii.Internal
final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements HasteConfig {
private final java.lang.Boolean computeSha1;
private final java.lang.String defaultPlatform;
private final java.lang.String hasteImplModulePath;
private final java.util.List platforms;
private final java.lang.Boolean throwOnModuleCollision;
/**
* 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.computeSha1 = software.amazon.jsii.Kernel.get(this, "computeSha1", software.amazon.jsii.NativeType.forClass(java.lang.Boolean.class));
this.defaultPlatform = software.amazon.jsii.Kernel.get(this, "defaultPlatform", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
this.hasteImplModulePath = software.amazon.jsii.Kernel.get(this, "hasteImplModulePath", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
this.platforms = software.amazon.jsii.Kernel.get(this, "platforms", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class)));
this.throwOnModuleCollision = software.amazon.jsii.Kernel.get(this, "throwOnModuleCollision", software.amazon.jsii.NativeType.forClass(java.lang.Boolean.class));
}
/**
* Constructor that initializes the object based on literal property values passed by the {@link Builder}.
*/
protected Jsii$Proxy(final Builder builder) {
super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
this.computeSha1 = builder.computeSha1;
this.defaultPlatform = builder.defaultPlatform;
this.hasteImplModulePath = builder.hasteImplModulePath;
this.platforms = builder.platforms;
this.throwOnModuleCollision = builder.throwOnModuleCollision;
}
@Override
public final java.lang.Boolean getComputeSha1() {
return this.computeSha1;
}
@Override
public final java.lang.String getDefaultPlatform() {
return this.defaultPlatform;
}
@Override
public final java.lang.String getHasteImplModulePath() {
return this.hasteImplModulePath;
}
@Override
public final java.util.List getPlatforms() {
return this.platforms;
}
@Override
public final java.lang.Boolean getThrowOnModuleCollision() {
return this.throwOnModuleCollision;
}
@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.getComputeSha1() != null) {
data.set("computeSha1", om.valueToTree(this.getComputeSha1()));
}
if (this.getDefaultPlatform() != null) {
data.set("defaultPlatform", om.valueToTree(this.getDefaultPlatform()));
}
if (this.getHasteImplModulePath() != null) {
data.set("hasteImplModulePath", om.valueToTree(this.getHasteImplModulePath()));
}
if (this.getPlatforms() != null) {
data.set("platforms", om.valueToTree(this.getPlatforms()));
}
if (this.getThrowOnModuleCollision() != null) {
data.set("throwOnModuleCollision", om.valueToTree(this.getThrowOnModuleCollision()));
}
final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode();
struct.set("fqn", om.valueToTree("projen.javascript.HasteConfig"));
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;
HasteConfig.Jsii$Proxy that = (HasteConfig.Jsii$Proxy) o;
if (this.computeSha1 != null ? !this.computeSha1.equals(that.computeSha1) : that.computeSha1 != null) return false;
if (this.defaultPlatform != null ? !this.defaultPlatform.equals(that.defaultPlatform) : that.defaultPlatform != null) return false;
if (this.hasteImplModulePath != null ? !this.hasteImplModulePath.equals(that.hasteImplModulePath) : that.hasteImplModulePath != null) return false;
if (this.platforms != null ? !this.platforms.equals(that.platforms) : that.platforms != null) return false;
return this.throwOnModuleCollision != null ? this.throwOnModuleCollision.equals(that.throwOnModuleCollision) : that.throwOnModuleCollision == null;
}
@Override
public final int hashCode() {
int result = this.computeSha1 != null ? this.computeSha1.hashCode() : 0;
result = 31 * result + (this.defaultPlatform != null ? this.defaultPlatform.hashCode() : 0);
result = 31 * result + (this.hasteImplModulePath != null ? this.hasteImplModulePath.hashCode() : 0);
result = 31 * result + (this.platforms != null ? this.platforms.hashCode() : 0);
result = 31 * result + (this.throwOnModuleCollision != null ? this.throwOnModuleCollision.hashCode() : 0);
return result;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy