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

com.commercetools.graphql.api.client.ShippingRateInputLocalizedEnumValueProjection 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 ShippingRateInputLocalizedEnumValueProjection, ROOT extends BaseSubProjectionNode> extends BaseSubProjectionNode {
  public ShippingRateInputLocalizedEnumValueProjection(PARENT parent, ROOT root) {
    super(parent, root, java.util.Optional.of("ShippingRateInputLocalizedEnumValue"));
  }

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

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

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

  public ShippingRateInputLocalizedEnumValueProjection label() {
    getFields().put("label", null);
    return this;
  }

  public ShippingRateInputLocalizedEnumValueProjection label(String locale,
      List acceptLanguage) {
    getFields().put("label", null);
    getInputArguments().computeIfAbsent("label", k -> new ArrayList<>());
    InputArgument localeArg = new InputArgument("locale", locale);
    getInputArguments().get("label").add(localeArg);
    InputArgument acceptLanguageArg = new InputArgument("acceptLanguage", acceptLanguage);
    getInputArguments().get("label").add(acceptLanguageArg);
    return this;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy