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

com.commercetools.graphql.api.client.OrderLineItemDistributionChannelSetFragmentProjection Maven / Gradle / Ivy

There is a newer version: 17.15.1
Show newest version
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();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy