package com.ss.android.ugc.aweme.ecommerce.ab;

import X.2HN;
import X.M12;
import com.bytedance.covode.number.Covode;
import com.bytedance.ies.abmock.SettingsManager;
import com.google.gson.a.c;
import java.util.Objects;

public final class EcomNetworkInterceptorSwitch {
    public static final EcomNetworkInterceptorSwitchModel LIZ = new EcomNetworkInterceptorSwitchModel(false, (String) null, (String) null, 7, (2HN) null);
    public static final EcomNetworkInterceptorSwitch LIZIZ = new EcomNetworkInterceptorSwitch();

    public static final class EcomNetworkInterceptorSwitchModel {
        @c(LIZ = "hosts")
        public String hosts;
        @c(LIZ = "image_host")
        public final String imageHost;
        @c(LIZ = "switch")

        /* renamed from: switch  reason: not valid java name */
        public boolean f0switch;

        static {
            Covode.recordClassIndex(67899);
        }

        public EcomNetworkInterceptorSwitchModel() {
            this(false, (String) null, (String) null, 7, (2HN) null);
        }

        public static /* synthetic */ EcomNetworkInterceptorSwitchModel copy$default(EcomNetworkInterceptorSwitchModel ecomNetworkInterceptorSwitchModel, boolean z, String str, String str2, int i, Object obj) {
            if ((i & 1) != 0) {
                z = ecomNetworkInterceptorSwitchModel.f0switch;
            }
            if ((i & 2) != 0) {
                str = ecomNetworkInterceptorSwitchModel.hosts;
            }
            if ((i & 4) != 0) {
                str2 = ecomNetworkInterceptorSwitchModel.imageHost;
            }
            return ecomNetworkInterceptorSwitchModel.copy(z, str, str2);
        }

        private Object[] getObjects() {
            return new Object[]{Boolean.valueOf(this.f0switch), this.hosts, this.imageHost};
        }

        public final EcomNetworkInterceptorSwitchModel copy(boolean z, String str, String str2) {
            M12.LIZ(str, str2);
            return new EcomNetworkInterceptorSwitchModel(z, str, str2);
        }

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

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

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

        public final String getHosts() {
            return this.hosts;
        }

        public final String getImageHost() {
            return this.imageHost;
        }

        public final boolean getSwitch() {
            return this.f0switch;
        }

        public final void setSwitch(boolean z) {
            this.f0switch = z;
        }

        public final void setHosts(String str) {
            M12.LIZ(str);
            this.hosts = str;
        }

        public EcomNetworkInterceptorSwitchModel(boolean z, String str, String str2) {
            M12.LIZ(str, str2);
            this.f0switch = z;
            this.hosts = str;
            this.imageHost = str2;
        }

        /* JADX INFO: this call moved to the top of the method (can break code semantics) */
        public /* synthetic */ EcomNetworkInterceptorSwitchModel(boolean z, String str, String str2, int i, 2HN r7) {
            this((i & 1) != 0 ? false : z, (i & 2) != 0 ? "" : str, (i & 4) != 0 ? "" : str2);
        }
    }

    static {
        Covode.recordClassIndex(67898);
    }

    public static final EcomNetworkInterceptorSwitchModel LIZ() {
        EcomNetworkInterceptorSwitchModel ecomNetworkInterceptorSwitchModel = LIZ;
        EcomNetworkInterceptorSwitchModel ecomNetworkInterceptorSwitchModel2 = (EcomNetworkInterceptorSwitchModel) SettingsManager.LIZ().LIZ("ecom_net_interceptor_switch", EcomNetworkInterceptorSwitchModel.class, ecomNetworkInterceptorSwitchModel);
        if (ecomNetworkInterceptorSwitchModel2 == null) {
            return ecomNetworkInterceptorSwitchModel;
        }
        return ecomNetworkInterceptorSwitchModel2;
    }
}
