software.aws.awsprototypingsdk.nxmonorepo.NxProject Maven / Gradle / Ivy
Show all versions of nx-monorepo Show documentation
package software.aws.awsprototypingsdk.nxmonorepo;
/**
* (experimental) Component which manages the project specific NX Config and is added to all NXMonorepo subprojects.
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.82.0 (build 2d2ddd7)", date = "2023-08-03T02:16:17.255Z")
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@software.amazon.jsii.Jsii(module = software.aws.awsprototypingsdk.nxmonorepo.$Module.class, fqn = "@aws-prototyping-sdk/nx-monorepo.NxProject")
public class NxProject extends io.github.cdklabs.projen.Component {
protected NxProject(final software.amazon.jsii.JsiiObjectRef objRef) {
super(objRef);
}
protected NxProject(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) {
super(initializationMode);
}
/**
* @param project This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public NxProject(final @org.jetbrains.annotations.NotNull io.github.cdklabs.projen.Project project) {
super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(project, "project is required") });
}
/**
* (experimental) Retrieves an instance of NXProject if one is associated to the given project, otherwise created a NXProject instance for the project.
*
* @param project project instance. This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public static @org.jetbrains.annotations.NotNull software.aws.awsprototypingsdk.nxmonorepo.NxProject ensure(final @org.jetbrains.annotations.NotNull io.github.cdklabs.projen.Project project) {
return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.aws.awsprototypingsdk.nxmonorepo.NxProject.class, "ensure", software.amazon.jsii.NativeType.forClass(software.aws.awsprototypingsdk.nxmonorepo.NxProject.class), new Object[] { java.util.Objects.requireNonNull(project, "project is required") });
}
/**
* (experimental) Retrieves an instance of NXProject if one is associated to the given project.
*
* @param project project instance. This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public static @org.jetbrains.annotations.Nullable software.aws.awsprototypingsdk.nxmonorepo.NxProject of(final @org.jetbrains.annotations.NotNull io.github.cdklabs.projen.Project project) {
return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.aws.awsprototypingsdk.nxmonorepo.NxProject.class, "of", software.amazon.jsii.NativeType.forClass(software.aws.awsprototypingsdk.nxmonorepo.NxProject.class), new Object[] { java.util.Objects.requireNonNull(project, "project is required") });
}
/**
* (experimental) Add input and output files to build target.
*
* @param inputs Input files.
* @param outputs Output files.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public void addBuildTargetFiles(final @org.jetbrains.annotations.Nullable java.util.List inputs, final @org.jetbrains.annotations.Nullable java.util.List outputs) {
if (software.amazon.jsii.Configuration.getRuntimeTypeChecking()) {
for (int __idx_fc5fd4 = 0; __idx_fc5fd4 < inputs.size(); __idx_fc5fd4++) {
final java.lang.Object __val_fc5fd4 = inputs.get(__idx_fc5fd4);
if (
!(__val_fc5fd4 instanceof java.lang.String)
&& !(__val_fc5fd4 instanceof software.aws.awsprototypingsdk.nxmonorepo.nx.IInput)
&& !(__val_fc5fd4.getClass().equals(software.amazon.jsii.JsiiObject.class))
) {
throw new IllegalArgumentException(
new java.lang.StringBuilder("Expected ")
.append("inputs").append(".get(").append(__idx_fc5fd4).append(")")
.append(" to be one of: java.lang.String, software.aws.awsprototypingsdk.nxmonorepo.nx.IInput; received ")
.append(__val_fc5fd4.getClass()).toString());
}
}
}
software.amazon.jsii.Kernel.call(this, "addBuildTargetFiles", software.amazon.jsii.NativeType.VOID, new Object[] { inputs, outputs });
}
/**
* (experimental) Add input and output files to build target.
*
* @param inputs Input files.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public void addBuildTargetFiles(final @org.jetbrains.annotations.Nullable java.util.List inputs) {
if (software.amazon.jsii.Configuration.getRuntimeTypeChecking()) {
for (int __idx_fc5fd4 = 0; __idx_fc5fd4 < inputs.size(); __idx_fc5fd4++) {
final java.lang.Object __val_fc5fd4 = inputs.get(__idx_fc5fd4);
if (
!(__val_fc5fd4 instanceof java.lang.String)
&& !(__val_fc5fd4 instanceof software.aws.awsprototypingsdk.nxmonorepo.nx.IInput)
&& !(__val_fc5fd4.getClass().equals(software.amazon.jsii.JsiiObject.class))
) {
throw new IllegalArgumentException(
new java.lang.StringBuilder("Expected ")
.append("inputs").append(".get(").append(__idx_fc5fd4).append(")")
.append(" to be one of: java.lang.String, software.aws.awsprototypingsdk.nxmonorepo.nx.IInput; received ")
.append(__val_fc5fd4.getClass()).toString());
}
}
}
software.amazon.jsii.Kernel.call(this, "addBuildTargetFiles", software.amazon.jsii.NativeType.VOID, new Object[] { inputs });
}
/**
* (experimental) Add input and output files to build target.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public void addBuildTargetFiles() {
software.amazon.jsii.Kernel.call(this, "addBuildTargetFiles", software.amazon.jsii.NativeType.VOID);
}
/**
* (experimental) Adds an implicit dependency between the dependant (this project) and dependee.
*
* @param dependee project to add the implicit dependency on. This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public void addImplicitDependency(final @org.jetbrains.annotations.NotNull java.lang.Object... dependee) {
if (software.amazon.jsii.Configuration.getRuntimeTypeChecking()) {
final java.util.List __dependee__asList = java.util.Arrays.asList(dependee);
for (int __idx_43583d = 0; __idx_43583d < __dependee__asList.size(); __idx_43583d++) {
final java.lang.Object __val_43583d = __dependee__asList.get(__idx_43583d);
if (
!(__val_43583d instanceof java.lang.String)
&& !(__val_43583d instanceof io.github.cdklabs.projen.Project)
) {
throw new IllegalArgumentException(
new java.lang.StringBuilder("Expected ")
.append("dependee").append("[").append(__idx_43583d).append("]")
.append(" to be one of: java.lang.String, io.github.cdklabs.projen.Project; received ")
.append(__val_43583d.getClass()).toString());
}
}
}
software.amazon.jsii.Kernel.call(this, "addImplicitDependency", software.amazon.jsii.NativeType.VOID, java.util.Arrays.