package com.bytedance.sdk.openadsdk.common;

import com.bytedance.sdk.openadsdk.common.fm;

/* JADX INFO: loaded from: classes2.dex */
public class onz {
    private irt ajl;
    private final com.bytedance.sdk.openadsdk.component.reward.fm.ro fm;
    private boolean jnr;

    /* JADX INFO: renamed from: lb, reason: collision with root package name */
    private final Runnable f6856lb;
    private final String ro;
    private fm.InterfaceC0050fm wsy;
    private final fm.ro yz;

    public static class fm {
        private final com.bytedance.sdk.openadsdk.component.reward.fm.ro fm;

        /* JADX INFO: renamed from: lb, reason: collision with root package name */
        private final Runnable f6857lb;
        private final String ro;
        private final fm.ro yz;
        private boolean jnr = false;
        private irt ajl = null;
        private fm.InterfaceC0050fm wsy = null;

        public fm(com.bytedance.sdk.openadsdk.component.reward.fm.ro roVar, String str, Runnable runnable, fm.ro roVar2) {
            this.fm = roVar;
            this.ro = str;
            this.f6857lb = runnable;
            this.yz = roVar2;
        }

        public fm fm(fm.InterfaceC0050fm interfaceC0050fm) {
            this.wsy = interfaceC0050fm;
            return this;
        }

        public fm fm(irt irtVar) {
            this.ajl = irtVar;
            return this;
        }

        public fm fm(boolean z10) {
            this.jnr = z10;
            return this;
        }

        public onz fm() {
            if (this.fm == null) {
                throw new IllegalArgumentException("RewardFullContext cannot be null");
            }
            if (this.f6857lb == null) {
                throw new IllegalArgumentException("Runnable finishAction cannot be null");
            }
            if (this.yz != null) {
                return new onz(this);
            }
            throw new IllegalArgumentException("SkipResultHandler cannot be null");
        }
    }

    public irt ajl() {
        return this.ajl;
    }

    public com.bytedance.sdk.openadsdk.component.reward.fm.ro fm() {
        return this.fm;
    }

    public boolean jnr() {
        return this.jnr;
    }

    public Runnable lb() {
        return this.f6856lb;
    }

    public String ro() {
        return this.ro;
    }

    public fm.InterfaceC0050fm wsy() {
        return this.wsy;
    }

    public fm.ro yz() {
        return this.yz;
    }

    private onz(fm fmVar) {
        this.fm = fmVar.fm;
        this.ro = fmVar.ro;
        this.f6856lb = fmVar.f6857lb;
        this.yz = fmVar.yz;
        this.jnr = fmVar.jnr;
        this.ajl = fmVar.ajl;
        this.wsy = fmVar.wsy;
    }
}
