Class GetLastServiceBindingOperationResponse
java.lang.Object
org.springframework.cloud.servicebroker.model.binding.GetLastServiceBindingOperationResponse
Details of a response to a request to get the state of the last operation on a service
instance binding.
Objects of this type are constructed by the service broker application, and used to build the response to the platform.
- Author:
- Scott Frederick, Roy Clarkson
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classProvides a fluent API for constructing aGetLastServiceBindingOperationResponse. -
Constructor Summary
ConstructorsConstructorDescriptionConstruct a newGetLastServiceBindingOperationResponse.GetLastServiceBindingOperationResponse(OperationState state, String description, boolean deleteOperation) Construct a newGetLastServiceBindingOperationResponse. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Create a builder that provides a fluent API for constructing a GetLastServiceBindingOperationResponse.final booleanGet the description of the current asynchronous operation.getState()Get the current state of an asynchronous operation.final inthashCode()booleanGet a boolean value indicating whether the current operation is a delete operation.toString()
-
Constructor Details
-
GetLastServiceBindingOperationResponse
public GetLastServiceBindingOperationResponse()Construct a newGetLastServiceBindingOperationResponse. -
GetLastServiceBindingOperationResponse
public GetLastServiceBindingOperationResponse(OperationState state, String description, boolean deleteOperation) Construct a newGetLastServiceBindingOperationResponse.- Parameters:
state- the current statedescription- the descriptiondeleteOperation- is delete operation
-
-
Method Details
-
getState
Get the current state of an asynchronous operation.- Returns:
- the operation state
-
getDescription
Get the description of the current asynchronous operation.- Returns:
- the description, or null if not provided
-
isDeleteOperation
public boolean isDeleteOperation()Get a boolean value indicating whether the current operation is a delete operation.- Returns:
- the boolean value
-
builder
public static GetLastServiceBindingOperationResponse.GetLastServiceBindingOperationResponseBuilder builder()Create a builder that provides a fluent API for constructing a GetLastServiceBindingOperationResponse.- Returns:
- the builder
-
equals
-
hashCode
public final int hashCode() -
toString
-