com.commercetools.graphql.api.client.ShippingRateInputLocalizedEnumValueProjection 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 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;
}
}