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

io.sphere.sdk.customergroups.queries.CustomerGroupQueryModel Maven / Gradle / Ivy

There is a newer version: 1.0.0-M12
Show newest version
package io.sphere.sdk.customergroups.queries;

import io.sphere.sdk.customergroups.CustomerGroup;
import io.sphere.sdk.queries.DefaultModelQueryModelImpl;
import io.sphere.sdk.queries.QueryModel;
import io.sphere.sdk.queries.StringQuerySortingModel;

import java.util.Optional;

public class CustomerGroupQueryModel extends DefaultModelQueryModelImpl {
    private CustomerGroupQueryModel(final Optional> parent, final Optional pathSegment) {
        super(parent, pathSegment);
    }

    static CustomerGroupQueryModel get() {
        return new CustomerGroupQueryModel(Optional.>empty(), Optional.empty());
    }

    public StringQuerySortingModel name() {
        return new StringQuerySortingModel<>(Optional.of(this), "name");
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy