Class FeatureRemovedErrorBuilder

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

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

     FeatureRemovedError featureRemovedError = FeatureRemovedError.builder()
             .message("{message}")
             .build()
 
  • Constructor Details

    • FeatureRemovedErrorBuilder

      public FeatureRemovedErrorBuilder()
  • Method Details

    • message

      public FeatureRemovedErrorBuilder message(String message)

      Description of the feature that is removed.

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

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

      Error-specific additional fields.

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

      public FeatureRemovedErrorBuilder addValue(String key, Object value)

      Error-specific additional fields.

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

      public String getMessage()

      Description of the feature that is removed.

      Returns:
      message
    • getValues

      public Map<String,Object> getValues()

      Error-specific additional fields.

      Returns:
      pattern properties
    • build

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

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

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

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