com.commercetools.graphql.api.client.OrderLineItemDistributionChannelSetFragmentProjection 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 OrderLineItemDistributionChannelSetFragmentProjection, ROOT extends BaseSubProjectionNode, ?>> extends BaseSubProjectionNode {
{
getFields().put("__typename", null);
}
public OrderLineItemDistributionChannelSetFragmentProjection(PARENT parent, ROOT root) {
super(parent, root, java.util.Optional.of("OrderLineItemDistributionChannelSet"));
}
public OrderLineItemDistributionChannelSetFragmentProjection __typename() {
getFields().put("__typename", null);
return this;
}
public ChannelProjection, ROOT> distributionChannel(
) {
ChannelProjection, ROOT> projection = new ChannelProjection<>(this, getRoot());
getFields().put("distributionChannel", projection);
return projection;
}
public ReferenceProjection, ROOT> distributionChannelRef(
) {
ReferenceProjection, ROOT> projection = new ReferenceProjection<>(this, getRoot());
getFields().put("distributionChannelRef", projection);
return projection;
}
public OrderLineItemDistributionChannelSetFragmentProjection lineItemId() {
getFields().put("lineItemId", null);
return this;
}
public OrderLineItemDistributionChannelSetFragmentProjection lineItemKey() {
getFields().put("lineItemKey", null);
return this;
}
public OrderLineItemDistributionChannelSetFragmentProjection type() {
getFields().put("type", null);
return this;
}
@Override
public String toString() {
StringBuilder builder = new StringBuilder();
builder.append("... on OrderLineItemDistributionChannelSet {");
getFields().forEach((k, v) -> {
builder.append(" ").append(k);
if(v != null) {
builder.append(" ").append(v.toString());
}
});
builder.append("}");
return builder.toString();
}
}