io.sphere.sdk.products.queries.ProductQueryModel Maven / Gradle / Ivy
package io.sphere.sdk.products.queries;
import io.sphere.sdk.products.Product;
import io.sphere.sdk.producttypes.ProductType;
import io.sphere.sdk.queries.ResourceQueryModelImpl;
import io.sphere.sdk.queries.QueryModel;
import io.sphere.sdk.queries.ReferenceQueryModel;
import javax.annotation.Nullable;
public class ProductQueryModel extends ResourceQueryModelImpl {
public static ProductQueryModel of() {
return new ProductQueryModel(null, null);
}
private ProductQueryModel(@Nullable final QueryModel parent, @Nullable final String pathSegment) {
super(parent, pathSegment);
}
public ProductCatalogDataQueryModel masterData() {
return new ProductCatalogDataQueryModel<>(this, "masterData");
}
public ReferenceQueryModel productType() {
return referenceModel("productType");
}
}