software.amazon.awscdk.SynthesisOptions 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.960Z")
public interface SynthesisOptions extends software.amazon.jsii.JsiiSerializable, software.amazon.awscdk.ManifestOptions {
/**
* Whether synthesis should skip the validation phase.
*
* Default: false
*/
java.lang.Boolean getSkipValidation();
/**
* The file store used for this session.
*
* Default: InMemoryStore
*/
software.amazon.awscdk.ISessionStore getStore();
/**
* @return a {@link Builder} of {@link SynthesisOptions}
*/
static Builder builder() {
return new Builder();
}
/**
* A builder for {@link SynthesisOptions}
*/
final class Builder {
@javax.annotation.Nullable
private java.lang.Boolean _skipValidation;
@javax.annotation.Nullable
private software.amazon.awscdk.ISessionStore _store;
@javax.annotation.Nullable
private java.lang.Boolean _legacyManifest;
@javax.annotation.Nullable
private java.lang.Boolean _runtimeInformation;
/**
* Sets the value of SkipValidation
* @param value Whether synthesis should skip the validation phase.
* @return {@code this}
*/
public Builder withSkipValidation(@javax.annotation.Nullable final java.lang.Boolean value) {
this._skipValidation = value;
return this;
}
/**
* Sets the value of Store
* @param value The file store used for this session.
* @return {@code this}
*/
public Builder withStore(@javax.annotation.Nullable final software.amazon.awscdk.ISessionStore value) {
this._store = value;
return this;
}
/**
* 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 SynthesisOptions}
* @throws NullPointerException if any required attribute was not provided
*/
public SynthesisOptions build() {
return new SynthesisOptions() {
@javax.annotation.Nullable
private final java.lang.Boolean $skipValidation = _skipValidation;
@javax.annotation.Nullable
private final software.amazon.awscdk.ISessionStore $store = _store;
@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 getSkipValidation() {
return this.$skipValidation;
}
@Override
public software.amazon.awscdk.ISessionStore getStore() {
return this.$store;
}
@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("skipValidation", om.valueToTree(this.getSkipValidation()));
obj.set("store", om.valueToTree(this.getStore()));
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.SynthesisOptions {
protected Jsii$Proxy(final software.amazon.jsii.JsiiObject.InitializationMode mode) {
super(mode);
}
/**
* Whether synthesis should skip the validation phase.
*
* Default: false
*/
@Override
@javax.annotation.Nullable
public java.lang.Boolean getSkipValidation() {
return this.jsiiGet("skipValidation", java.lang.Boolean.class);
}
/**
* The file store used for this session.
*
* Default: InMemoryStore
*/
@Override
@javax.annotation.Nullable
public software.amazon.awscdk.ISessionStore getStore() {
return this.jsiiGet("store", software.amazon.awscdk.ISessionStore.class);
}
/**
* 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