Class DeleteServiceInstanceResponse.DeleteServiceInstanceResponseBuilder

java.lang.Object
org.springframework.cloud.servicebroker.model.instance.DeleteServiceInstanceResponse.DeleteServiceInstanceResponseBuilder
Enclosing class:
DeleteServiceInstanceResponse

public static final class DeleteServiceInstanceResponse.DeleteServiceInstanceResponseBuilder extends Object
Provides a fluent API for constructing a DeleteServiceInstanceResponse.
  • Method Details

    • 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

      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 subsequent GetLastServiceOperationRequest requests.

      This value will set the operation field in the body of the response to the platform.

      Parameters:
      operation - description of the operation being performed
      Returns:
      the builder
    • build

      Construct a DeleteServiceInstanceResponse from the provided values.
      Returns:
      the newly constructed DeleteServiceInstanceResponse