Class InvalidCredentialsErrorBuilder

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

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

     InvalidCredentialsError invalidCredentialsError = InvalidCredentialsError.builder()
             .message("{message}")
             .build()
 
  • Constructor Details

    • InvalidCredentialsErrorBuilder

      public InvalidCredentialsErrorBuilder()
  • Method Details

    • message

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

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

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

      create builder for InvalidCredentialsError instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder