// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.aws.codedeploy.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class DeploymentGroupBlueGreenDeploymentConfigDeploymentReadyOptionArgs extends com.pulumi.resources.ResourceArgs {

    public static final DeploymentGroupBlueGreenDeploymentConfigDeploymentReadyOptionArgs Empty = new DeploymentGroupBlueGreenDeploymentConfigDeploymentReadyOptionArgs();

    /**
     * When to reroute traffic from an original environment to a replacement environment in a blue/green deployment.
     * 
     */
    @Import(name="actionOnTimeout")
    private @Nullable Output<String> actionOnTimeout;

    /**
     * @return When to reroute traffic from an original environment to a replacement environment in a blue/green deployment.
     * 
     */
    public Optional<Output<String>> actionOnTimeout() {
        return Optional.ofNullable(this.actionOnTimeout);
    }

    /**
     * The number of minutes to wait before the status of a blue/green deployment changed to Stopped if rerouting is not started manually. Applies only to the `STOP_DEPLOYMENT` option for `action_on_timeout`.
     * 
     */
    @Import(name="waitTimeInMinutes")
    private @Nullable Output<Integer> waitTimeInMinutes;

    /**
     * @return The number of minutes to wait before the status of a blue/green deployment changed to Stopped if rerouting is not started manually. Applies only to the `STOP_DEPLOYMENT` option for `action_on_timeout`.
     * 
     */
    public Optional<Output<Integer>> waitTimeInMinutes() {
        return Optional.ofNullable(this.waitTimeInMinutes);
    }

    private DeploymentGroupBlueGreenDeploymentConfigDeploymentReadyOptionArgs() {}

    private DeploymentGroupBlueGreenDeploymentConfigDeploymentReadyOptionArgs(DeploymentGroupBlueGreenDeploymentConfigDeploymentReadyOptionArgs $) {
        this.actionOnTimeout = $.actionOnTimeout;
        this.waitTimeInMinutes = $.waitTimeInMinutes;
    }

    public static Builder builder() {
        return new Builder();
    }
    public static Builder builder(DeploymentGroupBlueGreenDeploymentConfigDeploymentReadyOptionArgs defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private DeploymentGroupBlueGreenDeploymentConfigDeploymentReadyOptionArgs $;

        public Builder() {
            $ = new DeploymentGroupBlueGreenDeploymentConfigDeploymentReadyOptionArgs();
        }

        public Builder(DeploymentGroupBlueGreenDeploymentConfigDeploymentReadyOptionArgs defaults) {
            $ = new DeploymentGroupBlueGreenDeploymentConfigDeploymentReadyOptionArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param actionOnTimeout When to reroute traffic from an original environment to a replacement environment in a blue/green deployment.
         * 
         * @return builder
         * 
         */
        public Builder actionOnTimeout(@Nullable Output<String> actionOnTimeout) {
            $.actionOnTimeout = actionOnTimeout;
            return this;
        }

        /**
         * @param actionOnTimeout When to reroute traffic from an original environment to a replacement environment in a blue/green deployment.
         * 
         * @return builder
         * 
         */
        public Builder actionOnTimeout(String actionOnTimeout) {
            return actionOnTimeout(Output.of(actionOnTimeout));
        }

        /**
         * @param waitTimeInMinutes The number of minutes to wait before the status of a blue/green deployment changed to Stopped if rerouting is not started manually. Applies only to the `STOP_DEPLOYMENT` option for `action_on_timeout`.
         * 
         * @return builder
         * 
         */
        public Builder waitTimeInMinutes(@Nullable Output<Integer> waitTimeInMinutes) {
            $.waitTimeInMinutes = waitTimeInMinutes;
            return this;
        }

        /**
         * @param waitTimeInMinutes The number of minutes to wait before the status of a blue/green deployment changed to Stopped if rerouting is not started manually. Applies only to the `STOP_DEPLOYMENT` option for `action_on_timeout`.
         * 
         * @return builder
         * 
         */
        public Builder waitTimeInMinutes(Integer waitTimeInMinutes) {
            return waitTimeInMinutes(Output.of(waitTimeInMinutes));
        }

        public DeploymentGroupBlueGreenDeploymentConfigDeploymentReadyOptionArgs build() {
            return $;
        }
    }

}
