// *** 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.core.annotations.CustomType;
import java.lang.Integer;
import java.util.List;
import java.util.Objects;

@CustomType
public final class WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCode {
    /**
     * @return Status codes in the response that indicate a failed login attempt.
     * 
     */
    private List<Integer> failureCodes;
    /**
     * @return Status codes in the response that indicate a successful login attempt.
     * 
     */
    private List<Integer> successCodes;

    private WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCode() {}
    /**
     * @return Status codes in the response that indicate a failed login attempt.
     * 
     */
    public List<Integer> failureCodes() {
        return this.failureCodes;
    }
    /**
     * @return Status codes in the response that indicate a successful login attempt.
     * 
     */
    public List<Integer> successCodes() {
        return this.successCodes;
    }

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

    public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCode defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private List<Integer> failureCodes;
        private List<Integer> successCodes;
        public Builder() {}
        public Builder(WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCode defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.failureCodes = defaults.failureCodes;
    	      this.successCodes = defaults.successCodes;
        }

        @CustomType.Setter
        public Builder failureCodes(List<Integer> failureCodes) {
            this.failureCodes = Objects.requireNonNull(failureCodes);
            return this;
        }
        public Builder failureCodes(Integer... failureCodes) {
            return failureCodes(List.of(failureCodes));
        }
        @CustomType.Setter
        public Builder successCodes(List<Integer> successCodes) {
            this.successCodes = Objects.requireNonNull(successCodes);
            return this;
        }
        public Builder successCodes(Integer... successCodes) {
            return successCodes(List.of(successCodes));
        }
        public WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCode build() {
            final var o = new WebAclRuleStatementManagedRuleGroupStatementManagedRuleGroupConfigAwsManagedRulesAtpRuleSetResponseInspectionStatusCode();
            o.failureCodes = failureCodes;
            o.successCodes = successCodes;
            return o;
        }
    }
}
