Class GraphQLVariablesMapBuilder

java.lang.Object
com.commercetools.api.models.graph_ql.GraphQLVariablesMapBuilder
All Implemented Interfaces:
Builder<GraphQLVariablesMap>

public class GraphQLVariablesMapBuilder extends Object implements Builder<GraphQLVariablesMap>
GraphQLVariablesMapBuilder
Example to create an instance using the builder pattern

     GraphQLVariablesMap graphQLVariablesMap = GraphQLVariablesMap.builder()
             .build()
 
  • Constructor Details

    • GraphQLVariablesMapBuilder

      public GraphQLVariablesMapBuilder()
  • Method Details

    • values

      public GraphQLVariablesMapBuilder values(Map<String,Object> values)

      JSON object that contains key-value pairs in which the keys are variable names and the values are variable values.

      Parameters:
      values - properties to be set
      Returns:
      Builder
    • addValue

      public GraphQLVariablesMapBuilder addValue(String key, Object value)

      JSON object that contains key-value pairs in which the keys are variable names and the values are variable values.

      Parameters:
      key - property name
      value - property value
      Returns:
      Builder
    • getValues

      public Map<String,Object> getValues()

      JSON object that contains key-value pairs in which the keys are variable names and the values are variable values.

      Returns:
      pattern properties
    • build

      public GraphQLVariablesMap build()
      builds GraphQLVariablesMap with checking for non-null required values
      Specified by:
      build in interface Builder<GraphQLVariablesMap>
      Returns:
      GraphQLVariablesMap
    • buildUnchecked

      public GraphQLVariablesMap buildUnchecked()
      builds GraphQLVariablesMap without checking for non-null required values
      Returns:
      GraphQLVariablesMap
    • of

      public static GraphQLVariablesMapBuilder of()
      factory method for an instance of GraphQLVariablesMapBuilder
      Returns:
      builder
    • of

      public static GraphQLVariablesMapBuilder of(GraphQLVariablesMap template)
      create builder for GraphQLVariablesMap instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder