com.commercetools.graphql.api.client.TextLineItemProjection 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.String;
import java.util.ArrayList;
import java.util.List;
public class TextLineItemProjection, ROOT extends BaseSubProjectionNode, ?>> extends BaseSubProjectionNode {
public TextLineItemProjection(PARENT parent, ROOT root) {
super(parent, root, java.util.Optional.of("TextLineItem"));
}
public TextLineItemProjection __typename() {
getFields().put("__typename", null);
return this;
}
public LocalizedStringProjection, ROOT> nameAllLocales() {
LocalizedStringProjection, ROOT> projection = new LocalizedStringProjection<>(this, getRoot());
getFields().put("nameAllLocales", projection);
return projection;
}
public LocalizedStringProjection, ROOT> descriptionAllLocales(
) {
LocalizedStringProjection, ROOT> projection = new LocalizedStringProjection<>(this, getRoot());
getFields().put("descriptionAllLocales", projection);
return projection;
}
public CustomFieldsTypeProjection, ROOT> custom() {
CustomFieldsTypeProjection, ROOT> projection = new CustomFieldsTypeProjection<>(this, getRoot());
getFields().put("custom", projection);
return projection;
}
public TextLineItemProjection id() {
getFields().put("id", null);
return this;
}
public TextLineItemProjection key() {
getFields().put("key", null);
return this;
}
public TextLineItemProjection name() {
getFields().put("name", null);
return this;
}
public TextLineItemProjection name(String locale, List acceptLanguage) {
getFields().put("name", null);
getInputArguments().computeIfAbsent("name", k -> new ArrayList<>());
InputArgument localeArg = new InputArgument("locale", locale);
getInputArguments().get("name").add(localeArg);
InputArgument acceptLanguageArg = new InputArgument("acceptLanguage", acceptLanguage);
getInputArguments().get("name").add(acceptLanguageArg);
return this;
}
public TextLineItemProjection description() {
getFields().put("description", null);
return this;
}
public TextLineItemProjection description(String locale, List acceptLanguage) {
getFields().put("description", null);
getInputArguments().computeIfAbsent("description", k -> new ArrayList<>());
InputArgument localeArg = new InputArgument("locale", locale);
getInputArguments().get("description").add(localeArg);
InputArgument acceptLanguageArg = new InputArgument("acceptLanguage", acceptLanguage);
getInputArguments().get("description").add(acceptLanguageArg);
return this;
}
public TextLineItemProjection quantity() {
getFields().put("quantity", null);
return this;
}
public TextLineItemProjection addedAt() {
getFields().put("addedAt", null);
return this;
}
}