Class InvalidScopeErrorBuilder

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

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

     InvalidScopeError invalidScopeError = InvalidScopeError.builder()
             .message("{message}")
             .build()
 
  • Constructor Details

    • InvalidScopeErrorBuilder

      public InvalidScopeErrorBuilder()
  • Method Details

    • message

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

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

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

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