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)

      A plain language description of the cause of an error.

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

      public String getMessage()

      A plain language description of the cause of an error.

      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