All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.sphere.sdk.zones.queries.ZoneQueryModel Maven / Gradle / Ivy

There is a newer version: 1.0.0-M12
Show newest version
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> 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