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

com.commercetools.graphql.api.client.StoreCreatedFragmentProjection 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.Override;
import java.lang.String;
import java.util.ArrayList;
import java.util.List;

public class StoreCreatedFragmentProjection, ROOT extends BaseSubProjectionNode> extends BaseSubProjectionNode {
  {
    getFields().put("__typename", null);
  }

  public StoreCreatedFragmentProjection(PARENT parent, ROOT root) {
    super(parent, root, java.util.Optional.of("StoreCreated"));
  }

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

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

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

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

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

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

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

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

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

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

  public StoreCreatedFragmentProjection languages() {
    getFields().put("languages", null);
    return this;
  }

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

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

  @Override
  public String toString() {
    StringBuilder builder = new StringBuilder();
    builder.append("... on StoreCreated {");
    getFields().forEach((k, v) -> {
        builder.append(" ").append(k);
        if(v != null) {
            builder.append(" ").append(v.toString());
        }
    });
    builder.append("}");
     
    return builder.toString();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy