Class SearchDeactivatedErrorBuilder

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

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

     SearchDeactivatedError searchDeactivatedError = SearchDeactivatedError.builder()
             .message("{message}")
             .build()
 
  • Constructor Details

    • SearchDeactivatedErrorBuilder

      public SearchDeactivatedErrorBuilder()
  • Method Details

    • message

      public SearchDeactivatedErrorBuilder message(String message)

      "The endpoint is deactivated for this project. Please enable it via the Project endpoint, via the Merchant Center in the Project settings, or reach out to Support to enable it."

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

      Error-specific additional fields.

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

      public SearchDeactivatedErrorBuilder addValue(String key, Object value)

      Error-specific additional fields.

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

      public String getMessage()

      "The endpoint is deactivated for this project. Please enable it via the Project endpoint, via the Merchant Center in the Project settings, or reach out to Support to enable it."

      Returns:
      message
    • getValues

      public Map<String,Object> getValues()

      Error-specific additional fields.

      Returns:
      pattern properties
    • build

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

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

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

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