com.commercetools.graphql.api.client.ItemStateProjection 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
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;
}
}