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(1)
.column(1)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds GraphQLErrorLocation with checking for non-null required valuesbuilds GraphQLErrorLocation without checking for non-null required valuesset the value to the columnvalue of column}getLine()
value of line}set the value to the linestatic 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
set the value to the line- Parameters:
line
- value to be set- Returns:
- Builder
-
column
set the value to the column- Parameters:
column
- value to be set- Returns:
- Builder
-
getLine
value of line}- Returns:
- line
-
getColumn
value of column}- 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
-