com.dft.api.shopify.model.ShopifyGetCustomersRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of shopify-admin-rest Show documentation
Show all versions of shopify-admin-rest Show documentation
Shopify Admin REST API using JDK 11 and Reactive Programming
The newest version!
package com.dft.api.shopify.model;
import java.util.List;
import org.joda.time.DateTime;
public class ShopifyGetCustomersRequest {
private int limit;
private List ids;
private String sinceId;
private String pageInfo;
private DateTime createdAtMin;
private DateTime createdAtMax;
public static interface OptionalsStep {
OptionalsStep withPageInfo(final String pageInfo);
OptionalsStep withLimit(int limit);
OptionalsStep withIds(List ids);
OptionalsStep withSinceId(String sinceId);
OptionalsStep withCreatedAtMin(DateTime createdAtMin);
OptionalsStep withCreatedAtMax(DateTime createdAtMax);
ShopifyGetCustomersRequest build();
}
public static OptionalsStep newBuilder() {
return new Steps();
}
protected ShopifyGetCustomersRequest(final Steps steps) {
this.limit = steps.limit;
this.ids = steps.ids;
this.sinceId = steps.sinceId;
this.createdAtMin = steps.createdAtMin;
this.createdAtMax = steps.createdAtMax;
this.pageInfo = steps.pageInfo;
}
protected static class Steps implements OptionalsStep {
private int limit;
private String pageInfo;
private List ids;
private String sinceId;
private DateTime createdAtMin;
private DateTime createdAtMax;
@Override
public ShopifyGetCustomersRequest build() {
return new ShopifyGetCustomersRequest(this);
}
@Override
public OptionalsStep withLimit(final int limit) {
this.limit = limit;
return this;
}
@Override
public OptionalsStep withIds(final List ids) {
this.ids = ids;
return this;
}
@Override
public OptionalsStep withSinceId(final String sinceId) {
this.sinceId = sinceId;
return this;
}
@Override
public OptionalsStep withCreatedAtMin(final DateTime createdAtMin) {
this.createdAtMin = createdAtMin;
return this;
}
@Override
public OptionalsStep withCreatedAtMax(final DateTime createdAtMax) {
this.createdAtMax = createdAtMax;
return this;
}
@Override
public OptionalsStep withPageInfo(final String pageInfo) {
this.pageInfo = pageInfo;
return this;
}
}
public int getLimit() {
return limit;
}
public void setLimit(final int limit) {
this.limit = limit;
}
public List getIds() {
return ids;
}
public void setIds(final List ids) {
this.ids = ids;
}
public String getSinceId() {
return sinceId;
}
public void setSinceId(final String sinceId) {
this.sinceId = sinceId;
}
public DateTime getCreatedAtMin() {
return createdAtMin;
}
public void setCreatedAtMin(final DateTime createdAtMin) {
this.createdAtMin = createdAtMin;
}
public DateTime getCreatedAtMax() {
return createdAtMax;
}
public void setCreatedAtMax(final DateTime createdAtMax) {
this.createdAtMax = createdAtMax;
}
public String getPageInfo() {
return pageInfo;
}
public void setPageInfo(final String pageInfo) {
this.pageInfo = pageInfo;
}
}