io.sphere.sdk.zones.queries.ZoneQueryModel Maven / Gradle / Ivy
package io.sphere.sdk.zones.queries;
import io.sphere.sdk.customers.queries.LocationsSetQueryModel;
import io.sphere.sdk.queries.DefaultModelQueryModelImpl;
import io.sphere.sdk.queries.QueryModel;
import io.sphere.sdk.queries.StringQuerySortingModel;
import io.sphere.sdk.zones.Zone;
import java.util.Optional;
public class ZoneQueryModel extends DefaultModelQueryModelImpl {
static ZoneQueryModel get() {
return new ZoneQueryModel(Optional.>empty(), Optional.empty());
}
private ZoneQueryModel(final Optional extends QueryModel> parent, final Optional pathSegment) {
super(parent, pathSegment);
}
public StringQuerySortingModel name() {
return new StringQuerySortingModel<>(Optional.of(this), "name");
}
public LocationsSetQueryModel locations() {
return new LocationsSetQueryModel<>(Optional.of(this), "locations");
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy