Class GraphQLGeneralErrorBuilder

java.lang.Object
com.commercetools.api.models.error.GraphQLGeneralErrorBuilder
All Implemented Interfaces:
Builder<GraphQLGeneralError>

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

     GraphQLGeneralError graphQLGeneralError = GraphQLGeneralError.builder()
             .build()
 
  • Constructor Details

    • GraphQLGeneralErrorBuilder

      public GraphQLGeneralErrorBuilder()
  • Method Details

    • values

      public GraphQLGeneralErrorBuilder values(Map<String,Object> values)

      Error-specific additional fields.

      Parameters:
      values - properties to be set
      Returns:
      Builder
    • addValue

      public GraphQLGeneralErrorBuilder addValue(String key, Object value)

      Error-specific additional fields.

      Parameters:
      key - property name
      value - property value
      Returns:
      Builder
    • getValues

      public Map<String,Object> getValues()

      Error-specific additional fields.

      Returns:
      pattern properties
    • build

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

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

      public static GraphQLGeneralErrorBuilder of()
      factory method for an instance of GraphQLGeneralErrorBuilder
      Returns:
      builder
    • of

      public static GraphQLGeneralErrorBuilder of(GraphQLGeneralError template)
      create builder for GraphQLGeneralError instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder