Class GraphQLVariablesMapBuilder
java.lang.Object
com.commercetools.api.models.graph_ql.GraphQLVariablesMapBuilder
- All Implemented Interfaces:
Builder<GraphQLVariablesMap>
GraphQLVariablesMapBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
GraphQLVariablesMap graphQLVariablesMap = GraphQLVariablesMap.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionJSON object that contains key-value pairs in which the keys are variable names and the values are variable values.build()
builds GraphQLVariablesMap with checking for non-null required valuesbuilds GraphQLVariablesMap without checking for non-null required valuesJSON object that contains key-value pairs in which the keys are variable names and the values are variable values.static GraphQLVariablesMapBuilder
of()
factory method for an instance of GraphQLVariablesMapBuilderstatic GraphQLVariablesMapBuilder
of
(GraphQLVariablesMap template) create builder for GraphQLVariablesMap instanceJSON object that contains key-value pairs in which the keys are variable names and the values are variable values.
-
Constructor Details
-
GraphQLVariablesMapBuilder
public GraphQLVariablesMapBuilder()
-
-
Method Details
-
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
JSON object that contains key-value pairs in which the keys are variable names and the values are variable values.
- Parameters:
key
- property namevalue
- property value- Returns:
- Builder
-
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
builds GraphQLVariablesMap with checking for non-null required values- Specified by:
build
in interfaceBuilder<GraphQLVariablesMap>
- Returns:
- GraphQLVariablesMap
-
buildUnchecked
builds GraphQLVariablesMap without checking for non-null required values- Returns:
- GraphQLVariablesMap
-
of
factory method for an instance of GraphQLVariablesMapBuilder- Returns:
- builder
-
of
create builder for GraphQLVariablesMap instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-