Class BatchFailure.Builder

java.lang.Object
com.helixframework.api.contract.batch.BatchFailure.Builder
Enclosing class:
BatchFailure

public static class BatchFailure.Builder extends Object
Represents a builder for creating instances of BatchFailure.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • id

      public BatchFailure.Builder id(String id)
      Sets the ID of the Builder object.
      Parameters:
      id - the ID to set
      Returns:
      the Builder object
    • code

      public BatchFailure.Builder code(String code)
      Sets the code for the BatchFailure.
      Parameters:
      code - the code to set
      Returns:
      the Builder object
    • status

      public BatchFailure.Builder status(String status)
      Sets the status of the BatchFailure being built.
      Parameters:
      status - the status of the BatchFailure
      Returns:
      the Builder object
    • message

      public BatchFailure.Builder message(String message)
      Sets the message for the BatchFailure being built.
      Parameters:
      message - the message to set
      Returns:
      the Builder object
    • build

      public BatchFailure build()
      Builds a new instance of BatchFailure.
      Returns:
      a new instance of BatchFailure