Class ResourceNotFoundErrorBuilder

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

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

     ResourceNotFoundError resourceNotFoundError = ResourceNotFoundError.builder()
             .message("{message}")
             .build()
 
  • Constructor Details

    • ResourceNotFoundErrorBuilder

      public ResourceNotFoundErrorBuilder()
  • Method Details

    • message

      public ResourceNotFoundErrorBuilder message(String message)

      A plain language description of the cause of an error.

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

      public ResourceNotFoundErrorBuilder resource(@Nullable Object resource)
      set the value to the resource
      Parameters:
      resource - value to be set
      Returns:
      Builder
    • getMessage

      public String getMessage()

      A plain language description of the cause of an error.

      Returns:
      message
    • getResource

      @Nullable public Object getResource()
      value of resource}
      Returns:
      resource
    • build

      public ResourceNotFoundError build()
      builds ResourceNotFoundError with checking for non-null required values
      Specified by:
      build in interface Builder<ResourceNotFoundError>
      Returns:
      ResourceNotFoundError
    • buildUnchecked

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

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

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