// *** 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.gcp.container.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.gcp.container.inputs.ClusterNodePoolUpgradeSettingsBlueGreenSettingsStandardRolloutPolicyArgs;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final ClusterNodePoolUpgradeSettingsBlueGreenSettingsArgs Empty = new ClusterNodePoolUpgradeSettingsBlueGreenSettingsArgs();

    /**
     * Time needed after draining entire blue pool. After this period, blue pool will be cleaned up. A duration in seconds with up to nine fractional digits, ending with &#39;s&#39;. Example: &#34;3.5s&#34;.
     * 
     */
    @Import(name="nodePoolSoakDuration")
    private @Nullable Output<String> nodePoolSoakDuration;

    /**
     * @return Time needed after draining entire blue pool. After this period, blue pool will be cleaned up. A duration in seconds with up to nine fractional digits, ending with &#39;s&#39;. Example: &#34;3.5s&#34;.
     * 
     */
    public Optional<Output<String>> nodePoolSoakDuration() {
        return Optional.ofNullable(this.nodePoolSoakDuration);
    }

    /**
     * Standard policy for the blue-green upgrade. To be specified when strategy is set to BLUE_GREEN. Structure is documented below.
     * 
     */
    @Import(name="standardRolloutPolicy", required=true)
    private Output<ClusterNodePoolUpgradeSettingsBlueGreenSettingsStandardRolloutPolicyArgs> standardRolloutPolicy;

    /**
     * @return Standard policy for the blue-green upgrade. To be specified when strategy is set to BLUE_GREEN. Structure is documented below.
     * 
     */
    public Output<ClusterNodePoolUpgradeSettingsBlueGreenSettingsStandardRolloutPolicyArgs> standardRolloutPolicy() {
        return this.standardRolloutPolicy;
    }

    private ClusterNodePoolUpgradeSettingsBlueGreenSettingsArgs() {}

    private ClusterNodePoolUpgradeSettingsBlueGreenSettingsArgs(ClusterNodePoolUpgradeSettingsBlueGreenSettingsArgs $) {
        this.nodePoolSoakDuration = $.nodePoolSoakDuration;
        this.standardRolloutPolicy = $.standardRolloutPolicy;
    }

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

    public static final class Builder {
        private ClusterNodePoolUpgradeSettingsBlueGreenSettingsArgs $;

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

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

        /**
         * @param nodePoolSoakDuration Time needed after draining entire blue pool. After this period, blue pool will be cleaned up. A duration in seconds with up to nine fractional digits, ending with &#39;s&#39;. Example: &#34;3.5s&#34;.
         * 
         * @return builder
         * 
         */
        public Builder nodePoolSoakDuration(@Nullable Output<String> nodePoolSoakDuration) {
            $.nodePoolSoakDuration = nodePoolSoakDuration;
            return this;
        }

        /**
         * @param nodePoolSoakDuration Time needed after draining entire blue pool. After this period, blue pool will be cleaned up. A duration in seconds with up to nine fractional digits, ending with &#39;s&#39;. Example: &#34;3.5s&#34;.
         * 
         * @return builder
         * 
         */
        public Builder nodePoolSoakDuration(String nodePoolSoakDuration) {
            return nodePoolSoakDuration(Output.of(nodePoolSoakDuration));
        }

        /**
         * @param standardRolloutPolicy Standard policy for the blue-green upgrade. To be specified when strategy is set to BLUE_GREEN. Structure is documented below.
         * 
         * @return builder
         * 
         */
        public Builder standardRolloutPolicy(Output<ClusterNodePoolUpgradeSettingsBlueGreenSettingsStandardRolloutPolicyArgs> standardRolloutPolicy) {
            $.standardRolloutPolicy = standardRolloutPolicy;
            return this;
        }

        /**
         * @param standardRolloutPolicy Standard policy for the blue-green upgrade. To be specified when strategy is set to BLUE_GREEN. Structure is documented below.
         * 
         * @return builder
         * 
         */
        public Builder standardRolloutPolicy(ClusterNodePoolUpgradeSettingsBlueGreenSettingsStandardRolloutPolicyArgs standardRolloutPolicy) {
            return standardRolloutPolicy(Output.of(standardRolloutPolicy));
        }

        public ClusterNodePoolUpgradeSettingsBlueGreenSettingsArgs build() {
            $.standardRolloutPolicy = Objects.requireNonNull($.standardRolloutPolicy, "expected parameter 'standardRolloutPolicy' to be non-null");
            return $;
        }
    }

}
