com.commercetools.graphql.api.client.CreateStateProjectionRoot 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 CreateStateProjectionRoot, ROOT extends BaseSubProjectionNode, ?>> extends BaseSubProjectionNode {
public CreateStateProjectionRoot() {
super(null, null, java.util.Optional.of("State"));
}
public CreateStateProjectionRoot __typename() {
getFields().put("__typename", null);
return this;
}
public StateTypeProjection, CreateStateProjectionRoot> type(
) {
StateTypeProjection, CreateStateProjectionRoot> projection = new StateTypeProjection<>(this, this);
getFields().put("type", projection);
return projection;
}
public StateRoleProjection, CreateStateProjectionRoot> roles(
) {
StateRoleProjection, CreateStateProjectionRoot> projection = new StateRoleProjection<>(this, this);
getFields().put("roles", projection);
return projection;
}
public StringProjection, CreateStateProjectionRoot> name(
String locale, List acceptLanguage) {
StringProjection, CreateStateProjectionRoot> projection = new StringProjection<>(this, this);
getFields().put("name", projection);
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 projection;
}
public LocalizedStringProjection, CreateStateProjectionRoot> nameAllLocales(
) {
LocalizedStringProjection, CreateStateProjectionRoot> projection = new LocalizedStringProjection<>(this, this);
getFields().put("nameAllLocales", projection);
return projection;
}
public StringProjection, CreateStateProjectionRoot> description(
String locale, List acceptLanguage) {
StringProjection, CreateStateProjectionRoot> projection = new StringProjection<>(this, this);
getFields().put("description", projection);
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 projection;
}
public LocalizedStringProjection, CreateStateProjectionRoot> descriptionAllLocales(
) {
LocalizedStringProjection, CreateStateProjectionRoot> projection = new LocalizedStringProjection<>(this, this);
getFields().put("descriptionAllLocales", projection);
return projection;
}
public ReferenceProjection, CreateStateProjectionRoot> transitionsRef(
) {
ReferenceProjection, CreateStateProjectionRoot> projection = new ReferenceProjection<>(this, this);
getFields().put("transitionsRef", projection);
return projection;
}
public StateProjection, CreateStateProjectionRoot> transitions(
) {
StateProjection, CreateStateProjectionRoot> projection = new StateProjection<>(this, this);
getFields().put("transitions", projection);
return projection;
}
public InitiatorProjection, CreateStateProjectionRoot> createdBy(
) {
InitiatorProjection, CreateStateProjectionRoot> projection = new InitiatorProjection<>(this, this);
getFields().put("createdBy", projection);
return projection;
}
public InitiatorProjection, CreateStateProjectionRoot> lastModifiedBy(
) {
InitiatorProjection, CreateStateProjectionRoot> projection = new InitiatorProjection<>(this, this);
getFields().put("lastModifiedBy", projection);
return projection;
}
public CreateStateProjectionRoot id() {
getFields().put("id", null);
return this;
}
public CreateStateProjectionRoot version() {
getFields().put("version", null);
return this;
}
public CreateStateProjectionRoot key() {
getFields().put("key", null);
return this;
}
public CreateStateProjectionRoot name() {
getFields().put("name", null);
return this;
}
public CreateStateProjectionRoot description() {
getFields().put("description", null);
return this;
}
public CreateStateProjectionRoot builtIn() {
getFields().put("builtIn", null);
return this;
}
public CreateStateProjectionRoot initial() {
getFields().put("initial", null);
return this;
}
public CreateStateProjectionRoot createdAt() {
getFields().put("createdAt", null);
return this;
}
public CreateStateProjectionRoot lastModifiedAt() {
getFields().put("lastModifiedAt", null);
return this;
}
}