software.amazon.awscdk.ManifestOptions Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cdk Show documentation
Show all versions of cdk Show documentation
AWS Cloud Development Kit Core Library
package software.amazon.awscdk;
@javax.annotation.Generated(value = "jsii-pacmak/0.10.5 (build 46bc9b0)", date = "2019-05-06T20:49:40.955Z")
public interface ManifestOptions extends software.amazon.jsii.JsiiSerializable {
/**
* Emit the legacy manifest (`cdk.out`) when the session is closed (alongside `manifest.json`).
*
* Default: false
*/
java.lang.Boolean getLegacyManifest();
/**
* Include runtime information (module versions) in manifest.
*
* Default: true
*/
java.lang.Boolean getRuntimeInformation();
/**
* @return a {@link Builder} of {@link ManifestOptions}
*/
static Builder builder() {
return new Builder();
}
/**
* A builder for {@link ManifestOptions}
*/
final class Builder {
@javax.annotation.Nullable
private java.lang.Boolean _legacyManifest;
@javax.annotation.Nullable
private java.lang.Boolean _runtimeInformation;
/**
* Sets the value of LegacyManifest
* @param value Emit the legacy manifest (`cdk.out`) when the session is closed (alongside `manifest.json`).
* @return {@code this}
*/
public Builder withLegacyManifest(@javax.annotation.Nullable final java.lang.Boolean value) {
this._legacyManifest = value;
return this;
}
/**
* Sets the value of RuntimeInformation
* @param value Include runtime information (module versions) in manifest.
* @return {@code this}
*/
public Builder withRuntimeInformation(@javax.annotation.Nullable final java.lang.Boolean value) {
this._runtimeInformation = value;
return this;
}
/**
* Builds the configured instance.
* @return a new instance of {@link ManifestOptions}
* @throws NullPointerException if any required attribute was not provided
*/
public ManifestOptions build() {
return new ManifestOptions() {
@javax.annotation.Nullable
private final java.lang.Boolean $legacyManifest = _legacyManifest;
@javax.annotation.Nullable
private final java.lang.Boolean $runtimeInformation = _runtimeInformation;
@Override
public java.lang.Boolean getLegacyManifest() {
return this.$legacyManifest;
}
@Override
public java.lang.Boolean getRuntimeInformation() {
return this.$runtimeInformation;
}
public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() {
com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE;
com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode();
obj.set("legacyManifest", om.valueToTree(this.getLegacyManifest()));
obj.set("runtimeInformation", om.valueToTree(this.getRuntimeInformation()));
return obj;
}
};
}
}
/**
* A proxy class which represents a concrete javascript instance of this type.
*/
final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.awscdk.ManifestOptions {
protected Jsii$Proxy(final software.amazon.jsii.JsiiObject.InitializationMode mode) {
super(mode);
}
/**
* Emit the legacy manifest (`cdk.out`) when the session is closed (alongside `manifest.json`).
*
* Default: false
*/
@Override
@javax.annotation.Nullable
public java.lang.Boolean getLegacyManifest() {
return this.jsiiGet("legacyManifest", java.lang.Boolean.class);
}
/**
* Include runtime information (module versions) in manifest.
*
* Default: true
*/
@Override
@javax.annotation.Nullable
public java.lang.Boolean getRuntimeInformation() {
return this.jsiiGet("runtimeInformation", java.lang.Boolean.class);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy