Class ErrorMessage.ErrorMessageBuilder
java.lang.Object
org.springframework.cloud.servicebroker.model.error.ErrorMessage.ErrorMessageBuilder
- Enclosing class:
- ErrorMessage
Provides a fluent API for constructing an
ErrorMessage.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Construct anErrorMessagefrom the provided valuesSet the error codeinstanceUsable(Boolean instanceUsable) Set a boolean that indicates whether or not the Service Instance is still usable after a failed update or delete action.Set the descriptionupdateRepeatable(Boolean updateRepeatable) Set a boolean that indicates whether this update can be repeated or not.
-
Constructor Details
-
ErrorMessageBuilder
public ErrorMessageBuilder()
-
-
Method Details
-
error
Set the error code- Parameters:
error- the error code- Returns:
- builder
- See Also:
-
message
Set the description- Parameters:
message- the error description- Returns:
- the builder
- See Also:
-
instanceUsable
Set a boolean that indicates whether or not the Service Instance is still usable after a failed update or delete action. If true, the Service Instance can still be used, false otherwise.This value will set the instance_usable field in the body of the response to the platform.
- Parameters:
instanceUsable- the boolean value- Returns:
- the builder
- See Also:
-
updateRepeatable
Set a boolean that indicates whether this update can be repeated or not. If true, the same update operation MAY be repeated and MAY succeed; if false, repeating the same update operation will fail again.This value will set the update_repeatable field in the body of the response to the platform.
- Parameters:
updateRepeatable- the boolean value- Returns:
- the builder
- See Also:
-
build
Construct anErrorMessagefrom the provided values- Returns:
- the newly constructed
ErrorMessage
-