package com.amplifyframework.auth.result.step;

import com.amplifyframework.auth.AuthCodeDeliveryDetails;
import com.amplifyframework.auth.MFAType;
import com.amplifyframework.auth.TOTPSetupDetails;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
import java.util.Set;
import s3.d;

/* loaded from: classes4.dex */
public final class AuthNextSignInStep {
    private final Map<String, String> additionalInfo;
    private final Set<MFAType> allowedMFATypes;
    private final AuthCodeDeliveryDetails codeDeliveryDetails;
    private final AuthSignInStep signInStep;
    private final TOTPSetupDetails totpSetupDetails;

    public AuthNextSignInStep(AuthSignInStep authSignInStep, Map<String, String> map, AuthCodeDeliveryDetails authCodeDeliveryDetails, TOTPSetupDetails tOTPSetupDetails, Set<MFAType> set) {
        Objects.requireNonNull(authSignInStep);
        this.signInStep = authSignInStep;
        HashMap hashMap = new HashMap();
        this.additionalInfo = hashMap;
        Objects.requireNonNull(map);
        hashMap.putAll(map);
        this.codeDeliveryDetails = authCodeDeliveryDetails;
        this.totpSetupDetails = tOTPSetupDetails;
        this.allowedMFATypes = set;
    }

    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj == null || AuthNextSignInStep.class != obj.getClass()) {
            return false;
        }
        AuthNextSignInStep authNextSignInStep = (AuthNextSignInStep) obj;
        return d.a(getSignInStep(), authNextSignInStep.getSignInStep()) && d.a(getAdditionalInfo(), authNextSignInStep.getAdditionalInfo()) && d.a(getCodeDeliveryDetails(), authNextSignInStep.getCodeDeliveryDetails()) && d.a(getTotpSetupDetails(), authNextSignInStep.getTotpSetupDetails()) && d.a(getAllowedMFATypes(), authNextSignInStep.getAllowedMFATypes());
    }

    public Map<String, String> getAdditionalInfo() {
        return this.additionalInfo;
    }

    public Set<MFAType> getAllowedMFATypes() {
        return this.allowedMFATypes;
    }

    public AuthCodeDeliveryDetails getCodeDeliveryDetails() {
        return this.codeDeliveryDetails;
    }

    public AuthSignInStep getSignInStep() {
        return this.signInStep;
    }

    public TOTPSetupDetails getTotpSetupDetails() {
        return this.totpSetupDetails;
    }

    public int hashCode() {
        return d.b(getSignInStep(), getAdditionalInfo(), getCodeDeliveryDetails(), getTotpSetupDetails(), getAllowedMFATypes());
    }

    public String toString() {
        return "AuthNextSignInStep{signInStep=" + getSignInStep() + ", additionalInfo=" + getAdditionalInfo() + ", codeDeliveryDetails=" + getCodeDeliveryDetails() + ", totpSetupDetails=" + getTotpSetupDetails() + ", allowedMFATypes=" + getAllowedMFATypes() + '}';
    }
}
