package com.ss.android.ugc.aweme.ecommerce.combinepayment.ordersubmit.repository.dto;

import X.M12;
import com.bytedance.covode.number.Covode;
import com.google.gson.a.c;
import java.util.Objects;

public final class Button {
    @c(LIZ = "link")
    public final String link;
    @c(LIZ = "name")
    public final String name;
    @c(LIZ = "text")
    public final String text;
    @c(LIZ = "type")
    public final int type;

    static {
        Covode.recordClassIndex(68971);
    }

    public static int INVOKESTATIC_com_ss_android_ugc_aweme_ecommerce_combinepayment_ordersubmit_repository_dto_Button_com_ss_android_ugc_aweme_lancet_HashCodeLancet_hashCode(int i) {
        return i;
    }

    public static /* synthetic */ Button copy$default(Button button, int i, String str, String str2, String str3, int i2, Object obj) {
        if ((i2 & 1) != 0) {
            i = button.type;
        }
        if ((i2 & 2) != 0) {
            str = button.text;
        }
        if ((i2 & 4) != 0) {
            str2 = button.link;
        }
        if ((i2 & 8) != 0) {
            str3 = button.name;
        }
        return button.copy(i, str, str2, str3);
    }

    private Object[] getObjects() {
        return new Object[]{Integer.valueOf(this.type), this.text, this.link, this.name};
    }

    public final Button copy(int i, String str, String str2, String str3) {
        M12.LIZ(str, str2, str3);
        return new Button(i, str, str2, str3);
    }

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

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

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

    public final String getLink() {
        return this.link;
    }

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

    public final String getText() {
        return this.text;
    }

    public final int getType() {
        return this.type;
    }

    public Button(int i, String str, String str2, String str3) {
        M12.LIZ(str, str2, str3);
        this.type = i;
        this.text = str;
        this.link = str2;
        this.name = str3;
    }
}
