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

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

There is a newer version: 17.15.1
Show newest version
package com.commercetools.graphql.api.client;

import com.commercetools.graphql.api.types.CreateApiClient;
import com.netflix.graphql.dgs.client.codegen.GraphQLQuery;
import java.lang.Override;
import java.lang.String;
import java.util.HashSet;
import java.util.Set;

public class CreateApiClientGraphQLQuery extends GraphQLQuery {
  public CreateApiClientGraphQLQuery(CreateApiClient draft, String queryName,
      Set fieldsSet) {
    super("mutation", queryName);
    if (draft != null || fieldsSet.contains("draft")) {
        getInput().put("draft", draft);
    }
  }

  public CreateApiClientGraphQLQuery() {
    super("mutation");
  }

  @Override
  public String getOperationName() {
     return "createApiClient";
                    
  }

  public static Builder newRequest() {
    return new Builder();
  }

  public static class Builder {
    private Set fieldsSet = new HashSet<>();

    private CreateApiClient draft;

    private String queryName;

    public CreateApiClientGraphQLQuery build() {
      return new CreateApiClientGraphQLQuery(draft, queryName, fieldsSet);
               
    }

    public Builder draft(CreateApiClient draft) {
      this.draft = draft;
      this.fieldsSet.add("draft");
      return this;
    }

    public Builder queryName(String queryName) {
      this.queryName = queryName;
      return this;
    }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy