Class InsufficientScopeErrorBuilder

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

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

     InsufficientScopeError insufficientScopeError = InsufficientScopeError.builder()
             .message("{message}")
             .build()
 
  • Constructor Details

    • InsufficientScopeErrorBuilder

      public InsufficientScopeErrorBuilder()
  • Method Details

    • message

      public InsufficientScopeErrorBuilder message(String message)

      Plain text description of the cause of the error.

      Parameters:
      message - value to be set
      Returns:
      Builder
    • values

      Error-specific additional fields.

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

      public InsufficientScopeErrorBuilder addValue(String key, Object value)

      Error-specific additional fields.

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

      public String getMessage()

      Plain text description of the cause of the error.

      Returns:
      message
    • getValues

      public Map<String,Object> getValues()

      Error-specific additional fields.

      Returns:
      pattern properties
    • build

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

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

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

      create builder for InsufficientScopeError instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder