io.sphere.sdk.categories.queries.CategoryByIdGet Maven / Gradle / Ivy
package io.sphere.sdk.categories.queries;
import io.sphere.sdk.categories.Category;
import io.sphere.sdk.categories.expansion.CategoryExpansionModel;
import io.sphere.sdk.models.Identifiable;
import io.sphere.sdk.expansion.ExpansionPath;
import io.sphere.sdk.queries.MetaModelGetDsl;
import java.util.List;
import java.util.function.Function;
/**
* Retrieves a category by a known ID.
*
* {@include.example io.sphere.sdk.categories.queries.CategoryByIdGetTest#execution()}
*/
public interface CategoryByIdGet extends MetaModelGetDsl> {
static CategoryByIdGet of(final Identifiable category) {
return of(category.getId());
}
static CategoryByIdGet of(final String id) {
return new CategoryByIdGetImpl(id);
}
@Override
CategoryByIdGet plusExpansionPaths(final Function, ExpansionPath> m);
@Override
CategoryByIdGet withExpansionPaths(final Function, ExpansionPath> m);
@Override
List> expansionPaths();
@Override
CategoryByIdGet plusExpansionPaths(final ExpansionPath expansionPath);
@Override
CategoryByIdGet withExpansionPaths(final ExpansionPath expansionPath);
@Override
CategoryByIdGet withExpansionPaths(final List> expansionPaths);
}