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-M26
Show newest version
package io.sphere.sdk.zones.queries;

import io.sphere.sdk.queries.ResourceQueryModelImpl;
import io.sphere.sdk.queries.QueryModel;
import io.sphere.sdk.queries.StringQuerySortingModel;
import io.sphere.sdk.zones.Zone;

public class ZoneQueryModel extends ResourceQueryModelImpl {
    public static ZoneQueryModel of() {
        return new ZoneQueryModel(null, null);
    }

    private ZoneQueryModel(final QueryModel parent, final String pathSegment) {
        super(parent, pathSegment);
    }

    public StringQuerySortingModel name() {
        return stringModel("name");
    }

    public LocationsCollectionQueryModel locations() {
        return new LocationsCollectionQueryModelImpl<>(this, "locations");
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy