Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.commercetools.history.client.ByProjectKeyGet Maven / Gradle / Ivy
Go to download
The e-commerce SDK from commercetools Composable Commerce for Java
package com.commercetools.history.client;
import java.net.URI;
import java.time.Duration;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.concurrent.CompletableFuture;
import java.util.function.Function;
import java.util.function.Supplier;
import java.util.stream.Collectors;
import com.commercetools.history.models.change_history.ChangeHistoryResourceType;
import com.commercetools.history.models.change_history.PlatformInitiatedChange;
import com.fasterxml.jackson.core.type.TypeReference;
import io.vrap.rmf.base.client.*;
import io.vrap.rmf.base.client.utils.Generated;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
/**
* The view_audit_log:{projectKey}
scope is required, and depending on the resource type queried, their respective scopes must be granted.
*
*
*
*
{@code
* CompletableFuture> result = apiRoot
* .withProjectKeyValue("{projectKey}")
* .get()
* .execute()
* }
*
*/
@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
public class ByProjectKeyGet extends
TypeApiMethod {
@Override
public TypeReference resultType() {
return new TypeReference() {
};
}
private String projectKey;
public ByProjectKeyGet(final ApiHttpClient apiHttpClient, String projectKey) {
super(apiHttpClient);
this.projectKey = projectKey;
}
public ByProjectKeyGet(ByProjectKeyGet t) {
super(t);
this.projectKey = t.projectKey;
}
@Override
protected ApiHttpRequest buildHttpRequest() {
List params = new ArrayList<>(getQueryParamUriStrings());
String httpRequestPath = String.format("%s", this.projectKey);
if (!params.isEmpty()) {
httpRequestPath += "?" + String.join("&", params);
}
return new ApiHttpRequest(ApiHttpMethod.GET, URI.create(httpRequestPath), getHeaders(), null);
}
@Override
public ApiHttpResponse executeBlocking(
final ApiHttpClient client, final Duration timeout) {
return executeBlocking(client, timeout,
com.commercetools.history.models.change_history.RecordPagedQueryResponse.class);
}
@Override
public CompletableFuture> execute(
final ApiHttpClient client) {
return execute(client, com.commercetools.history.models.change_history.RecordPagedQueryResponse.class);
}
public String getProjectKey() {
return this.projectKey;
}
public List getResourceTypes() {
return this.getQueryParam("resourceTypes");
}
public List getDateFrom() {
return this.getQueryParam("date.from");
}
public List getDateTo() {
return this.getQueryParam("date.to");
}
public List getLimit() {
return this.getQueryParam("limit");
}
public List getOffset() {
return this.getQueryParam("offset");
}
public List getUserId() {
return this.getQueryParam("userId");
}
public List getClientId() {
return this.getQueryParam("clientId");
}
public List getCustomerId() {
return this.getQueryParam("customerId");
}
public List getAssociateId() {
return this.getQueryParam("associateId");
}
public List getBusinessUnit() {
return this.getQueryParam("businessUnit");
}
public List getType() {
return this.getQueryParam("type");
}
public List getResourceId() {
return this.getQueryParam("resourceId");
}
public List getResourceKey() {
return this.getQueryParam("resourceKey");
}
public List getSource() {
return this.getQueryParam("source");
}
public List getChanges() {
return this.getQueryParam("changes");
}
public List getStores() {
return this.getQueryParam("stores");
}
public List getExcludePlatformInitiatedChanges() {
return this.getQueryParam("excludePlatformInitiatedChanges");
}
public List getExpand() {
return this.getQueryParam("expand");
}
public void setProjectKey(final String projectKey) {
this.projectKey = projectKey;
}
/**
* set resourceTypes with the specified value
* @param resourceTypes value to be set
* @param value type
* @return ByProjectKeyGet
*/
public ByProjectKeyGet withResourceTypes(final TValue resourceTypes) {
return copy().withQueryParam("resourceTypes", resourceTypes);
}
/**
* add additional resourceTypes query parameter
* @param resourceTypes value to be added
* @param value type
* @return ByProjectKeyGet
*/
public ByProjectKeyGet addResourceTypes(final TValue resourceTypes) {
return copy().addQueryParam("resourceTypes", resourceTypes);
}
/**
* set resourceTypes with the specified value
* @param supplier supplier for the value to be set
* @return ByProjectKeyGet
*/
public ByProjectKeyGet withResourceTypes(final Supplier supplier) {
return copy().withQueryParam("resourceTypes", supplier.get());
}
/**
* add additional resourceTypes query parameter
* @param supplier supplier for the value to be added
* @return ByProjectKeyGet
*/
public ByProjectKeyGet addResourceTypes(final Supplier supplier) {
return copy().addQueryParam("resourceTypes", supplier.get());
}
/**
* set resourceTypes with the specified value
* @param op builder for the value to be set
* @return ByProjectKeyGet
*/
public ByProjectKeyGet withResourceTypes(final Function op) {
return copy().withQueryParam("resourceTypes", op.apply(new StringBuilder()));
}
/**
* add additional resourceTypes query parameter
* @param op builder for the value to be added
* @return ByProjectKeyGet
*/
public ByProjectKeyGet addResourceTypes(final Function op) {
return copy().addQueryParam("resourceTypes", op.apply(new StringBuilder()));
}
/**
* set resourceTypes with the specified values
* @param resourceTypes values to be set
* @param value type
* @return ByProjectKeyGet
*/
public ByProjectKeyGet withResourceTypes(final Collection resourceTypes) {
return copy().withoutQueryParam("resourceTypes")
.addQueryParams(resourceTypes.stream()
.map(s -> new ParamEntry<>("resourceTypes", s.toString()))
.collect(Collectors.toList()));
}
/**
* add additional resourceTypes query parameters
* @param resourceTypes values to be added
* @param value type
* @return ByProjectKeyGet
*/
public ByProjectKeyGet addResourceTypes(final Collection resourceTypes) {
return copy().addQueryParams(resourceTypes.stream()
.map(s -> new ParamEntry<>("resourceTypes", s.toString()))
.collect(Collectors.toList()));
}
/**
* set dateFrom with the specified value
* @param dateFrom value to be set
* @param value type
* @return ByProjectKeyGet
*/
public ByProjectKeyGet withDateFrom(final TValue dateFrom) {
return copy().withQueryParam("date.from", dateFrom);
}
/**
* add additional dateFrom query parameter
* @param dateFrom value to be added
* @param value type
* @return ByProjectKeyGet
*/
public ByProjectKeyGet addDateFrom(final TValue dateFrom) {
return copy().addQueryParam("date.from", dateFrom);
}
/**
* set dateFrom with the specified value
* @param supplier supplier for the value to be set
* @return ByProjectKeyGet
*/
public ByProjectKeyGet withDateFrom(final Supplier supplier) {
return copy().withQueryParam("date.from", supplier.get());
}
/**
* add additional dateFrom query parameter
* @param supplier supplier for the value to be added
* @return ByProjectKeyGet
*/
public ByProjectKeyGet addDateFrom(final Supplier supplier) {
return copy().addQueryParam("date.from", supplier.get());
}
/**
* set dateFrom with the specified value
* @param op builder for the value to be set
* @return ByProjectKeyGet
*/
public ByProjectKeyGet withDateFrom(final Function op) {
return copy().withQueryParam("date.from", op.apply(new StringBuilder()));
}
/**
* add additional dateFrom query parameter
* @param op builder for the value to be added
* @return ByProjectKeyGet
*/
public ByProjectKeyGet addDateFrom(final Function op) {
return copy().addQueryParam("date.from", op.apply(new StringBuilder()));
}
/**
* set dateFrom with the specified values
* @param dateFrom values to be set
* @param value type
* @return ByProjectKeyGet
*/
public ByProjectKeyGet withDateFrom(final Collection dateFrom) {
return copy().withoutQueryParam("date.from")
.addQueryParams(dateFrom.stream()
.map(s -> new ParamEntry<>("date.from", s.toString()))
.collect(Collectors.toList()));
}
/**
* add additional dateFrom query parameters
* @param dateFrom values to be added
* @param value type
* @return ByProjectKeyGet
*/
public ByProjectKeyGet addDateFrom(final Collection dateFrom) {
return copy().addQueryParams(
dateFrom.stream().map(s -> new ParamEntry<>("date.from", s.toString())).collect(Collectors.toList()));
}
/**
* set dateTo with the specified value
* @param dateTo value to be set
* @param value type
* @return ByProjectKeyGet
*/
public ByProjectKeyGet withDateTo(final TValue dateTo) {
return copy().withQueryParam("date.to", dateTo);
}
/**
* add additional dateTo query parameter
* @param dateTo value to be added
* @param value type
* @return ByProjectKeyGet
*/
public ByProjectKeyGet addDateTo(final TValue dateTo) {
return copy().addQueryParam("date.to", dateTo);
}
/**
* set dateTo with the specified value
* @param supplier supplier for the value to be set
* @return ByProjectKeyGet
*/
public ByProjectKeyGet withDateTo(final Supplier supplier) {
return copy().withQueryParam("date.to", supplier.get());
}
/**
* add additional dateTo query parameter
* @param supplier supplier for the value to be added
* @return ByProjectKeyGet
*/
public ByProjectKeyGet addDateTo(final Supplier supplier) {
return copy().addQueryParam("date.to", supplier.get());
}
/**
* set dateTo with the specified value
* @param op builder for the value to be set
* @return ByProjectKeyGet
*/
public ByProjectKeyGet withDateTo(final Function op) {
return copy().withQueryParam("date.to", op.apply(new StringBuilder()));
}
/**
* add additional dateTo query parameter
* @param op builder for the value to be added
* @return ByProjectKeyGet
*/
public ByProjectKeyGet addDateTo(final Function op) {
return copy().addQueryParam("date.to", op.apply(new StringBuilder()));
}
/**
* set dateTo with the specified values
* @param dateTo values to be set
* @param value type
* @return ByProjectKeyGet
*/
public ByProjectKeyGet withDateTo(final Collection dateTo) {
return copy().withoutQueryParam("date.to")
.addQueryParams(
dateTo.stream().map(s -> new ParamEntry<>("date.to", s.toString())).collect(Collectors.toList()));
}
/**
* add additional dateTo query parameters
* @param dateTo values to be added
* @param value type
* @return ByProjectKeyGet
*/
public ByProjectKeyGet addDateTo(final Collection dateTo) {
return copy().addQueryParams(
dateTo.stream().map(s -> new ParamEntry<>("date.to", s.toString())).collect(Collectors.toList()));
}
/**
* set limit with the specified value
* @param limit value to be set
* @param value type
* @return ByProjectKeyGet
*/
public ByProjectKeyGet withLimit(final TValue limit) {
return copy().withQueryParam("limit", limit);
}
/**
* add additional limit query parameter
* @param limit value to be added
* @param value type
* @return ByProjectKeyGet
*/
public ByProjectKeyGet addLimit(final TValue limit) {
return copy().addQueryParam("limit", limit);
}
/**
* set limit with the specified value
* @param supplier supplier for the value to be set
* @return ByProjectKeyGet
*/
public ByProjectKeyGet withLimit(final Supplier supplier) {
return copy().withQueryParam("limit", supplier.get());
}
/**
* add additional limit query parameter
* @param supplier supplier for the value to be added
* @return ByProjectKeyGet
*/
public ByProjectKeyGet addLimit(final Supplier supplier) {
return copy().addQueryParam("limit", supplier.get());
}
/**
* set limit with the specified value
* @param op builder for the value to be set
* @return ByProjectKeyGet
*/
public ByProjectKeyGet withLimit(final Function op) {
return copy().withQueryParam("limit", op.apply(new StringBuilder()));
}
/**
* add additional limit query parameter
* @param op builder for the value to be added
* @return ByProjectKeyGet
*/
public ByProjectKeyGet addLimit(final Function op) {
return copy().addQueryParam("limit", op.apply(new StringBuilder()));
}
/**
* set limit with the specified values
* @param limit values to be set
* @param value type
* @return ByProjectKeyGet
*/
public ByProjectKeyGet withLimit(final Collection limit) {
return copy().withoutQueryParam("limit")
.addQueryParams(
limit.stream().map(s -> new ParamEntry<>("limit", s.toString())).collect(Collectors.toList()));
}
/**
* add additional limit query parameters
* @param limit values to be added
* @param value type
* @return ByProjectKeyGet
*/
public ByProjectKeyGet addLimit(final Collection limit) {
return copy().addQueryParams(
limit.stream().map(s -> new ParamEntry<>("limit", s.toString())).collect(Collectors.toList()));
}
/**
* set offset with the specified value
* @param offset value to be set
* @param value type
* @return ByProjectKeyGet
*/
public ByProjectKeyGet withOffset(final TValue offset) {
return copy().withQueryParam("offset", offset);
}
/**
* add additional offset query parameter
* @param offset value to be added
* @param value type
* @return ByProjectKeyGet
*/
public ByProjectKeyGet addOffset(final TValue offset) {
return copy().addQueryParam("offset", offset);
}
/**
* set offset with the specified value
* @param supplier supplier for the value to be set
* @return ByProjectKeyGet
*/
public ByProjectKeyGet withOffset(final Supplier supplier) {
return copy().withQueryParam("offset", supplier.get());
}
/**
* add additional offset query parameter
* @param supplier supplier for the value to be added
* @return ByProjectKeyGet
*/
public ByProjectKeyGet addOffset(final Supplier supplier) {
return copy().addQueryParam("offset", supplier.get());
}
/**
* set offset with the specified value
* @param op builder for the value to be set
* @return ByProjectKeyGet
*/
public ByProjectKeyGet withOffset(final Function op) {
return copy().withQueryParam("offset", op.apply(new StringBuilder()));
}
/**
* add additional offset query parameter
* @param op builder for the value to be added
* @return ByProjectKeyGet
*/
public ByProjectKeyGet addOffset(final Function op) {
return copy().addQueryParam("offset", op.apply(new StringBuilder()));
}
/**
* set offset with the specified values
* @param offset values to be set
* @param value type
* @return ByProjectKeyGet
*/
public ByProjectKeyGet withOffset(final Collection offset) {
return copy().withoutQueryParam("offset")
.addQueryParams(
offset.stream().map(s -> new ParamEntry<>("offset", s.toString())).collect(Collectors.toList()));
}
/**
* add additional offset query parameters
* @param offset values to be added
* @param value type
* @return ByProjectKeyGet
*/
public ByProjectKeyGet addOffset(final Collection offset) {
return copy().addQueryParams(
offset.stream().map(s -> new ParamEntry<>("offset", s.toString())).collect(Collectors.toList()));
}
/**
* set userId with the specified value
* @param userId value to be set
* @param value type
* @return ByProjectKeyGet
*/
public ByProjectKeyGet withUserId(final TValue userId) {
return copy().withQueryParam("userId", userId);
}
/**
* add additional userId query parameter
* @param userId value to be added
* @param value type
* @return ByProjectKeyGet
*/
public ByProjectKeyGet addUserId(final TValue userId) {
return copy().addQueryParam("userId", userId);
}
/**
* set userId with the specified value
* @param supplier supplier for the value to be set
* @return ByProjectKeyGet
*/
public ByProjectKeyGet withUserId(final Supplier supplier) {
return copy().withQueryParam("userId", supplier.get());
}
/**
* add additional userId query parameter
* @param supplier supplier for the value to be added
* @return ByProjectKeyGet
*/
public ByProjectKeyGet addUserId(final Supplier supplier) {
return copy().addQueryParam("userId", supplier.get());
}
/**
* set userId with the specified value
* @param op builder for the value to be set
* @return ByProjectKeyGet
*/
public ByProjectKeyGet withUserId(final Function op) {
return copy().withQueryParam("userId", op.apply(new StringBuilder()));
}
/**
* add additional userId query parameter
* @param op builder for the value to be added
* @return ByProjectKeyGet
*/
public ByProjectKeyGet addUserId(final Function op) {
return copy().addQueryParam("userId", op.apply(new StringBuilder()));
}
/**
* set userId with the specified values
* @param userId values to be set
* @param value type
* @return ByProjectKeyGet
*/
public ByProjectKeyGet withUserId(final Collection userId) {
return copy().withoutQueryParam("userId")
.addQueryParams(
userId.stream().map(s -> new ParamEntry<>("userId", s.toString())).collect(Collectors.toList()));
}
/**
* add additional userId query parameters
* @param userId values to be added
* @param value type
* @return ByProjectKeyGet
*/
public ByProjectKeyGet addUserId(final Collection userId) {
return copy().addQueryParams(
userId.stream().map(s -> new ParamEntry<>("userId", s.toString())).collect(Collectors.toList()));
}
/**
* set clientId with the specified value
* @param clientId value to be set
* @param value type
* @return ByProjectKeyGet
*/
public ByProjectKeyGet withClientId(final TValue clientId) {
return copy().withQueryParam("clientId", clientId);
}
/**
* add additional clientId query parameter
* @param clientId value to be added
* @param value type
* @return ByProjectKeyGet
*/
public ByProjectKeyGet addClientId(final TValue clientId) {
return copy().addQueryParam("clientId", clientId);
}
/**
* set clientId with the specified value
* @param supplier supplier for the value to be set
* @return ByProjectKeyGet
*/
public ByProjectKeyGet withClientId(final Supplier supplier) {
return copy().withQueryParam("clientId", supplier.get());
}
/**
* add additional clientId query parameter
* @param supplier supplier for the value to be added
* @return ByProjectKeyGet
*/
public ByProjectKeyGet addClientId(final Supplier supplier) {
return copy().addQueryParam("clientId", supplier.get());
}
/**
* set clientId with the specified value
* @param op builder for the value to be set
* @return ByProjectKeyGet
*/
public ByProjectKeyGet withClientId(final Function op) {
return copy().withQueryParam("clientId", op.apply(new StringBuilder()));
}
/**
* add additional clientId query parameter
* @param op builder for the value to be added
* @return ByProjectKeyGet
*/
public ByProjectKeyGet addClientId(final Function op) {
return copy().addQueryParam("clientId", op.apply(new StringBuilder()));
}
/**
* set clientId with the specified values
* @param clientId values to be set
* @param value type
* @return ByProjectKeyGet
*/
public ByProjectKeyGet withClientId(final Collection clientId) {
return copy().withoutQueryParam("clientId")
.addQueryParams(clientId.stream()
.map(s -> new ParamEntry<>("clientId", s.toString()))
.collect(Collectors.toList()));
}
/**
* add additional clientId query parameters
* @param clientId values to be added
* @param value type
* @return ByProjectKeyGet
*/
public ByProjectKeyGet addClientId(final Collection clientId) {
return copy().addQueryParams(
clientId.stream().map(s -> new ParamEntry<>("clientId", s.toString())).collect(Collectors.toList()));
}
/**
* set customerId with the specified value
* @param customerId value to be set
* @param value type
* @return ByProjectKeyGet
*/
public ByProjectKeyGet withCustomerId(final TValue customerId) {
return copy().withQueryParam("customerId", customerId);
}
/**
* add additional customerId query parameter
* @param customerId value to be added
* @param value type
* @return ByProjectKeyGet
*/
public ByProjectKeyGet addCustomerId(final TValue customerId) {
return copy().addQueryParam("customerId", customerId);
}
/**
* set customerId with the specified value
* @param supplier supplier for the value to be set
* @return ByProjectKeyGet
*/
public ByProjectKeyGet withCustomerId(final Supplier supplier) {
return copy().withQueryParam("customerId", supplier.get());
}
/**
* add additional customerId query parameter
* @param supplier supplier for the value to be added
* @return ByProjectKeyGet
*/
public ByProjectKeyGet addCustomerId(final Supplier supplier) {
return copy().addQueryParam("customerId", supplier.get());
}
/**
* set customerId with the specified value
* @param op builder for the value to be set
* @return ByProjectKeyGet
*/
public ByProjectKeyGet withCustomerId(final Function op) {
return copy().withQueryParam("customerId", op.apply(new StringBuilder()));
}
/**
* add additional customerId query parameter
* @param op builder for the value to be added
* @return ByProjectKeyGet
*/
public ByProjectKeyGet addCustomerId(final Function op) {
return copy().addQueryParam("customerId", op.apply(new StringBuilder()));
}
/**
* set customerId with the specified values
* @param customerId values to be set
* @param value type
* @return ByProjectKeyGet
*/
public ByProjectKeyGet withCustomerId(final Collection customerId) {
return copy().withoutQueryParam("customerId")
.addQueryParams(customerId.stream()
.map(s -> new ParamEntry<>("customerId", s.toString()))
.collect(Collectors.toList()));
}
/**
* add additional customerId query parameters
* @param customerId values to be added
* @param value type
* @return ByProjectKeyGet
*/
public ByProjectKeyGet addCustomerId(final Collection customerId) {
return copy().addQueryParams(
customerId.stream().map(s -> new ParamEntry<>("customerId", s.toString())).collect(Collectors.toList()));
}
/**
* set associateId with the specified value
* @param associateId value to be set
* @param value type
* @return ByProjectKeyGet
*/
public ByProjectKeyGet withAssociateId(final TValue associateId) {
return copy().withQueryParam("associateId", associateId);
}
/**
* add additional associateId query parameter
* @param associateId value to be added
* @param value type
* @return ByProjectKeyGet
*/
public ByProjectKeyGet addAssociateId(final TValue associateId) {
return copy().addQueryParam("associateId", associateId);
}
/**
* set associateId with the specified value
* @param supplier supplier for the value to be set
* @return ByProjectKeyGet
*/
public ByProjectKeyGet withAssociateId(final Supplier supplier) {
return copy().withQueryParam("associateId", supplier.get());
}
/**
* add additional associateId query parameter
* @param supplier supplier for the value to be added
* @return ByProjectKeyGet
*/
public ByProjectKeyGet addAssociateId(final Supplier supplier) {
return copy().addQueryParam("associateId", supplier.get());
}
/**
* set associateId with the specified value
* @param op builder for the value to be set
* @return ByProjectKeyGet
*/
public ByProjectKeyGet withAssociateId(final Function op) {
return copy().withQueryParam("associateId", op.apply(new StringBuilder()));
}
/**
* add additional associateId query parameter
* @param op builder for the value to be added
* @return ByProjectKeyGet
*/
public ByProjectKeyGet addAssociateId(final Function op) {
return copy().addQueryParam("associateId", op.apply(new StringBuilder()));
}
/**
* set associateId with the specified values
* @param associateId values to be set
* @param value type
* @return ByProjectKeyGet
*/
public ByProjectKeyGet withAssociateId(final Collection associateId) {
return copy().withoutQueryParam("associateId")
.addQueryParams(associateId.stream()
.map(s -> new ParamEntry<>("associateId", s.toString()))
.collect(Collectors.toList()));
}
/**
* add additional associateId query parameters
* @param associateId values to be added
* @param value type
* @return ByProjectKeyGet
*/
public ByProjectKeyGet addAssociateId(final Collection associateId) {
return copy().addQueryParams(
associateId.stream().map(s -> new ParamEntry<>("associateId", s.toString())).collect(Collectors.toList()));
}
/**
* set businessUnit with the specified value
* @param businessUnit value to be set
* @param value type
* @return ByProjectKeyGet
*/
public ByProjectKeyGet withBusinessUnit(final TValue businessUnit) {
return copy().withQueryParam("businessUnit", businessUnit);
}
/**
* add additional businessUnit query parameter
* @param businessUnit value to be added
* @param value type
* @return ByProjectKeyGet
*/
public ByProjectKeyGet addBusinessUnit(final TValue businessUnit) {
return copy().addQueryParam("businessUnit", businessUnit);
}
/**
* set businessUnit with the specified value
* @param supplier supplier for the value to be set
* @return ByProjectKeyGet
*/
public ByProjectKeyGet withBusinessUnit(final Supplier supplier) {
return copy().withQueryParam("businessUnit", supplier.get());
}
/**
* add additional businessUnit query parameter
* @param supplier supplier for the value to be added
* @return ByProjectKeyGet
*/
public ByProjectKeyGet addBusinessUnit(final Supplier supplier) {
return copy().addQueryParam("businessUnit", supplier.get());
}
/**
* set businessUnit with the specified value
* @param op builder for the value to be set
* @return ByProjectKeyGet
*/
public ByProjectKeyGet withBusinessUnit(final Function op) {
return copy().withQueryParam("businessUnit", op.apply(new StringBuilder()));
}
/**
* add additional businessUnit query parameter
* @param op builder for the value to be added
* @return ByProjectKeyGet
*/
public ByProjectKeyGet addBusinessUnit(final Function op) {
return copy().addQueryParam("businessUnit", op.apply(new StringBuilder()));
}
/**
* set businessUnit with the specified values
* @param businessUnit values to be set
* @param value type
* @return ByProjectKeyGet
*/
public ByProjectKeyGet withBusinessUnit(final Collection businessUnit) {
return copy().withoutQueryParam("businessUnit")
.addQueryParams(businessUnit.stream()
.map(s -> new ParamEntry<>("businessUnit", s.toString()))
.collect(Collectors.toList()));
}
/**
* add additional businessUnit query parameters
* @param businessUnit values to be added
* @param value type
* @return ByProjectKeyGet
*/
public ByProjectKeyGet addBusinessUnit(final Collection businessUnit) {
return copy().addQueryParams(businessUnit.stream()
.map(s -> new ParamEntry<>("businessUnit", s.toString()))
.collect(Collectors.toList()));
}
/**
* set type with the specified value
* @param type value to be set
* @param value type
* @return ByProjectKeyGet
*/
public ByProjectKeyGet withType(final TValue type) {
return copy().withQueryParam("type", type);
}
/**
* add additional type query parameter
* @param type value to be added
* @param value type
* @return ByProjectKeyGet
*/
public ByProjectKeyGet addType(final TValue type) {
return copy().addQueryParam("type", type);
}
/**
* set type with the specified value
* @param supplier supplier for the value to be set
* @return ByProjectKeyGet
*/
public ByProjectKeyGet withType(final Supplier supplier) {
return copy().withQueryParam("type", supplier.get());
}
/**
* add additional type query parameter
* @param supplier supplier for the value to be added
* @return ByProjectKeyGet
*/
public ByProjectKeyGet addType(final Supplier supplier) {
return copy().addQueryParam("type", supplier.get());
}
/**
* set type with the specified value
* @param op builder for the value to be set
* @return ByProjectKeyGet
*/
public ByProjectKeyGet withType(final Function op) {
return copy().withQueryParam("type", op.apply(new StringBuilder()));
}
/**
* add additional type query parameter
* @param op builder for the value to be added
* @return ByProjectKeyGet
*/
public ByProjectKeyGet addType(final Function op) {
return copy().addQueryParam("type", op.apply(new StringBuilder()));
}
/**
* set type with the specified values
* @param type values to be set
* @param value type
* @return ByProjectKeyGet
*/
public ByProjectKeyGet withType(final Collection type) {
return copy().withoutQueryParam("type")
.addQueryParams(
type.stream().map(s -> new ParamEntry<>("type", s.toString())).collect(Collectors.toList()));
}
/**
* add additional type query parameters
* @param type values to be added
* @param value type
* @return ByProjectKeyGet
*/
public ByProjectKeyGet addType(final Collection type) {
return copy().addQueryParams(
type.stream().map(s -> new ParamEntry<>("type", s.toString())).collect(Collectors.toList()));
}
/**
* set resourceId with the specified value
* @param resourceId value to be set
* @param value type
* @return ByProjectKeyGet
*/
public ByProjectKeyGet withResourceId(final TValue resourceId) {
return copy().withQueryParam("resourceId", resourceId);
}
/**
* add additional resourceId query parameter
* @param resourceId value to be added
* @param value type
* @return ByProjectKeyGet
*/
public ByProjectKeyGet addResourceId(final TValue resourceId) {
return copy().addQueryParam("resourceId", resourceId);
}
/**
* set resourceId with the specified value
* @param supplier supplier for the value to be set
* @return ByProjectKeyGet
*/
public ByProjectKeyGet withResourceId(final Supplier supplier) {
return copy().withQueryParam("resourceId", supplier.get());
}
/**
* add additional resourceId query parameter
* @param supplier supplier for the value to be added
* @return ByProjectKeyGet
*/
public ByProjectKeyGet addResourceId(final Supplier supplier) {
return copy().addQueryParam("resourceId", supplier.get());
}
/**
* set resourceId with the specified value
* @param op builder for the value to be set
* @return ByProjectKeyGet
*/
public ByProjectKeyGet withResourceId(final Function op) {
return copy().withQueryParam("resourceId", op.apply(new StringBuilder()));
}
/**
* add additional resourceId query parameter
* @param op builder for the value to be added
* @return ByProjectKeyGet
*/
public ByProjectKeyGet addResourceId(final Function op) {
return copy().addQueryParam("resourceId", op.apply(new StringBuilder()));
}
/**
* set resourceId with the specified values
* @param resourceId values to be set
* @param value type
* @return ByProjectKeyGet
*/
public ByProjectKeyGet withResourceId(final Collection resourceId) {
return copy().withoutQueryParam("resourceId")
.addQueryParams(resourceId.stream()
.map(s -> new ParamEntry<>("resourceId", s.toString()))
.collect(Collectors.toList()));
}
/**
* add additional resourceId query parameters
* @param resourceId values to be added
* @param value type
* @return ByProjectKeyGet
*/
public ByProjectKeyGet addResourceId(final Collection resourceId) {
return copy().addQueryParams(
resourceId.stream().map(s -> new ParamEntry<>("resourceId", s.toString())).collect(Collectors.toList()));
}
/**
* set resourceKey with the specified value
* @param resourceKey value to be set
* @param value type
* @return ByProjectKeyGet
*/
public ByProjectKeyGet withResourceKey(final TValue resourceKey) {
return copy().withQueryParam("resourceKey", resourceKey);
}
/**
* add additional resourceKey query parameter
* @param resourceKey value to be added
* @param value type
* @return ByProjectKeyGet
*/
public ByProjectKeyGet addResourceKey(final TValue resourceKey) {
return copy().addQueryParam("resourceKey", resourceKey);
}
/**
* set resourceKey with the specified value
* @param supplier supplier for the value to be set
* @return ByProjectKeyGet
*/
public ByProjectKeyGet withResourceKey(final Supplier supplier) {
return copy().withQueryParam("resourceKey", supplier.get());
}
/**
* add additional resourceKey query parameter
* @param supplier supplier for the value to be added
* @return ByProjectKeyGet
*/
public ByProjectKeyGet addResourceKey(final Supplier supplier) {
return copy().addQueryParam("resourceKey", supplier.get());
}
/**
* set resourceKey with the specified value
* @param op builder for the value to be set
* @return ByProjectKeyGet
*/
public ByProjectKeyGet withResourceKey(final Function op) {
return copy().withQueryParam("resourceKey", op.apply(new StringBuilder()));
}
/**
* add additional resourceKey query parameter
* @param op builder for the value to be added
* @return ByProjectKeyGet
*/
public ByProjectKeyGet addResourceKey(final Function op) {
return copy().addQueryParam("resourceKey", op.apply(new StringBuilder()));
}
/**
* set resourceKey with the specified values
* @param resourceKey values to be set
* @param value type
* @return ByProjectKeyGet
*/
public ByProjectKeyGet withResourceKey(final Collection resourceKey) {
return copy().withoutQueryParam("resourceKey")
.addQueryParams(resourceKey.stream()
.map(s -> new ParamEntry<>("resourceKey", s.toString()))
.collect(Collectors.toList()));
}
/**
* add additional resourceKey query parameters
* @param resourceKey values to be added
* @param value type
* @return ByProjectKeyGet
*/
public ByProjectKeyGet addResourceKey(final Collection resourceKey) {
return copy().addQueryParams(
resourceKey.stream().map(s -> new ParamEntry<>("resourceKey", s.toString())).collect(Collectors.toList()));
}
/**
* set source with the specified value
* @param source value to be set
* @param value type
* @return ByProjectKeyGet
*/
public ByProjectKeyGet withSource(final TValue source) {
return copy().withQueryParam("source", source);
}
/**
* add additional source query parameter
* @param source value to be added
* @param value type
* @return ByProjectKeyGet
*/
public ByProjectKeyGet addSource(final TValue source) {
return copy().addQueryParam("source", source);
}
/**
* set source with the specified value
* @param supplier supplier for the value to be set
* @return ByProjectKeyGet
*/
public ByProjectKeyGet withSource(final Supplier supplier) {
return copy().withQueryParam("source", supplier.get());
}
/**
* add additional source query parameter
* @param supplier supplier for the value to be added
* @return ByProjectKeyGet
*/
public ByProjectKeyGet addSource(final Supplier supplier) {
return copy().addQueryParam("source", supplier.get());
}
/**
* set source with the specified value
* @param op builder for the value to be set
* @return ByProjectKeyGet
*/
public ByProjectKeyGet withSource(final Function op) {
return copy().withQueryParam("source", op.apply(new StringBuilder()));
}
/**
* add additional source query parameter
* @param op builder for the value to be added
* @return ByProjectKeyGet
*/
public ByProjectKeyGet addSource(final Function op) {
return copy().addQueryParam("source", op.apply(new StringBuilder()));
}
/**
* set source with the specified values
* @param source values to be set
* @param value type
* @return ByProjectKeyGet
*/
public ByProjectKeyGet withSource(final Collection source) {
return copy().withoutQueryParam("source")
.addQueryParams(
source.stream().map(s -> new ParamEntry<>("source", s.toString())).collect(Collectors.toList()));
}
/**
* add additional source query parameters
* @param source values to be added
* @param value type
* @return ByProjectKeyGet
*/
public ByProjectKeyGet addSource(final Collection source) {
return copy().addQueryParams(
source.stream().map(s -> new ParamEntry<>("source", s.toString())).collect(Collectors.toList()));
}
/**
* set changes with the specified value
* @param changes value to be set
* @param value type
* @return ByProjectKeyGet
*/
public ByProjectKeyGet withChanges(final TValue changes) {
return copy().withQueryParam("changes", changes);
}
/**
* add additional changes query parameter
* @param changes value to be added
* @param value type
* @return ByProjectKeyGet
*/
public ByProjectKeyGet addChanges(final TValue changes) {
return copy().addQueryParam("changes", changes);
}
/**
* set changes with the specified value
* @param supplier supplier for the value to be set
* @return ByProjectKeyGet
*/
public ByProjectKeyGet withChanges(final Supplier supplier) {
return copy().withQueryParam("changes", supplier.get());
}
/**
* add additional changes query parameter
* @param supplier supplier for the value to be added
* @return ByProjectKeyGet
*/
public ByProjectKeyGet addChanges(final Supplier supplier) {
return copy().addQueryParam("changes", supplier.get());
}
/**
* set changes with the specified value
* @param op builder for the value to be set
* @return ByProjectKeyGet
*/
public ByProjectKeyGet withChanges(final Function op) {
return copy().withQueryParam("changes", op.apply(new StringBuilder()));
}
/**
* add additional changes query parameter
* @param op builder for the value to be added
* @return ByProjectKeyGet
*/
public ByProjectKeyGet addChanges(final Function op) {
return copy().addQueryParam("changes", op.apply(new StringBuilder()));
}
/**
* set changes with the specified values
* @param changes values to be set
* @param value type
* @return ByProjectKeyGet
*/
public ByProjectKeyGet withChanges(final Collection changes) {
return copy().withoutQueryParam("changes")
.addQueryParams(
changes.stream().map(s -> new ParamEntry<>("changes", s.toString())).collect(Collectors.toList()));
}
/**
* add additional changes query parameters
* @param changes values to be added
* @param value type
* @return ByProjectKeyGet
*/
public ByProjectKeyGet addChanges(final Collection changes) {
return copy().addQueryParams(
changes.stream().map(s -> new ParamEntry<>("changes", s.toString())).collect(Collectors.toList()));
}
/**
* set stores with the specified value
* @param stores value to be set
* @param value type
* @return ByProjectKeyGet
*/
public ByProjectKeyGet withStores(final TValue stores) {
return copy().withQueryParam("stores", stores);
}
/**
* add additional stores query parameter
* @param stores value to be added
* @param value type
* @return ByProjectKeyGet
*/
public ByProjectKeyGet addStores(final TValue stores) {
return copy().addQueryParam("stores", stores);
}
/**
* set stores with the specified value
* @param supplier supplier for the value to be set
* @return ByProjectKeyGet
*/
public ByProjectKeyGet withStores(final Supplier supplier) {
return copy().withQueryParam("stores", supplier.get());
}
/**
* add additional stores query parameter
* @param supplier supplier for the value to be added
* @return ByProjectKeyGet
*/
public ByProjectKeyGet addStores(final Supplier supplier) {
return copy().addQueryParam("stores", supplier.get());
}
/**
* set stores with the specified value
* @param op builder for the value to be set
* @return ByProjectKeyGet
*/
public ByProjectKeyGet withStores(final Function op) {
return copy().withQueryParam("stores", op.apply(new StringBuilder()));
}
/**
* add additional stores query parameter
* @param op builder for the value to be added
* @return ByProjectKeyGet
*/
public ByProjectKeyGet addStores(final Function op) {
return copy().addQueryParam("stores", op.apply(new StringBuilder()));
}
/**
* set stores with the specified values
* @param stores values to be set
* @param value type
* @return ByProjectKeyGet
*/
public ByProjectKeyGet withStores(final Collection stores) {
return copy().withoutQueryParam("stores")
.addQueryParams(
stores.stream().map(s -> new ParamEntry<>("stores", s.toString())).collect(Collectors.toList()));
}
/**
* add additional stores query parameters
* @param stores values to be added
* @param value type
* @return ByProjectKeyGet
*/
public ByProjectKeyGet addStores(final Collection stores) {
return copy().addQueryParams(
stores.stream().map(s -> new ParamEntry<>("stores", s.toString())).collect(Collectors.toList()));
}
/**
* set excludePlatformInitiatedChanges with the specified value
* @param excludePlatformInitiatedChanges value to be set
* @param value type
* @return ByProjectKeyGet
*/
public ByProjectKeyGet withExcludePlatformInitiatedChanges(final TValue excludePlatformInitiatedChanges) {
return copy().withQueryParam("excludePlatformInitiatedChanges", excludePlatformInitiatedChanges);
}
/**
* add additional excludePlatformInitiatedChanges query parameter
* @param excludePlatformInitiatedChanges value to be added
* @param value type
* @return ByProjectKeyGet
*/
public