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

software.aws.awsprototypingsdk.nxmonorepo.nx.ProjectConfig Maven / Gradle / Ivy

The newest version!
package software.aws.awsprototypingsdk.nxmonorepo.nx;

/**
 */
@javax.annotation.Generated(value = "jsii-pacmak/1.74.0 (build 6d08790)", date = "2023-02-28T00:38:33.015Z")
@software.amazon.jsii.Jsii(module = software.aws.awsprototypingsdk.$Module.class, fqn = "aws-prototyping-sdk.nx_monorepo.Nx.ProjectConfig")
@software.amazon.jsii.Jsii.Proxy(ProjectConfig.Jsii$Proxy.class)
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public interface ProjectConfig extends software.amazon.jsii.JsiiSerializable {

    /**
     * Implicit dependencies.
     * 

* @see https://nx.dev/reference/project-configuration#implicitdependencies */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.util.List getImplicitDependencies() { return null; } /** * Explicit list of scripts for Nx to include. *

* @see https://nx.dev/reference/project-configuration#ignoring-package.json-scripts */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.util.List getIncludedScripts() { return null; } /** * Named inputs. *

* @see https://nx.dev/reference/nx-json#inputs-&-namedinputs */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable software.aws.awsprototypingsdk.nxmonorepo.nx.NamedInputs getNamedInputs() { return null; } /** * Project tag annotations. *

* @see https://nx.dev/reference/project-configuration#tags */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.util.List getTags() { return null; } /** * Targets configuration. *

* @see https://nx.dev/reference/project-configuration */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.util.Map getTargets() { return null; } /** * @return a {@link Builder} of {@link ProjectConfig} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) static Builder builder() { return new Builder(); } /** * A builder for {@link ProjectConfig} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public static final class Builder implements software.amazon.jsii.Builder { java.util.List implicitDependencies; java.util.List includedScripts; software.aws.awsprototypingsdk.nxmonorepo.nx.NamedInputs namedInputs; java.util.List tags; java.util.Map targets; /** * Sets the value of {@link ProjectConfig#getImplicitDependencies} * @param implicitDependencies Implicit dependencies. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder implicitDependencies(java.util.List implicitDependencies) { this.implicitDependencies = implicitDependencies; return this; } /** * Sets the value of {@link ProjectConfig#getIncludedScripts} * @param includedScripts Explicit list of scripts for Nx to include. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder includedScripts(java.util.List includedScripts) { this.includedScripts = includedScripts; return this; } /** * Sets the value of {@link ProjectConfig#getNamedInputs} * @param namedInputs Named inputs. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder namedInputs(software.aws.awsprototypingsdk.nxmonorepo.nx.NamedInputs namedInputs) { this.namedInputs = namedInputs; return this; } /** * Sets the value of {@link ProjectConfig#getTags} * @param tags Project tag annotations. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder tags(java.util.List tags) { this.tags = tags; return this; } /** * Sets the value of {@link ProjectConfig#getTargets} * @param targets Targets configuration. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @SuppressWarnings("unchecked") public Builder targets(java.util.Map targets) { this.targets = (java.util.Map)targets; return this; } /** * Builds the configured instance. * @return a new instance of {@link ProjectConfig} * @throws NullPointerException if any required attribute was not provided */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @Override public ProjectConfig build() { return new Jsii$Proxy(this); } } /** * An implementation for {@link ProjectConfig} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @software.amazon.jsii.Internal final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements ProjectConfig { private final java.util.List implicitDependencies; private final java.util.List includedScripts; private final software.aws.awsprototypingsdk.nxmonorepo.nx.NamedInputs namedInputs; private final java.util.List tags; private final java.util.Map targets; /** * 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.implicitDependencies = software.amazon.jsii.Kernel.get(this, "implicitDependencies", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class))); this.includedScripts = software.amazon.jsii.Kernel.get(this, "includedScripts", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class))); this.namedInputs = software.amazon.jsii.Kernel.get(this, "namedInputs", software.amazon.jsii.NativeType.forClass(software.aws.awsprototypingsdk.nxmonorepo.nx.NamedInputs.class)); this.tags = software.amazon.jsii.Kernel.get(this, "tags", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class))); this.targets = software.amazon.jsii.Kernel.get(this, "targets", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(software.aws.awsprototypingsdk.nxmonorepo.nx.ProjectTarget.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.implicitDependencies = builder.implicitDependencies; this.includedScripts = builder.includedScripts; this.namedInputs = builder.namedInputs; this.tags = builder.tags; this.targets = (java.util.Map)builder.targets; } @Override public final java.util.List getImplicitDependencies() { return this.implicitDependencies; } @Override public final java.util.List getIncludedScripts() { return this.includedScripts; } @Override public final software.aws.awsprototypingsdk.nxmonorepo.nx.NamedInputs getNamedInputs() { return this.namedInputs; } @Override public final java.util.List getTags() { return this.tags; } @Override public final java.util.Map getTargets() { return this.targets; } @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.getImplicitDependencies() != null) { data.set("implicitDependencies", om.valueToTree(this.getImplicitDependencies())); } if (this.getIncludedScripts() != null) { data.set("includedScripts", om.valueToTree(this.getIncludedScripts())); } if (this.getNamedInputs() != null) { data.set("namedInputs", om.valueToTree(this.getNamedInputs())); } if (this.getTags() != null) { data.set("tags", om.valueToTree(this.getTags())); } if (this.getTargets() != null) { data.set("targets", om.valueToTree(this.getTargets())); } final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); struct.set("fqn", om.valueToTree("aws-prototyping-sdk.nx_monorepo.Nx.ProjectConfig")); 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; ProjectConfig.Jsii$Proxy that = (ProjectConfig.Jsii$Proxy) o; if (this.implicitDependencies != null ? !this.implicitDependencies.equals(that.implicitDependencies) : that.implicitDependencies != null) return false; if (this.includedScripts != null ? !this.includedScripts.equals(that.includedScripts) : that.includedScripts != null) return false; if (this.namedInputs != null ? !this.namedInputs.equals(that.namedInputs) : that.namedInputs != null) return false; if (this.tags != null ? !this.tags.equals(that.tags) : that.tags != null) return false; return this.targets != null ? this.targets.equals(that.targets) : that.targets == null; } @Override public final int hashCode() { int result = this.implicitDependencies != null ? this.implicitDependencies.hashCode() : 0; result = 31 * result + (this.includedScripts != null ? this.includedScripts.hashCode() : 0); result = 31 * result + (this.namedInputs != null ? this.namedInputs.hashCode() : 0); result = 31 * result + (this.tags != null ? this.tags.hashCode() : 0); result = 31 * result + (this.targets != null ? this.targets.hashCode() : 0); return result; } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy