Class GetLastServiceBindingOperationResponse.GetLastServiceBindingOperationResponseBuilder
java.lang.Object
org.springframework.cloud.servicebroker.model.binding.GetLastServiceBindingOperationResponse.GetLastServiceBindingOperationResponseBuilder
- Enclosing class:
- GetLastServiceBindingOperationResponse
public static final class GetLastServiceBindingOperationResponse.GetLastServiceBindingOperationResponseBuilder
extends Object
Provides a fluent API for constructing a
GetLastServiceBindingOperationResponse
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Construct aGetLastServiceBindingOperationResponse
from the provided values.deleteOperation
(boolean deleteOperation) Set a boolean value indicating whether the current asynchronous operation is a delete operation.description
(String description) Set a user-facing description of the operation that the platform can display to the API client.operationState
(OperationState state) Set the current state of the asynchronous operation.
-
Method Details
-
operationState
public GetLastServiceBindingOperationResponse.GetLastServiceBindingOperationResponseBuilder operationState(OperationState state) Set the current state of the asynchronous operation.A value of
OperationState.IN_PROGRESS
will cause the platform to continue polling the service broker for status. A value ofOperationState.SUCCEEDED
orOperationState.FAILED
will cause the platform to stop polling the service broker.This value will set the state field in the body of the response to the platform.
- Parameters:
state
- the current state- Returns:
- the builder
-
description
public GetLastServiceBindingOperationResponse.GetLastServiceBindingOperationResponseBuilder description(String description) Set a user-facing description of the operation that the platform can display to the API client. Can be null.This value will set the description field in the body of the response to the platform.
- Parameters:
description
- the description- Returns:
- the builder
-
deleteOperation
public GetLastServiceBindingOperationResponse.GetLastServiceBindingOperationResponseBuilder deleteOperation(boolean deleteOperation) Set a boolean value indicating whether the current asynchronous operation is a delete operation. Should be set totrue
in response to a request for the status of an asynchronous delete request, andfalse
otherwise.This value is used to determine the HTTP response code to the platform. If the
operationState(OperationState)
isOperationState.SUCCEEDED
and the value provided here is true will result in a response code 410 GONE. Otherwise the response code will be 200 OK.- Parameters:
deleteOperation
- the boolean value- Returns:
- the builder
-
build
Construct aGetLastServiceBindingOperationResponse
from the provided values.- Returns:
- the newly constructed GetLastServiceOperationResponse
-