Class LanguageUsedInStoresErrorBuilder

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

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

     LanguageUsedInStoresError languageUsedInStoresError = LanguageUsedInStoresError.builder()
             .message("{message}")
             .build()
 
  • Constructor Details

    • LanguageUsedInStoresErrorBuilder

      public LanguageUsedInStoresErrorBuilder()
  • Method Details

    • message

      public LanguageUsedInStoresErrorBuilder message(String message)

      "Language(s) in use by a store cannot be deleted. Remove them in all the stores of this project first."

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

      Error-specific additional fields.

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

      public LanguageUsedInStoresErrorBuilder addValue(String key, Object value)

      Error-specific additional fields.

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

      public String getMessage()

      "Language(s) in use by a store cannot be deleted. Remove them in all the stores of this project first."

      Returns:
      message
    • getValues

      public Map<String,Object> getValues()

      Error-specific additional fields.

      Returns:
      pattern properties
    • build

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

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

      factory method for an instance of LanguageUsedInStoresErrorBuilder
      Returns:
      builder
    • of

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