Class ContentTooLargeErrorBuilder

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

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

     ContentTooLargeError contentTooLargeError = ContentTooLargeError.builder()
             .message("{message}")
             .build()
 
  • Constructor Details

    • ContentTooLargeErrorBuilder

      public ContentTooLargeErrorBuilder()
  • Method Details

    • message

      public ContentTooLargeErrorBuilder message(String message)

      "Content too large."

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

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

      Error-specific additional fields.

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

      public ContentTooLargeErrorBuilder addValue(String key, Object value)

      Error-specific additional fields.

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

      public String getMessage()

      "Content too large."

      Returns:
      message
    • getValues

      public Map<String,Object> getValues()

      Error-specific additional fields.

      Returns:
      pattern properties
    • build

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

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

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

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