Class BatchFailure.Builder
java.lang.Object
com.helixframework.api.contract.batch.BatchFailure.Builder
- Enclosing class:
- BatchFailure
Represents a builder for creating instances of BatchFailure.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a new instance of BatchFailure.Sets the code for the BatchFailure.Sets the ID of the Builder object.Sets the message for the BatchFailure being built.Sets the status of the BatchFailure being built.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
id
Sets the ID of the Builder object.- Parameters:
id- the ID to set- Returns:
- the Builder object
-
code
Sets the code for the BatchFailure.- Parameters:
code- the code to set- Returns:
- the Builder object
-
status
Sets the status of the BatchFailure being built.- Parameters:
status- the status of the BatchFailure- Returns:
- the Builder object
-
message
Sets the message for the BatchFailure being built.- Parameters:
message- the message to set- Returns:
- the Builder object
-
build
Builds a new instance of BatchFailure.- Returns:
- a new instance of BatchFailure
-