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 TypeMethodDescriptionassign a pattern property to the builderbuild()
builds GraphQLVariablesMap with checking for non-null required valuesbuilds GraphQLVariablesMap without checking for non-null required valuesvalues of pattern propertiesstatic GraphQLVariablesMapBuilder
of()
factory method for an instance of GraphQLVariablesMapBuilderstatic GraphQLVariablesMapBuilder
of
(GraphQLVariablesMap template) create builder for GraphQLVariablesMap instanceassign pattern properties to the builder
-
Constructor Details
-
GraphQLVariablesMapBuilder
public GraphQLVariablesMapBuilder()
-
-
Method Details
-
values
assign pattern properties to the builder- Parameters:
values
- properties to be set- Returns:
- Builder
-
addValue
assign a pattern property to the builder- Parameters:
key
- property namevalue
- property value- Returns:
- Builder
-
getValues
values of pattern properties- 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
-