io.sphere.sdk.customers.queries.LocationsSetQueryModel Maven / Gradle / Ivy
package io.sphere.sdk.customers.queries;
import io.sphere.sdk.queries.*;
import java.util.Optional;
import java.util.function.Function;
public class LocationsSetQueryModel extends QueryModelImpl {
public LocationsSetQueryModel(final Optional extends QueryModel> parent, final Optional pathSegment) {
super(parent, pathSegment);
}
public LocationsSetQueryModel(final Optional extends QueryModel> parent, final String pathSegment) {
this(parent, Optional.of(pathSegment));
}
public CountryQueryModel country() {
return new CountryQueryModel(Optional.of(this), Optional.of("country"));
}
public StringQueryModel state() {
return new StringQuerySortingModel<>(Optional.of(this), "state");
}
public Predicate where(final Predicate embeddedPredicate) {
return new EmbeddedPredicate<>(this, embeddedPredicate);
}
public Predicate where(final Function> embeddedPredicate) {
return where(embeddedPredicate.apply(PartialLocationsSetQueryModel.get()));
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy