package com.amplifyframework.storage;

import dn.l;
import kotlin.Metadata;
import kotlin.jvm.internal.k;
import kotlin.jvm.internal.t;

@Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0003\b&\u0018\u0000 \u00032\u00020\u0001:\u0001\u0003B\u0005¢\u0006\u0002\u0010\u0002¨\u0006\u0004"}, d2 = {"Lcom/amplifyframework/storage/StoragePath;", "", "()V", "Companion", "com.amplifyframework.core_release"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes4.dex */
public abstract class StoragePath {

    /* renamed from: Companion, reason: from kotlin metadata */
    public static final Companion INSTANCE = new Companion(null);

    @Metadata(d1 = {"\u0000 \n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0010\u000e\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0005\b\u0086\u0003\u0018\u00002\u00020\u0001B\t\b\u0002¢\u0006\u0004\b\n\u0010\u000bJ\u0010\u0010\u0005\u001a\u00020\u00042\u0006\u0010\u0003\u001a\u00020\u0002H\u0007J \u0010\t\u001a\u00020\u00042\u0016\u0010\b\u001a\u0012\u0012\u0004\u0012\u00020\u0002\u0012\u0004\u0012\u00020\u00020\u0006j\u0002`\u0007H\u0007¨\u0006\f"}, d2 = {"Lcom/amplifyframework/storage/StoragePath$Companion;", "", "", "path", "Lcom/amplifyframework/storage/StoragePath;", "fromString", "Lkotlin/Function1;", "Lcom/amplifyframework/storage/IdentityIdPathResolver;", "identityIdPathResolver", "fromIdentityId", "<init>", "()V", "com.amplifyframework.core_release"}, k = 1, mv = {1, 9, 0})
    /* loaded from: classes4.dex */
    public static final class Companion {
        private Companion() {
        }

        public /* synthetic */ Companion(k kVar) {
            this();
        }

        public final StoragePath fromIdentityId(l identityIdPathResolver) {
            t.g(identityIdPathResolver, "identityIdPathResolver");
            return new IdentityIdProvidedStoragePath(identityIdPathResolver);
        }

        public final StoragePath fromString(String path) {
            t.g(path, "path");
            return new StringStoragePath(path);
        }
    }

    public static final StoragePath fromIdentityId(l lVar) {
        return INSTANCE.fromIdentityId(lVar);
    }

    public static final StoragePath fromString(String str) {
        return INSTANCE.fromString(str);
    }
}
