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

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

There is a newer version: 17.15.1
Show newest version
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 StateProjection, ROOT extends BaseSubProjectionNode> extends BaseSubProjectionNode {
  public StateProjection(PARENT parent, ROOT root) {
    super(parent, root, java.util.Optional.of("State"));
  }

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

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

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

  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 ReferenceProjection, ROOT> transitionsRef() {
     ReferenceProjection, ROOT> projection = new ReferenceProjection<>(this, getRoot());
     getFields().put("transitionsRef", projection);
     return projection;
  }

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

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

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

  public StateProjection id() {
    getFields().put("id", null);
    return this;
  }

  public StateProjection version() {
    getFields().put("version", null);
    return this;
  }

  public StateProjection key() {
    getFields().put("key", null);
    return this;
  }

  public StateProjection name() {
    getFields().put("name", null);
    return this;
  }

  public StateProjection 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 StateProjection description() {
    getFields().put("description", null);
    return this;
  }

  public StateProjection 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 StateProjection builtIn() {
    getFields().put("builtIn", null);
    return this;
  }

  public StateProjection initial() {
    getFields().put("initial", null);
    return this;
  }

  public StateProjection createdAt() {
    getFields().put("createdAt", null);
    return this;
  }

  public StateProjection lastModifiedAt() {
    getFields().put("lastModifiedAt", null);
    return this;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy