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