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

import com.pulumi.aws.wafv2.outputs.RuleGroupRuleCaptchaConfigImmunityTimeProperty;
import com.pulumi.core.annotations.CustomType;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class RuleGroupRuleCaptchaConfig {
    /**
     * @return Defines custom immunity time. See Immunity Time Property below for details.
     * 
     */
    private @Nullable RuleGroupRuleCaptchaConfigImmunityTimeProperty immunityTimeProperty;

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

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

    public static Builder builder(RuleGroupRuleCaptchaConfig defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable RuleGroupRuleCaptchaConfigImmunityTimeProperty immunityTimeProperty;
        public Builder() {}
        public Builder(RuleGroupRuleCaptchaConfig defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.immunityTimeProperty = defaults.immunityTimeProperty;
        }

        @CustomType.Setter
        public Builder immunityTimeProperty(@Nullable RuleGroupRuleCaptchaConfigImmunityTimeProperty immunityTimeProperty) {
            this.immunityTimeProperty = immunityTimeProperty;
            return this;
        }
        public RuleGroupRuleCaptchaConfig build() {
            final var o = new RuleGroupRuleCaptchaConfig();
            o.immunityTimeProperty = immunityTimeProperty;
            return o;
        }
    }
}
