Class GraphQLErrorLocationBuilder
java.lang.Object
com.commercetools.api.models.graph_ql.GraphQLErrorLocationBuilder
- All Implemented Interfaces:
Builder<GraphQLErrorLocation>
GraphQLErrorLocationBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
GraphQLErrorLocation graphQLErrorLocation = GraphQLErrorLocation.builder()
.line(0.3)
.column(0.3)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds GraphQLErrorLocation with checking for non-null required valuesbuilds GraphQLErrorLocation without checking for non-null required valuesPosition inline
where the error occurred.Position inline
where the error occurred.getLine()
Line number of the query where the error occurred.Line number of the query where the error occurred.static GraphQLErrorLocationBuilder
of()
factory method for an instance of GraphQLErrorLocationBuilderstatic GraphQLErrorLocationBuilder
of
(GraphQLErrorLocation template) create builder for GraphQLErrorLocation instance
-
Constructor Details
-
GraphQLErrorLocationBuilder
public GraphQLErrorLocationBuilder()
-
-
Method Details
-
line
Line number of the query where the error occurred.
- Parameters:
line
- value to be set- Returns:
- Builder
-
column
Position in
line
where the error occurred.- Parameters:
column
- value to be set- Returns:
- Builder
-
getLine
Line number of the query where the error occurred.
- Returns:
- line
-
getColumn
Position in
line
where the error occurred.- Returns:
- column
-
build
builds GraphQLErrorLocation with checking for non-null required values- Specified by:
build
in interfaceBuilder<GraphQLErrorLocation>
- Returns:
- GraphQLErrorLocation
-
buildUnchecked
builds GraphQLErrorLocation without checking for non-null required values- Returns:
- GraphQLErrorLocation
-
of
factory method for an instance of GraphQLErrorLocationBuilder- Returns:
- builder
-
of
create builder for GraphQLErrorLocation instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-