Class GraphQLErrorLocationBuilder

java.lang.Object
com.commercetools.api.models.graph_ql.GraphQLErrorLocationBuilder
All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<GraphQLErrorLocation>

public class GraphQLErrorLocationBuilder extends Object implements io.vrap.rmf.base.client.Builder<GraphQLErrorLocation>
GraphQLErrorLocationBuilder
Example to create an instance using the builder pattern

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

    • GraphQLErrorLocationBuilder

      public GraphQLErrorLocationBuilder()
  • Method Details

    • line

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

      public GraphQLErrorLocationBuilder column(Integer column)
      set the value to the column
      Parameters:
      column - value to be set
      Returns:
      Builder
    • getLine

      public Integer getLine()
      value of line}
      Returns:
      line
    • getColumn

      public Integer getColumn()
      value of column}
      Returns:
      column
    • build

      public GraphQLErrorLocation build()
      builds GraphQLErrorLocation with checking for non-null required values
      Specified by:
      build in interface io.vrap.rmf.base.client.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