Class ResourceDeletionErrorBuilder

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

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

     ResourceDeletionError resourceDeletionError = ResourceDeletionError.builder()
             .message("{message}")
             .build()
 
  • Constructor Details

    • ResourceDeletionErrorBuilder

      public ResourceDeletionErrorBuilder()
  • Method Details

    • message

      public ResourceDeletionErrorBuilder message(String message)

      A plain language description of the cause of an error.

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

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

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

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

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