io.sphere.sdk.products.queries.ProductVariantQueryModel Maven / Gradle / Ivy
package io.sphere.sdk.products.queries;
import io.sphere.sdk.queries.*;
import javax.annotation.Nullable;
import java.util.function.Function;
public class ProductVariantQueryModel extends QueryModelImpl {
ProductVariantQueryModel(@Nullable final QueryModel parent, @Nullable final String pathSegment) {
super(parent, pathSegment);
}
public StringQueryModel sku() {
return stringModel("sku");
}
public QueryPredicate where(final QueryPredicate embeddedPredicate) {
return embedPredicate(embeddedPredicate);
}
public QueryPredicate where(final Function> embeddedPredicate) {
return where(embeddedPredicate.apply(PartialProductVariantQueryModel.of()));
}
public PriceCollectionQueryModel prices() {
return new PriceCollectionQueryModel<>(this, "prices");
}
}