Class DeleteServiceInstanceBindingResponse.DeleteServiceInstanceBindingResponseBuilder
java.lang.Object
org.springframework.cloud.servicebroker.model.binding.DeleteServiceInstanceBindingResponse.DeleteServiceInstanceBindingResponseBuilder
- Enclosing class:
- DeleteServiceInstanceBindingResponse
public static final class DeleteServiceInstanceBindingResponse.DeleteServiceInstanceBindingResponseBuilder
extends Object
Provides a fluent API for constructing a
DeleteServiceInstanceBindingResponse.-
Method Summary
Modifier and TypeMethodDescriptionasync(boolean async) Set a boolean value indicating whether the requested operation is being performed synchronously or asynchronously.build()Construct aDeleteServiceInstanceBindingResponsefrom the provided values.Set a value to inform the user of the operation being performed in support of an asynchronous response.
-
Method Details
-
async
public DeleteServiceInstanceBindingResponse.DeleteServiceInstanceBindingResponseBuilder async(boolean async) Set a boolean value indicating whether the requested operation is being performed synchronously or asynchronously.This value will be used to determine the HTTP response code to the platform. A true value will result in a response code 202 ACCEPTED, and a false value will result in a response code 200 OK.
- Parameters:
async- true to indicate that the operation is being performed asynchronously, false to indicate that the operation was completed- Returns:
- the builder
-
operation
public DeleteServiceInstanceBindingResponse.DeleteServiceInstanceBindingResponseBuilder operation(String operation) Set a value to inform the user of the operation being performed in support of an asynchronous response. This value will be passed back to the service broker in subsequentGetLastServiceOperationRequestrequests.This value will set the operation field in the body of the response to the platform.
- Parameters:
operation- the informational value- Returns:
- the builder
-
build
Construct aDeleteServiceInstanceBindingResponsefrom the provided values.- Returns:
- the newly constructed DeleteServiceInstanceResponse
-