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

import com.pulumi.aws.wafv2.inputs.RuleGroupRuleCaptchaConfigImmunityTimePropertyArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final RuleGroupRuleCaptchaConfigArgs Empty = new RuleGroupRuleCaptchaConfigArgs();

    /**
     * Defines custom immunity time. See Immunity Time Property below for details.
     * 
     */
    @Import(name="immunityTimeProperty")
    private @Nullable Output<RuleGroupRuleCaptchaConfigImmunityTimePropertyArgs> immunityTimeProperty;

    /**
     * @return Defines custom immunity time. See Immunity Time Property below for details.
     * 
     */
    public Optional<Output<RuleGroupRuleCaptchaConfigImmunityTimePropertyArgs>> immunityTimeProperty() {
        return Optional.ofNullable(this.immunityTimeProperty);
    }

    private RuleGroupRuleCaptchaConfigArgs() {}

    private RuleGroupRuleCaptchaConfigArgs(RuleGroupRuleCaptchaConfigArgs $) {
        this.immunityTimeProperty = $.immunityTimeProperty;
    }

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

    public static final class Builder {
        private RuleGroupRuleCaptchaConfigArgs $;

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

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

        /**
         * @param immunityTimeProperty Defines custom immunity time. See Immunity Time Property below for details.
         * 
         * @return builder
         * 
         */
        public Builder immunityTimeProperty(@Nullable Output<RuleGroupRuleCaptchaConfigImmunityTimePropertyArgs> immunityTimeProperty) {
            $.immunityTimeProperty = immunityTimeProperty;
            return this;
        }

        /**
         * @param immunityTimeProperty Defines custom immunity time. See Immunity Time Property below for details.
         * 
         * @return builder
         * 
         */
        public Builder immunityTimeProperty(RuleGroupRuleCaptchaConfigImmunityTimePropertyArgs immunityTimeProperty) {
            return immunityTimeProperty(Output.of(immunityTimeProperty));
        }

        public RuleGroupRuleCaptchaConfigArgs build() {
            return $;
        }
    }

}
