Class GetLastServiceOperationResponse.GetLastServiceOperationResponseBuilder
- Enclosing class:
- GetLastServiceOperationResponse
GetLastServiceOperationResponse
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Construct aGetLastServiceOperationResponse
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.instanceUsable
(Boolean instanceUsable) Set a boolean that indicates whether or not the Service Instance is still usable after a failed update or delete action.operationState
(OperationState state) Set the current state of the asynchronous operation.updateRepeatable
(Boolean updateRepeatable) Set a boolean that indicates whether this update can be repeated or not.
-
Method Details
-
operationState
public GetLastServiceOperationResponse.GetLastServiceOperationResponseBuilder 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 GetLastServiceOperationResponse.GetLastServiceOperationResponseBuilder 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
-
instanceUsable
public GetLastServiceOperationResponse.GetLastServiceOperationResponseBuilder instanceUsable(Boolean 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
-
updateRepeatable
public GetLastServiceOperationResponse.GetLastServiceOperationResponseBuilder updateRepeatable(Boolean 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
-
deleteOperation
public GetLastServiceOperationResponse.GetLastServiceOperationResponseBuilder 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 aGetLastServiceOperationResponse
from the provided values.- Returns:
- the newly constructed GetLastServiceOperationResponse
-