Class InvalidOperationBuilder

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

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

     InvalidOperation invalidOperation = InvalidOperation.builder()
             .message("{message}")
             .build()
 
  • Constructor Details

    • InvalidOperationBuilder

      public InvalidOperationBuilder()
  • Method Details

    • message

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

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

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

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