Class ContentionErrorBuilder

java.lang.Object
com.commercetools.importapi.models.errors.ContentionErrorBuilder
All Implemented Interfaces:
Builder<ContentionError>

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

     ContentionError contentionError = ContentionError.builder()
             .message("{message}")
             .build()
 
  • Constructor Details

    • ContentionErrorBuilder

      public ContentionErrorBuilder()
  • Method Details

    • message

      public ContentionErrorBuilder message(String message)
      set the value to the message
      Parameters:
      message - value to be set
      Returns:
      Builder
    • getMessage

      public String getMessage()
      value of message}
      Returns:
      message
    • build

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

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

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

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