com.commercetools.graphql.api.client.MultiBuyLineItemsTargetFragmentProjection Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of commercetools-graphql-api Show documentation
Show all versions of commercetools-graphql-api Show documentation
The e-commerce SDK from commercetools Composable Commerce for Java
package com.commercetools.graphql.api.client;
import com.netflix.graphql.dgs.client.codegen.BaseSubProjectionNode;
import java.lang.Override;
import java.lang.String;
public class MultiBuyLineItemsTargetFragmentProjection, ROOT extends BaseSubProjectionNode, ?>> extends BaseSubProjectionNode {
{
getFields().put("__typename", null);
}
public MultiBuyLineItemsTargetFragmentProjection(PARENT parent, ROOT root) {
super(parent, root, java.util.Optional.of("MultiBuyLineItemsTarget"));
}
public MultiBuyLineItemsTargetFragmentProjection __typename() {
getFields().put("__typename", null);
return this;
}
public SelectionModeProjection, ROOT> selectionMode(
) {
SelectionModeProjection, ROOT> projection = new SelectionModeProjection<>(this, getRoot());
getFields().put("selectionMode", projection);
return projection;
}
public MultiBuyLineItemsTargetFragmentProjection predicate() {
getFields().put("predicate", null);
return this;
}
public MultiBuyLineItemsTargetFragmentProjection triggerQuantity() {
getFields().put("triggerQuantity", null);
return this;
}
public MultiBuyLineItemsTargetFragmentProjection discountedQuantity() {
getFields().put("discountedQuantity", null);
return this;
}
public MultiBuyLineItemsTargetFragmentProjection maxOccurrence() {
getFields().put("maxOccurrence", null);
return this;
}
public MultiBuyLineItemsTargetFragmentProjection type() {
getFields().put("type", null);
return this;
}
@Override
public String toString() {
StringBuilder builder = new StringBuilder();
builder.append("... on MultiBuyLineItemsTarget {");
getFields().forEach((k, v) -> {
builder.append(" ").append(k);
if(v != null) {
builder.append(" ").append(v.toString());
}
});
builder.append("}");
return builder.toString();
}
}