package com.amplifyframework.storage.result;

import com.amplifyframework.storage.StorageItem;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

/* loaded from: classes4.dex */
public final class StorageListResult {
    private final List<StorageItem> items;
    private final String nextToken;

    private StorageListResult(List<StorageItem> list, String str) {
        this.items = list;
        this.nextToken = str;
    }

    public static StorageListResult fromItems(List<StorageItem> list, String str) {
        ArrayList arrayList = new ArrayList();
        if (list != null) {
            arrayList.addAll(list);
        }
        return new StorageListResult(Collections.unmodifiableList(arrayList), str);
    }

    public List<StorageItem> getItems() {
        return this.items;
    }

    public String getNextToken() {
        return this.nextToken;
    }
}
