Interface GraphQLVariablesMap


public interface GraphQLVariablesMap

The variables that the GraphQL query uses.


Example to create an instance using the builder pattern

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

    • values

      @NotNull @NotNull Map<String,Object> values()

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

      Returns:
      map of the pattern property values
    • setValue

      void setValue(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
    • of

      static GraphQLVariablesMap of()
      factory method
      Returns:
      instance of GraphQLVariablesMap
    • of

      factory method to create a shallow copy GraphQLVariablesMap
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • deepCopy

      factory method to create a deep copy of GraphQLVariablesMap
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • builder

      static GraphQLVariablesMapBuilder builder()
      builder factory method for GraphQLVariablesMap
      Returns:
      builder
    • builder

      create builder for GraphQLVariablesMap instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withGraphQLVariablesMap

      default <T> T withGraphQLVariablesMap(Function<GraphQLVariablesMap,T> helper)
      accessor map function
      Type Parameters:
      T - mapped type
      Parameters:
      helper - function to map the object
      Returns:
      mapped value
    • typeReference

      static com.fasterxml.jackson.core.type.TypeReference<GraphQLVariablesMap> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference