Class InvalidInputBuilder

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

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

     InvalidInput invalidInput = InvalidInput.builder()
             .message("{message}")
             .build()
 
  • Constructor Details

    • InvalidInputBuilder

      public InvalidInputBuilder()
  • Method Details

    • message

      public InvalidInputBuilder 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 InvalidInput build()
      builds InvalidInput with checking for non-null required values
      Specified by:
      build in interface Builder<InvalidInput>
      Returns:
      InvalidInput
    • buildUnchecked

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

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

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