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

software.amazon.awscdk.cli.lib.alpha.DeployOptions Maven / Gradle / Ivy

There is a newer version: 2.169.0-alpha.0
Show newest version
package software.amazon.awscdk.cli.lib.alpha;

/**
 * (experimental) Options to use with cdk deploy.
 * 

* Example: *

*

 * // await this asynchronous method call using a language feature
 * cli.deploy(DeployOptions.builder()
 *         .stacks(List.of("MyTestStack"))
 *         .build());
 * 
*/ @javax.annotation.Generated(value = "jsii-pacmak/1.103.1 (build bef2dea)", date = "2024-10-04T00:39:41.542Z") @software.amazon.jsii.Jsii(module = software.amazon.awscdk.cli.lib.alpha.$Module.class, fqn = "@aws-cdk/cli-lib-alpha.DeployOptions") @software.amazon.jsii.Jsii.Proxy(DeployOptions.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface DeployOptions extends software.amazon.jsii.JsiiSerializable, software.amazon.awscdk.cli.lib.alpha.SharedOptions { /** * (experimental) Whether to build/publish assets in parallel. *

* Default: false */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) default @org.jetbrains.annotations.Nullable java.lang.Boolean getAssetParallelism() { return null; } /** * (experimental) Whether to build all assets before deploying the first stack (useful for failing Docker builds). *

* Default: true */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) default @org.jetbrains.annotations.Nullable java.lang.Boolean getAssetPrebuild() { return null; } /** * (experimental) Optional name to use for the CloudFormation change set. *

* If not provided, a name will be generated automatically. *

* Default: - auto generate a name */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) default @org.jetbrains.annotations.Nullable java.lang.String getChangeSetName() { return null; } /** * (experimental) Whether we are on a CI system. *

* Default: - `false` unless the environment variable `CI` is set */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) default @org.jetbrains.annotations.Nullable java.lang.Boolean getCi() { return null; } /** * (experimental) Maximum number of simultaneous deployments (dependency permitting) to execute. *

* Default: 1 */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) default @org.jetbrains.annotations.Nullable java.lang.Number getConcurrency() { return null; } /** * (experimental) Only perform action on the given stack. *

* Default: false */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) default @org.jetbrains.annotations.Nullable java.lang.Boolean getExclusively() { return null; } /** * (experimental) Whether to execute the ChangeSet Not providing execute parameter will result in execution of ChangeSet. *

* Default: true */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) default @org.jetbrains.annotations.Nullable java.lang.Boolean getExecute() { return null; } /** * (experimental) Always deploy, even if templates are identical. *

* Default: false */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) default @org.jetbrains.annotations.Nullable java.lang.Boolean getForce() { return null; } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) default @org.jetbrains.annotations.Nullable software.amazon.awscdk.cli.lib.alpha.HotswapMode getHotswap() { return null; } /** * (experimental) ARNs of SNS topics that CloudFormation will notify with stack related events. *

* Default: - no notifications */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) default @org.jetbrains.annotations.Nullable java.util.List getNotificationArns() { return null; } /** * (experimental) Path to file where stack outputs will be written after a successful deploy as JSON. *

* Default: - Outputs are not written to any file */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) default @org.jetbrains.annotations.Nullable java.lang.String getOutputsFile() { return null; } /** * (experimental) Additional parameters for CloudFormation at deploy time. *

* Default: {} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) default @org.jetbrains.annotations.Nullable java.util.Map getParameters() { return null; } /** * (experimental) Display mode for stack activity events. *

* The default in the CLI is StackActivityProgress.BAR. But since this is an API * it makes more sense to set the default to StackActivityProgress.EVENTS *

* Default: StackActivityProgress.EVENTS */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) default @org.jetbrains.annotations.Nullable software.amazon.awscdk.cli.lib.alpha.StackActivityProgress getProgress() { return null; } /** * (experimental) What kind of security changes require approval. *

* Default: RequireApproval.Never */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) default @org.jetbrains.annotations.Nullable software.amazon.awscdk.cli.lib.alpha.RequireApproval getRequireApproval() { return null; } /** * (experimental) Reuse the assets with the given asset IDs. *

* Default: - do not reuse assets */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) default @org.jetbrains.annotations.Nullable java.util.List getReuseAssets() { return null; } /** * (experimental) Rollback failed deployments. *

* Default: true */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) default @org.jetbrains.annotations.Nullable java.lang.Boolean getRollback() { return null; } /** * (experimental) Name of the toolkit stack to use/deploy. *

* Default: CDKToolkit */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) default @org.jetbrains.annotations.Nullable java.lang.String getToolkitStackName() { return null; } /** * (experimental) Use previous values for unspecified parameters. *

* If not set, all parameters must be specified for every deployment. *

* Default: true */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) default @org.jetbrains.annotations.Nullable java.lang.Boolean getUsePreviousParameters() { return null; } /** * @return a {@link Builder} of {@link DeployOptions} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) static Builder builder() { return new Builder(); } /** * A builder for {@link DeployOptions} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static final class Builder implements software.amazon.jsii.Builder { java.lang.Boolean assetParallelism; java.lang.Boolean assetPrebuild; java.lang.String changeSetName; java.lang.Boolean ci; java.lang.Number concurrency; java.lang.Boolean exclusively; java.lang.Boolean execute; java.lang.Boolean force; software.amazon.awscdk.cli.lib.alpha.HotswapMode hotswap; java.util.List notificationArns; java.lang.String outputsFile; java.util.Map parameters; software.amazon.awscdk.cli.lib.alpha.StackActivityProgress progress; software.amazon.awscdk.cli.lib.alpha.RequireApproval requireApproval; java.util.List reuseAssets; java.lang.Boolean rollback; java.lang.String toolkitStackName; java.lang.Boolean usePreviousParameters; java.lang.Boolean assetMetadata; java.lang.String caBundlePath; java.lang.Boolean color; java.util.Map context; java.lang.Boolean debug; java.lang.Boolean ec2Creds; java.lang.Boolean ignoreErrors; java.lang.Boolean json; java.lang.Boolean lookups; java.lang.Boolean notices; java.lang.Boolean pathMetadata; java.lang.String profile; java.lang.String proxy; java.lang.String roleArn; java.util.List stacks; java.lang.Boolean staging; java.lang.Boolean strict; java.lang.Boolean trace; java.lang.Boolean verbose; java.lang.Boolean versionReporting; /** * Sets the value of {@link DeployOptions#getAssetParallelism} * @param assetParallelism Whether to build/publish assets in parallel. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder assetParallelism(java.lang.Boolean assetParallelism) { this.assetParallelism = assetParallelism; return this; } /** * Sets the value of {@link DeployOptions#getAssetPrebuild} * @param assetPrebuild Whether to build all assets before deploying the first stack (useful for failing Docker builds). * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder assetPrebuild(java.lang.Boolean assetPrebuild) { this.assetPrebuild = assetPrebuild; return this; } /** * Sets the value of {@link DeployOptions#getChangeSetName} * @param changeSetName Optional name to use for the CloudFormation change set. * If not provided, a name will be generated automatically. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder changeSetName(java.lang.String changeSetName) { this.changeSetName = changeSetName; return this; } /** * Sets the value of {@link DeployOptions#getCi} * @param ci Whether we are on a CI system. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder ci(java.lang.Boolean ci) { this.ci = ci; return this; } /** * Sets the value of {@link DeployOptions#getConcurrency} * @param concurrency Maximum number of simultaneous deployments (dependency permitting) to execute. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder concurrency(java.lang.Number concurrency) { this.concurrency = concurrency; return this; } /** * Sets the value of {@link DeployOptions#getExclusively} * @param exclusively Only perform action on the given stack. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder exclusively(java.lang.Boolean exclusively) { this.exclusively = exclusively; return this; } /** * Sets the value of {@link DeployOptions#getExecute} * @param execute Whether to execute the ChangeSet Not providing execute parameter will result in execution of ChangeSet. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder execute(java.lang.Boolean execute) { this.execute = execute; return this; } /** * Sets the value of {@link DeployOptions#getForce} * @param force Always deploy, even if templates are identical. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder force(java.lang.Boolean force) { this.force = force; return this; } /** * Sets the value of {@link DeployOptions#getHotswap} * @param hotswap the value to be set. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder hotswap(software.amazon.awscdk.cli.lib.alpha.HotswapMode hotswap) { this.hotswap = hotswap; return this; } /** * Sets the value of {@link DeployOptions#getNotificationArns} * @param notificationArns ARNs of SNS topics that CloudFormation will notify with stack related events. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder notificationArns(java.util.List notificationArns) { this.notificationArns = notificationArns; return this; } /** * Sets the value of {@link DeployOptions#getOutputsFile} * @param outputsFile Path to file where stack outputs will be written after a successful deploy as JSON. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder outputsFile(java.lang.String outputsFile) { this.outputsFile = outputsFile; return this; } /** * Sets the value of {@link DeployOptions#getParameters} * @param parameters Additional parameters for CloudFormation at deploy time. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder parameters(java.util.Map parameters) { this.parameters = parameters; return this; } /** * Sets the value of {@link DeployOptions#getProgress} * @param progress Display mode for stack activity events. * The default in the CLI is StackActivityProgress.BAR. But since this is an API * it makes more sense to set the default to StackActivityProgress.EVENTS * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder progress(software.amazon.awscdk.cli.lib.alpha.StackActivityProgress progress) { this.progress = progress; return this; } /** * Sets the value of {@link DeployOptions#getRequireApproval} * @param requireApproval What kind of security changes require approval. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder requireApproval(software.amazon.awscdk.cli.lib.alpha.RequireApproval requireApproval) { this.requireApproval = requireApproval; return this; } /** * Sets the value of {@link DeployOptions#getReuseAssets} * @param reuseAssets Reuse the assets with the given asset IDs. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder reuseAssets(java.util.List reuseAssets) { this.reuseAssets = reuseAssets; return this; } /** * Sets the value of {@link DeployOptions#getRollback} * @param rollback Rollback failed deployments. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder rollback(java.lang.Boolean rollback) { this.rollback = rollback; return this; } /** * Sets the value of {@link DeployOptions#getToolkitStackName} * @param toolkitStackName Name of the toolkit stack to use/deploy. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder toolkitStackName(java.lang.String toolkitStackName) { this.toolkitStackName = toolkitStackName; return this; } /** * Sets the value of {@link DeployOptions#getUsePreviousParameters} * @param usePreviousParameters Use previous values for unspecified parameters. * If not set, all parameters must be specified for every deployment. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder usePreviousParameters(java.lang.Boolean usePreviousParameters) { this.usePreviousParameters = usePreviousParameters; return this; } /** * Sets the value of {@link DeployOptions#getAssetMetadata} * @param assetMetadata Include "aws:asset:*" CloudFormation metadata for resources that use assets. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder assetMetadata(java.lang.Boolean assetMetadata) { this.assetMetadata = assetMetadata; return this; } /** * Sets the value of {@link DeployOptions#getCaBundlePath} * @param caBundlePath Path to CA certificate to use when validating HTTPS requests. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder caBundlePath(java.lang.String caBundlePath) { this.caBundlePath = caBundlePath; return this; } /** * Sets the value of {@link DeployOptions#getColor} * @param color Show colors and other style from console output. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder color(java.lang.Boolean color) { this.color = color; return this; } /** * Sets the value of {@link DeployOptions#getContext} * @param context Additional context. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder context(java.util.Map context) { this.context = context; return this; } /** * Sets the value of {@link DeployOptions#getDebug} * @param debug enable emission of additional debugging information, such as creation stack traces of tokens. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder debug(java.lang.Boolean debug) { this.debug = debug; return this; } /** * Sets the value of {@link DeployOptions#getEc2Creds} * @param ec2Creds Force trying to fetch EC2 instance credentials. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder ec2Creds(java.lang.Boolean ec2Creds) { this.ec2Creds = ec2Creds; return this; } /** * Sets the value of {@link DeployOptions#getIgnoreErrors} * @param ignoreErrors Ignores synthesis errors, which will likely produce an invalid output. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder ignoreErrors(java.lang.Boolean ignoreErrors) { this.ignoreErrors = ignoreErrors; return this; } /** * Sets the value of {@link DeployOptions#getJson} * @param json Use JSON output instead of YAML when templates are printed to STDOUT. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder json(java.lang.Boolean json) { this.json = json; return this; } /** * Sets the value of {@link DeployOptions#getLookups} * @param lookups Perform context lookups. * Synthesis fails if this is disabled and context lookups need * to be performed * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder lookups(java.lang.Boolean lookups) { this.lookups = lookups; return this; } /** * Sets the value of {@link DeployOptions#getNotices} * @param notices Show relevant notices. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder notices(java.lang.Boolean notices) { this.notices = notices; return this; } /** * Sets the value of {@link DeployOptions#getPathMetadata} * @param pathMetadata Include "aws:cdk:path" CloudFormation metadata for each resource. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder pathMetadata(java.lang.Boolean pathMetadata) { this.pathMetadata = pathMetadata; return this; } /** * Sets the value of {@link DeployOptions#getProfile} * @param profile Use the indicated AWS profile as the default environment. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder profile(java.lang.String profile) { this.profile = profile; return this; } /** * Sets the value of {@link DeployOptions#getProxy} * @param proxy Use the indicated proxy. * Will read from * HTTPS_PROXY environment if specified * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder proxy(java.lang.String proxy) { this.proxy = proxy; return this; } /** * Sets the value of {@link DeployOptions#getRoleArn} * @param roleArn Role to pass to CloudFormation for deployment. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder roleArn(java.lang.String roleArn) { this.roleArn = roleArn; return this; } /** * Sets the value of {@link DeployOptions#getStacks} * @param stacks List of stacks to deploy. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder stacks(java.util.List stacks) { this.stacks = stacks; return this; } /** * Sets the value of {@link DeployOptions#getStaging} * @param staging Copy assets to the output directory. * Needed for local debugging the source files with SAM CLI * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder staging(java.lang.Boolean staging) { this.staging = staging; return this; } /** * Sets the value of {@link DeployOptions#getStrict} * @param strict Do not construct stacks with warnings. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder strict(java.lang.Boolean strict) { this.strict = strict; return this; } /** * Sets the value of {@link DeployOptions#getTrace} * @param trace Print trace for stack warnings. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder trace(java.lang.Boolean trace) { this.trace = trace; return this; } /** * Sets the value of {@link DeployOptions#getVerbose} * @param verbose show debug logs. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder verbose(java.lang.Boolean verbose) { this.verbose = verbose; return this; } /** * Sets the value of {@link DeployOptions#getVersionReporting} * @param versionReporting Include "AWS::CDK::Metadata" resource in synthesized templates. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder versionReporting(java.lang.Boolean versionReporting) { this.versionReporting = versionReporting; return this; } /** * Builds the configured instance. * @return a new instance of {@link DeployOptions} * @throws NullPointerException if any required attribute was not provided */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @Override public DeployOptions build() { return new Jsii$Proxy(this); } } /** * An implementation for {@link DeployOptions} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @software.amazon.jsii.Internal final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements DeployOptions { private final java.lang.Boolean assetParallelism; private final java.lang.Boolean assetPrebuild; private final java.lang.String changeSetName; private final java.lang.Boolean ci; private final java.lang.Number concurrency; private final java.lang.Boolean exclusively; private final java.lang.Boolean execute; private final java.lang.Boolean force; private final software.amazon.awscdk.cli.lib.alpha.HotswapMode hotswap; private final java.util.List notificationArns; private final java.lang.String outputsFile; private final java.util.Map parameters; private final software.amazon.awscdk.cli.lib.alpha.StackActivityProgress progress; private final software.amazon.awscdk.cli.lib.alpha.RequireApproval requireApproval; private final java.util.List reuseAssets; private final java.lang.Boolean rollback; private final java.lang.String toolkitStackName; private final java.lang.Boolean usePreviousParameters; private final java.lang.Boolean assetMetadata; private final java.lang.String caBundlePath; private final java.lang.Boolean color; private final java.util.Map context; private final java.lang.Boolean debug; private final java.lang.Boolean ec2Creds; private final java.lang.Boolean ignoreErrors; private final java.lang.Boolean json; private final java.lang.Boolean lookups; private final java.lang.Boolean notices; private final java.lang.Boolean pathMetadata; private final java.lang.String profile; private final java.lang.String proxy; private final java.lang.String roleArn; private final java.util.List stacks; private final java.lang.Boolean staging; private final java.lang.Boolean strict; private final java.lang.Boolean trace; private final java.lang.Boolean verbose; private final java.lang.Boolean versionReporting; /** * 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.assetParallelism = software.amazon.jsii.Kernel.get(this, "assetParallelism", software.amazon.jsii.NativeType.forClass(java.lang.Boolean.class)); this.assetPrebuild = software.amazon.jsii.Kernel.get(this, "assetPrebuild", software.amazon.jsii.NativeType.forClass(java.lang.Boolean.class)); this.changeSetName = software.amazon.jsii.Kernel.get(this, "changeSetName", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); this.ci = software.amazon.jsii.Kernel.get(this, "ci", software.amazon.jsii.NativeType.forClass(java.lang.Boolean.class)); this.concurrency = software.amazon.jsii.Kernel.get(this, "concurrency", software.amazon.jsii.NativeType.forClass(java.lang.Number.class)); this.exclusively = software.amazon.jsii.Kernel.get(this, "exclusively", software.amazon.jsii.NativeType.forClass(java.lang.Boolean.class)); this.execute = software.amazon.jsii.Kernel.get(this, "execute", software.amazon.jsii.NativeType.forClass(java.lang.Boolean.class)); this.force = software.amazon.jsii.Kernel.get(this, "force", software.amazon.jsii.NativeType.forClass(java.lang.Boolean.class)); this.hotswap = software.amazon.jsii.Kernel.get(this, "hotswap", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.cli.lib.alpha.HotswapMode.class)); this.notificationArns = software.amazon.jsii.Kernel.get(this, "notificationArns", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class))); this.outputsFile = software.amazon.jsii.Kernel.get(this, "outputsFile", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); this.parameters = software.amazon.jsii.Kernel.get(this, "parameters", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class))); this.progress = software.amazon.jsii.Kernel.get(this, "progress", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.cli.lib.alpha.StackActivityProgress.class)); this.requireApproval = software.amazon.jsii.Kernel.get(this, "requireApproval", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.cli.lib.alpha.RequireApproval.class)); this.reuseAssets = software.amazon.jsii.Kernel.get(this, "reuseAssets", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class))); this.rollback = software.amazon.jsii.Kernel.get(this, "rollback", software.amazon.jsii.NativeType.forClass(java.lang.Boolean.class)); this.toolkitStackName = software.amazon.jsii.Kernel.get(this, "toolkitStackName", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); this.usePreviousParameters = software.amazon.jsii.Kernel.get(this, "usePreviousParameters", software.amazon.jsii.NativeType.forClass(java.lang.Boolean.class)); this.assetMetadata = software.amazon.jsii.Kernel.get(this, "assetMetadata", software.amazon.jsii.NativeType.forClass(java.lang.Boolean.class)); this.caBundlePath = software.amazon.jsii.Kernel.get(this, "caBundlePath", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); this.color = software.amazon.jsii.Kernel.get(this, "color", software.amazon.jsii.NativeType.forClass(java.lang.Boolean.class)); this.context = software.amazon.jsii.Kernel.get(this, "context", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class))); this.debug = software.amazon.jsii.Kernel.get(this, "debug", software.amazon.jsii.NativeType.forClass(java.lang.Boolean.class)); this.ec2Creds = software.amazon.jsii.Kernel.get(this, "ec2Creds", software.amazon.jsii.NativeType.forClass(java.lang.Boolean.class)); this.ignoreErrors = software.amazon.jsii.Kernel.get(this, "ignoreErrors", software.amazon.jsii.NativeType.forClass(java.lang.Boolean.class)); this.json = software.amazon.jsii.Kernel.get(this, "json", software.amazon.jsii.NativeType.forClass(java.lang.Boolean.class)); this.lookups = software.amazon.jsii.Kernel.get(this, "lookups", software.amazon.jsii.NativeType.forClass(java.lang.Boolean.class)); this.notices = software.amazon.jsii.Kernel.get(this, "notices", software.amazon.jsii.NativeType.forClass(java.lang.Boolean.class)); this.pathMetadata = software.amazon.jsii.Kernel.get(this, "pathMetadata", software.amazon.jsii.NativeType.forClass(java.lang.Boolean.class)); this.profile = software.amazon.jsii.Kernel.get(this, "profile", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); this.proxy = software.amazon.jsii.Kernel.get(this, "proxy", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); this.roleArn = software.amazon.jsii.Kernel.get(this, "roleArn", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); this.stacks = software.amazon.jsii.Kernel.get(this, "stacks", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class))); this.staging = software.amazon.jsii.Kernel.get(this, "staging", software.amazon.jsii.NativeType.forClass(java.lang.Boolean.class)); this.strict = software.amazon.jsii.Kernel.get(this, "strict", software.amazon.jsii.NativeType.forClass(java.lang.Boolean.class)); this.trace = software.amazon.jsii.Kernel.get(this, "trace", software.amazon.jsii.NativeType.forClass(java.lang.Boolean.class)); this.verbose = software.amazon.jsii.Kernel.get(this, "verbose", software.amazon.jsii.NativeType.forClass(java.lang.Boolean.class)); this.versionReporting = software.amazon.jsii.Kernel.get(this, "versionReporting", 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.assetParallelism = builder.assetParallelism; this.assetPrebuild = builder.assetPrebuild; this.changeSetName = builder.changeSetName; this.ci = builder.ci; this.concurrency = builder.concurrency; this.exclusively = builder.exclusively; this.execute = builder.execute; this.force = builder.force; this.hotswap = builder.hotswap; this.notificationArns = builder.notificationArns; this.outputsFile = builder.outputsFile; this.parameters = builder.parameters; this.progress = builder.progress; this.requireApproval = builder.requireApproval; this.reuseAssets = builder.reuseAssets; this.rollback = builder.rollback; this.toolkitStackName = builder.toolkitStackName; this.usePreviousParameters = builder.usePreviousParameters; this.assetMetadata = builder.assetMetadata; this.caBundlePath = builder.caBundlePath; this.color = builder.color; this.context = builder.context; this.debug = builder.debug; this.ec2Creds = builder.ec2Creds; this.ignoreErrors = builder.ignoreErrors; this.json = builder.json; this.lookups = builder.lookups; this.notices = builder.notices; this.pathMetadata = builder.pathMetadata; this.profile = builder.profile; this.proxy = builder.proxy; this.roleArn = builder.roleArn; this.stacks = builder.stacks; this.staging = builder.staging; this.strict = builder.strict; this.trace = builder.trace; this.verbose = builder.verbose; this.versionReporting = builder.versionReporting; } @Override public final java.lang.Boolean getAssetParallelism() { return this.assetParallelism; } @Override public final java.lang.Boolean getAssetPrebuild() { return this.assetPrebuild; } @Override public final java.lang.String getChangeSetName() { return this.changeSetName; } @Override public final java.lang.Boolean getCi() { return this.ci; } @Override public final java.lang.Number getConcurrency() { return this.concurrency; } @Override public final java.lang.Boolean getExclusively() { return this.exclusively; } @Override public final java.lang.Boolean getExecute() { return this.execute; } @Override public final java.lang.Boolean getForce() { return this.force; } @Override public final software.amazon.awscdk.cli.lib.alpha.HotswapMode getHotswap() { return this.hotswap; } @Override public final java.util.List getNotificationArns() { return this.notificationArns; } @Override public final java.lang.String getOutputsFile() { return this.outputsFile; } @Override public final java.util.Map getParameters() { return this.parameters; } @Override public final software.amazon.awscdk.cli.lib.alpha.StackActivityProgress getProgress() { return this.progress; } @Override public final software.amazon.awscdk.cli.lib.alpha.RequireApproval getRequireApproval() { return this.requireApproval; } @Override public final java.util.List getReuseAssets() { return this.reuseAssets; } @Override public final java.lang.Boolean getRollback() { return this.rollback; } @Override public final java.lang.String getToolkitStackName() { return this.toolkitStackName; } @Override public final java.lang.Boolean getUsePreviousParameters() { return this.usePreviousParameters; } @Override public final java.lang.Boolean getAssetMetadata() { return this.assetMetadata; } @Override public final java.lang.String getCaBundlePath() { return this.caBundlePath; } @Override public final java.lang.Boolean getColor() { return this.color; } @Override public final java.util.Map getContext() { return this.context; } @Override public final java.lang.Boolean getDebug() { return this.debug; } @Override public final java.lang.Boolean getEc2Creds() { return this.ec2Creds; } @Override public final java.lang.Boolean getIgnoreErrors() { return this.ignoreErrors; } @Override public final java.lang.Boolean getJson() { return this.json; } @Override public final java.lang.Boolean getLookups() { return this.lookups; } @Override public final java.lang.Boolean getNotices() { return this.notices; } @Override public final java.lang.Boolean getPathMetadata() { return this.pathMetadata; } @Override public final java.lang.String getProfile() { return this.profile; } @Override public final java.lang.String getProxy() { return this.proxy; } @Override public final java.lang.String getRoleArn() { return this.roleArn; } @Override public final java.util.List getStacks() { return this.stacks; } @Override public final java.lang.Boolean getStaging() { return this.staging; } @Override public final java.lang.Boolean getStrict() { return this.strict; } @Override public final java.lang.Boolean getTrace() { return this.trace; } @Override public final java.lang.Boolean getVerbose() { return this.verbose; } @Override public final java.lang.Boolean getVersionReporting() { return this.versionReporting; } @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.getAssetParallelism() != null) { data.set("assetParallelism", om.valueToTree(this.getAssetParallelism())); } if (this.getAssetPrebuild() != null) { data.set("assetPrebuild", om.valueToTree(this.getAssetPrebuild())); } if (this.getChangeSetName() != null) { data.set("changeSetName", om.valueToTree(this.getChangeSetName())); } if (this.getCi() != null) { data.set("ci", om.valueToTree(this.getCi())); } if (this.getConcurrency() != null) { data.set("concurrency", om.valueToTree(this.getConcurrency())); } if (this.getExclusively() != null) { data.set("exclusively", om.valueToTree(this.getExclusively())); } if (this.getExecute() != null) { data.set("execute", om.valueToTree(this.getExecute())); } if (this.getForce() != null) { data.set("force", om.valueToTree(this.getForce())); } if (this.getHotswap() != null) { data.set("hotswap", om.valueToTree(this.getHotswap())); } if (this.getNotificationArns() != null) { data.set("notificationArns", om.valueToTree(this.getNotificationArns())); } if (this.getOutputsFile() != null) { data.set("outputsFile", om.valueToTree(this.getOutputsFile())); } if (this.getParameters() != null) { data.set("parameters", om.valueToTree(this.getParameters())); } if (this.getProgress() != null) { data.set("progress", om.valueToTree(this.getProgress())); } if (this.getRequireApproval() != null) { data.set("requireApproval", om.valueToTree(this.getRequireApproval())); } if (this.getReuseAssets() != null) { data.set("reuseAssets", om.valueToTree(this.getReuseAssets())); } if (this.getRollback() != null) { data.set("rollback", om.valueToTree(this.getRollback())); } if (this.getToolkitStackName() != null) { data.set("toolkitStackName", om.valueToTree(this.getToolkitStackName())); } if (this.getUsePreviousParameters() != null) { data.set("usePreviousParameters", om.valueToTree(this.getUsePreviousParameters())); } if (this.getAssetMetadata() != null) { data.set("assetMetadata", om.valueToTree(this.getAssetMetadata())); } if (this.getCaBundlePath() != null) { data.set("caBundlePath", om.valueToTree(this.getCaBundlePath())); } if (this.getColor() != null) { data.set("color", om.valueToTree(this.getColor())); } if (this.getContext() != null) { data.set("context", om.valueToTree(this.getContext())); } if (this.getDebug() != null) { data.set("debug", om.valueToTree(this.getDebug())); } if (this.getEc2Creds() != null) { data.set("ec2Creds", om.valueToTree(this.getEc2Creds())); } if (this.getIgnoreErrors() != null) { data.set("ignoreErrors", om.valueToTree(this.getIgnoreErrors())); } if (this.getJson() != null) { data.set("json", om.valueToTree(this.getJson())); } if (this.getLookups() != null) { data.set("lookups", om.valueToTree(this.getLookups())); } if (this.getNotices() != null) { data.set("notices", om.valueToTree(this.getNotices())); } if (this.getPathMetadata() != null) { data.set("pathMetadata", om.valueToTree(this.getPathMetadata())); } if (this.getProfile() != null) { data.set("profile", om.valueToTree(this.getProfile())); } if (this.getProxy() != null) { data.set("proxy", om.valueToTree(this.getProxy())); } if (this.getRoleArn() != null) { data.set("roleArn", om.valueToTree(this.getRoleArn())); } if (this.getStacks() != null) { data.set("stacks", om.valueToTree(this.getStacks())); } if (this.getStaging() != null) { data.set("staging", om.valueToTree(this.getStaging())); } if (this.getStrict() != null) { data.set("strict", om.valueToTree(this.getStrict())); } if (this.getTrace() != null) { data.set("trace", om.valueToTree(this.getTrace())); } if (this.getVerbose() != null) { data.set("verbose", om.valueToTree(this.getVerbose())); } if (this.getVersionReporting() != null) { data.set("versionReporting", om.valueToTree(this.getVersionReporting())); } final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); struct.set("fqn", om.valueToTree("@aws-cdk/cli-lib-alpha.DeployOptions")); 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; DeployOptions.Jsii$Proxy that = (DeployOptions.Jsii$Proxy) o; if (this.assetParallelism != null ? !this.assetParallelism.equals(that.assetParallelism) : that.assetParallelism != null) return false; if (this.assetPrebuild != null ? !this.assetPrebuild.equals(that.assetPrebuild) : that.assetPrebuild != null) return false; if (this.changeSetName != null ? !this.changeSetName.equals(that.changeSetName) : that.changeSetName != null) return false; if (this.ci != null ? !this.ci.equals(that.ci) : that.ci != null) return false; if (this.concurrency != null ? !this.concurrency.equals(that.concurrency) : that.concurrency != null) return false; if (this.exclusively != null ? !this.exclusively.equals(that.exclusively) : that.exclusively != null) return false; if (this.execute != null ? !this.execute.equals(that.execute) : that.execute != null) return false; if (this.force != null ? !this.force.equals(that.force) : that.force != null) return false; if (this.hotswap != null ? !this.hotswap.equals(that.hotswap) : that.hotswap != null) return false; if (this.notificationArns != null ? !this.notificationArns.equals(that.notificationArns) : that.notificationArns != null) return false; if (this.outputsFile != null ? !this.outputsFile.equals(that.outputsFile) : that.outputsFile != null) return false; if (this.parameters != null ? !this.parameters.equals(that.parameters) : that.parameters != null) return false; if (this.progress != null ? !this.progress.equals(that.progress) : that.progress != null) return false; if (this.requireApproval != null ? !this.requireApproval.equals(that.requireApproval) : that.requireApproval != null) return false; if (this.reuseAssets != null ? !this.reuseAssets.equals(that.reuseAssets) : that.reuseAssets != null) return false; if (this.rollback != null ? !this.rollback.equals(that.rollback) : that.rollback != null) return false; if (this.toolkitStackName != null ? !this.toolkitStackName.equals(that.toolkitStackName) : that.toolkitStackName != null) return false; if (this.usePreviousParameters != null ? !this.usePreviousParameters.equals(that.usePreviousParameters) : that.usePreviousParameters != null) return false; if (this.assetMetadata != null ? !this.assetMetadata.equals(that.assetMetadata) : that.assetMetadata != null) return false; if (this.caBundlePath != null ? !this.caBundlePath.equals(that.caBundlePath) : that.caBundlePath != null) return false; if (this.color != null ? !this.color.equals(that.color) : that.color != null) return false; if (this.context != null ? !this.context.equals(that.context) : that.context != null) return false; if (this.debug != null ? !this.debug.equals(that.debug) : that.debug != null) return false; if (this.ec2Creds != null ? !this.ec2Creds.equals(that.ec2Creds) : that.ec2Creds != null) return false; if (this.ignoreErrors != null ? !this.ignoreErrors.equals(that.ignoreErrors) : that.ignoreErrors != null) return false; if (this.json != null ? !this.json.equals(that.json) : that.json != null) return false; if (this.lookups != null ? !this.lookups.equals(that.lookups) : that.lookups != null) return false; if (this.notices != null ? !this.notices.equals(that.notices) : that.notices != null) return false; if (this.pathMetadata != null ? !this.pathMetadata.equals(that.pathMetadata) : that.pathMetadata != null) return false; if (this.profile != null ? !this.profile.equals(that.profile) : that.profile != null) return false; if (this.proxy != null ? !this.proxy.equals(that.proxy) : that.proxy != null) return false; if (this.roleArn != null ? !this.roleArn.equals(that.roleArn) : that.roleArn != null) return false; if (this.stacks != null ? !this.stacks.equals(that.stacks) : that.stacks != null) return false; if (this.staging != null ? !this.staging.equals(that.staging) : that.staging != null) return false; if (this.strict != null ? !this.strict.equals(that.strict) : that.strict != null) return false; if (this.trace != null ? !this.trace.equals(that.trace) : that.trace != null) return false; if (this.verbose != null ? !this.verbose.equals(that.verbose) : that.verbose != null) return false; return this.versionReporting != null ? this.versionReporting.equals(that.versionReporting) : that.versionReporting == null; } @Override public final int hashCode() { int result = this.assetParallelism != null ? this.assetParallelism.hashCode() : 0; result = 31 * result + (this.assetPrebuild != null ? this.assetPrebuild.hashCode() : 0); result = 31 * result + (this.changeSetName != null ? this.changeSetName.hashCode() : 0); result = 31 * result + (this.ci != null ? this.ci.hashCode() : 0); result = 31 * result + (this.concurrency != null ? this.concurrency.hashCode() : 0); result = 31 * result + (this.exclusively != null ? this.exclusively.hashCode() : 0); result = 31 * result + (this.execute != null ? this.execute.hashCode() : 0); result = 31 * result + (this.force != null ? this.force.hashCode() : 0); result = 31 * result + (this.hotswap != null ? this.hotswap.hashCode() : 0); result = 31 * result + (this.notificationArns != null ? this.notificationArns.hashCode() : 0); result = 31 * result + (this.outputsFile != null ? this.outputsFile.hashCode() : 0); result = 31 * result + (this.parameters != null ? this.parameters.hashCode() : 0); result = 31 * result + (this.progress != null ? this.progress.hashCode() : 0); result = 31 * result + (this.requireApproval != null ? this.requireApproval.hashCode() : 0); result = 31 * result + (this.reuseAssets != null ? this.reuseAssets.hashCode() : 0); result = 31 * result + (this.rollback != null ? this.rollback.hashCode() : 0); result = 31 * result + (this.toolkitStackName != null ? this.toolkitStackName.hashCode() : 0); result = 31 * result + (this.usePreviousParameters != null ? this.usePreviousParameters.hashCode() : 0); result = 31 * result + (this.assetMetadata != null ? this.assetMetadata.hashCode() : 0); result = 31 * result + (this.caBundlePath != null ? this.caBundlePath.hashCode() : 0); result = 31 * result + (this.color != null ? this.color.hashCode() : 0); result = 31 * result + (this.context != null ? this.context.hashCode() : 0); result = 31 * result + (this.debug != null ? this.debug.hashCode() : 0); result = 31 * result + (this.ec2Creds != null ? this.ec2Creds.hashCode() : 0); result = 31 * result + (this.ignoreErrors != null ? this.ignoreErrors.hashCode() : 0); result = 31 * result + (this.json != null ? this.json.hashCode() : 0); result = 31 * result + (this.lookups != null ? this.lookups.hashCode() : 0); result = 31 * result + (this.notices != null ? this.notices.hashCode() : 0); result = 31 * result + (this.pathMetadata != null ? this.pathMetadata.hashCode() : 0); result = 31 * result + (this.profile != null ? this.profile.hashCode() : 0); result = 31 * result + (this.proxy != null ? this.proxy.hashCode() : 0); result = 31 * result + (this.roleArn != null ? this.roleArn.hashCode() : 0); result = 31 * result + (this.stacks != null ? this.stacks.hashCode() : 0); result = 31 * result + (this.staging != null ? this.staging.hashCode() : 0); result = 31 * result + (this.strict != null ? this.strict.hashCode() : 0); result = 31 * result + (this.trace != null ? this.trace.hashCode() : 0); result = 31 * result + (this.verbose != null ? this.verbose.hashCode() : 0); result = 31 * result + (this.versionReporting != null ? this.versionReporting.hashCode() : 0); return result; } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy