Class InvalidJsonInputBuilder

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

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

     InvalidJsonInput invalidJsonInput = InvalidJsonInput.builder()
             .message("{message}")
             .build()
 
  • Constructor Details

    • InvalidJsonInputBuilder

      public InvalidJsonInputBuilder()
  • Method Details

    • message

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

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

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

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