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

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

public class ProductProjectionRoot, ROOT extends BaseSubProjectionNode> extends BaseSubProjectionNode {
  public ProductProjectionRoot() {
    super(null, null, java.util.Optional.of("Product"));
  }

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

  public ReferenceProjection, ProductProjectionRoot> productTypeRef(
      ) {
    ReferenceProjection, ProductProjectionRoot> projection = new ReferenceProjection<>(this, this);    
    getFields().put("productTypeRef", projection);
    return projection;
  }

  public ProductTypeDefinitionProjection, ProductProjectionRoot> productType(
      ) {
    ProductTypeDefinitionProjection, ProductProjectionRoot> projection = new ProductTypeDefinitionProjection<>(this, this);    
    getFields().put("productType", projection);
    return projection;
  }

  public ProductCatalogDataProjection, ProductProjectionRoot> masterData(
      ) {
    ProductCatalogDataProjection, ProductProjectionRoot> projection = new ProductCatalogDataProjection<>(this, this);    
    getFields().put("masterData", projection);
    return projection;
  }

  public ReferenceProjection, ProductProjectionRoot> stateRef(
      ) {
    ReferenceProjection, ProductProjectionRoot> projection = new ReferenceProjection<>(this, this);    
    getFields().put("stateRef", projection);
    return projection;
  }

  public StateProjection, ProductProjectionRoot> state(
      ) {
    StateProjection, ProductProjectionRoot> projection = new StateProjection<>(this, this);    
    getFields().put("state", projection);
    return projection;
  }

  public PriceModeProjection, ProductProjectionRoot> priceMode(
      ) {
    PriceModeProjection, ProductProjectionRoot> projection = new PriceModeProjection<>(this, this);    
    getFields().put("priceMode", projection);
    return projection;
  }

  public ReferenceProjection, ProductProjectionRoot> taxCategoryRef(
      ) {
    ReferenceProjection, ProductProjectionRoot> projection = new ReferenceProjection<>(this, this);    
    getFields().put("taxCategoryRef", projection);
    return projection;
  }

  public TaxCategoryProjection, ProductProjectionRoot> taxCategory(
      ) {
    TaxCategoryProjection, ProductProjectionRoot> projection = new TaxCategoryProjection<>(this, this);    
    getFields().put("taxCategory", projection);
    return projection;
  }

  public ReviewRatingStatisticsProjection, ProductProjectionRoot> reviewRatingStatistics(
      ) {
    ReviewRatingStatisticsProjection, ProductProjectionRoot> projection = new ReviewRatingStatisticsProjection<>(this, this);    
    getFields().put("reviewRatingStatistics", projection);
    return projection;
  }

  public SelectionOfProductQueryResultProjection, ProductProjectionRoot> productSelectionRefs(
      ) {
    SelectionOfProductQueryResultProjection, ProductProjectionRoot> projection = new SelectionOfProductQueryResultProjection<>(this, this);    
    getFields().put("productSelectionRefs", projection);
    return projection;
  }

  public SelectionOfProductQueryResultProjection, ProductProjectionRoot> productSelectionRefs(
      String where, List sort, Integer limit, Integer offset) {
    SelectionOfProductQueryResultProjection, ProductProjectionRoot> projection = new SelectionOfProductQueryResultProjection<>(this, this);    
    getFields().put("productSelectionRefs", projection);
    getInputArguments().computeIfAbsent("productSelectionRefs", k -> new ArrayList<>());                      
    InputArgument whereArg = new InputArgument("where", where);
    getInputArguments().get("productSelectionRefs").add(whereArg);
    InputArgument sortArg = new InputArgument("sort", sort);
    getInputArguments().get("productSelectionRefs").add(sortArg);
    InputArgument limitArg = new InputArgument("limit", limit);
    getInputArguments().get("productSelectionRefs").add(limitArg);
    InputArgument offsetArg = new InputArgument("offset", offset);
    getInputArguments().get("productSelectionRefs").add(offsetArg);
    return projection;
  }

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

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

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

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

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

  public ProductProjectionRoot skus() {
    getFields().put("skus", null);
    return this;
  }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy