io.sphere.sdk.producttypes.queries.ProductTypeQueryModel Maven / Gradle / Ivy
package io.sphere.sdk.producttypes.queries;
import io.sphere.sdk.producttypes.ProductType;
import io.sphere.sdk.queries.ResourceQueryModelImpl;
import io.sphere.sdk.queries.QueryModel;
import io.sphere.sdk.queries.StringQuerySortingModel;
public final class ProductTypeQueryModel extends ResourceQueryModelImpl {
public static ProductTypeQueryModel of() {
return new ProductTypeQueryModel(null, null);
}
private ProductTypeQueryModel(final QueryModel parent, final String pathSegment) {
super(parent, pathSegment);
}
public StringQuerySortingModel name() {
return stringModel("name");
}
public AttributeDefinitionQueryModel attributes() {
return new AttributeDefinitionQueryModel<>(this, "attributes");
}
}