Class InvalidTokenErrorBuilder

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

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

     InvalidTokenError invalidTokenError = InvalidTokenError.builder()
             .message("{message}")
             .build()
 
  • Constructor Details

    • InvalidTokenErrorBuilder

      public InvalidTokenErrorBuilder()
  • Method Details

    • message

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

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

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

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