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

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

The newest version!
package com.commercetools.graphql.api.client;

import com.netflix.graphql.dgs.client.codegen.BaseSubProjectionNode;

public class ItemStateProjection, ROOT extends BaseSubProjectionNode> extends BaseSubProjectionNode {
  public ItemStateProjection(PARENT parent, ROOT root) {
    super(parent, root, java.util.Optional.of("ItemState"));
  }

  public ItemStateProjection __typename() {
    getFields().put("__typename", null);
    return this;
  }

  public ReferenceProjection, ROOT> stateRef() {
     ReferenceProjection, ROOT> projection = new ReferenceProjection<>(this, getRoot());
     getFields().put("stateRef", projection);
     return projection;
  }

  public StateProjection, ROOT> state() {
     StateProjection, ROOT> projection = new StateProjection<>(this, getRoot());
     getFields().put("state", projection);
     return projection;
  }

  public ItemStateProjection quantity() {
    getFields().put("quantity", null);
    return this;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy