package com.ss.android.ugc.aweme.compliance.api.model;

import X.2HN;
import X.M12;
import com.bytedance.covode.number.Covode;
import com.google.gson.a.c;
import java.io.Serializable;
import java.util.List;
import java.util.Objects;

public final class InterfaceControlRule implements Serializable {
    @c(LIZ = "name")
    public final String name;
    @c(LIZ = "then")
    public final List<RuleConfig> ruleThens;
    @c(LIZ = "when")
    public final RuleWhen ruleWhen;

    static {
        Covode.recordClassIndex(60455);
    }

    public InterfaceControlRule() {
        this((String) null, (RuleWhen) null, (List) null, 7, (2HN) null);
    }

    public static /* synthetic */ InterfaceControlRule copy$default(InterfaceControlRule interfaceControlRule, String str, RuleWhen ruleWhen2, List<RuleConfig> list, int i, Object obj) {
        if ((i & 1) != 0) {
            str = interfaceControlRule.name;
        }
        if ((i & 2) != 0) {
            ruleWhen2 = interfaceControlRule.ruleWhen;
        }
        if ((i & 4) != 0) {
            list = interfaceControlRule.ruleThens;
        }
        return interfaceControlRule.copy(str, ruleWhen2, list);
    }

    private Object[] getObjects() {
        return new Object[]{this.name, this.ruleWhen, this.ruleThens};
    }

    public final InterfaceControlRule copy(String str, RuleWhen ruleWhen2, List<RuleConfig> list) {
        return new InterfaceControlRule(str, ruleWhen2, list);
    }

    public final boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof InterfaceControlRule)) {
            return false;
        }
        return M12.LIZ(((InterfaceControlRule) obj).getObjects(), getObjects());
    }

    public final int hashCode() {
        return Objects.hash(getObjects());
    }

    public final String toString() {
        return M12.LIZ("InterfaceControlRule:%s,%s,%s", getObjects());
    }

    public final String getName() {
        return this.name;
    }

    public final List<RuleConfig> getRuleThens() {
        return this.ruleThens;
    }

    public final RuleWhen getRuleWhen() {
        return this.ruleWhen;
    }

    public InterfaceControlRule(String str, RuleWhen ruleWhen2, List<RuleConfig> list) {
        this.name = str;
        this.ruleWhen = ruleWhen2;
        this.ruleThens = list;
    }

    /* JADX INFO: this call moved to the top of the method (can break code semantics) */
    public /* synthetic */ InterfaceControlRule(String str, RuleWhen ruleWhen2, List list, int i, 2HN r7) {
        this((i & 1) != 0 ? null : str, (i & 2) != 0 ? null : ruleWhen2, (i & 4) != 0 ? null : list);
    }
}
