// *** 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.outputs;

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

@CustomType
public final class DeploymentGroupBlueGreenDeploymentConfigDeploymentReadyOption {
    /**
     * @return When to reroute traffic from an original environment to a replacement environment in a blue/green deployment.
     * 
     */
    private @Nullable String actionOnTimeout;
    /**
     * @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`.
     * 
     */
    private @Nullable Integer waitTimeInMinutes;

    private DeploymentGroupBlueGreenDeploymentConfigDeploymentReadyOption() {}
    /**
     * @return When to reroute traffic from an original environment to a replacement environment in a blue/green deployment.
     * 
     */
    public Optional<String> actionOnTimeout() {
        return Optional.ofNullable(this.actionOnTimeout);
    }
    /**
     * @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<Integer> waitTimeInMinutes() {
        return Optional.ofNullable(this.waitTimeInMinutes);
    }

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

    public static Builder builder(DeploymentGroupBlueGreenDeploymentConfigDeploymentReadyOption defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String actionOnTimeout;
        private @Nullable Integer waitTimeInMinutes;
        public Builder() {}
        public Builder(DeploymentGroupBlueGreenDeploymentConfigDeploymentReadyOption defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.actionOnTimeout = defaults.actionOnTimeout;
    	      this.waitTimeInMinutes = defaults.waitTimeInMinutes;
        }

        @CustomType.Setter
        public Builder actionOnTimeout(@Nullable String actionOnTimeout) {
            this.actionOnTimeout = actionOnTimeout;
            return this;
        }
        @CustomType.Setter
        public Builder waitTimeInMinutes(@Nullable Integer waitTimeInMinutes) {
            this.waitTimeInMinutes = waitTimeInMinutes;
            return this;
        }
        public DeploymentGroupBlueGreenDeploymentConfigDeploymentReadyOption build() {
            final var o = new DeploymentGroupBlueGreenDeploymentConfigDeploymentReadyOption();
            o.actionOnTimeout = actionOnTimeout;
            o.waitTimeInMinutes = waitTimeInMinutes;
            return o;
        }
    }
}
