Class GraphQLErrorLocationBuilder

java.lang.Object
com.commercetools.api.models.graph_ql.GraphQLErrorLocationBuilder
All Implemented Interfaces:
Builder<GraphQLErrorLocation>

public class GraphQLErrorLocationBuilder extends Object implements Builder<GraphQLErrorLocation>
GraphQLErrorLocationBuilder
Example to create an instance using the builder pattern

     GraphQLErrorLocation graphQLErrorLocation = GraphQLErrorLocation.builder()
             .line(0.3)
             .column(0.3)
             .build()
 
  • Constructor Details

    • GraphQLErrorLocationBuilder

      public GraphQLErrorLocationBuilder()
  • Method Details

    • line

      public GraphQLErrorLocationBuilder line(Long line)

      Line number of the query where the error occurred.

      Parameters:
      line - value to be set
      Returns:
      Builder
    • column

      public GraphQLErrorLocationBuilder column(Long column)

      Position in line where the error occurred.

      Parameters:
      column - value to be set
      Returns:
      Builder
    • getLine

      public Long getLine()

      Line number of the query where the error occurred.

      Returns:
      line
    • getColumn

      public Long getColumn()

      Position in line where the error occurred.

      Returns:
      column
    • build

      public GraphQLErrorLocation build()
      builds GraphQLErrorLocation with checking for non-null required values
      Specified by:
      build in interface Builder<GraphQLErrorLocation>
      Returns:
      GraphQLErrorLocation
    • buildUnchecked

      public GraphQLErrorLocation buildUnchecked()
      builds GraphQLErrorLocation without checking for non-null required values
      Returns:
      GraphQLErrorLocation
    • of

      public static GraphQLErrorLocationBuilder 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