Class GetLastServiceOperationResponse
java.lang.Object
org.springframework.cloud.servicebroker.model.instance.GetLastServiceOperationResponse
Details of a response to a request to get the state of the last operation on a service
instance.
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
Modifier and TypeClassDescriptionstatic final class
Provides a fluent API for constructing aGetLastServiceOperationResponse
. -
Constructor Summary
ConstructorDescriptionConstruct a newGetLastServiceOperationResponse
.GetLastServiceOperationResponse
(OperationState state, String description, boolean deleteOperation) Deprecated.GetLastServiceOperationResponse
(OperationState state, String description, Boolean instanceUsable, Boolean updateRepeatable, boolean deleteOperation) Construct a newGetLastServiceOperationResponse
. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Create a builder that provides a fluent API for constructing a GetLastServiceOperationResponse.final boolean
Get the description of the current asynchronous operation.getState()
Get the current state of an asynchronous operation.final int
hashCode()
boolean
Get a boolean value indicating whether the current operation is a delete operation.Get a boolean value indicating whether the instance is usable after a failed update or deprovisioning operation.Get a boolean value indicating whether a failed update is repeatable.toString()
-
Constructor Details
-
GetLastServiceOperationResponse
public GetLastServiceOperationResponse()Construct a newGetLastServiceOperationResponse
. -
GetLastServiceOperationResponse
@Deprecated public GetLastServiceOperationResponse(OperationState state, String description, boolean deleteOperation) Deprecated.Construct a newGetLastServiceOperationResponse
.- Parameters:
state
- the current statedescription
- the descriptiondeleteOperation
- is delete operation
-
GetLastServiceOperationResponse
public GetLastServiceOperationResponse(OperationState state, String description, Boolean instanceUsable, Boolean updateRepeatable, boolean deleteOperation) Construct a newGetLastServiceOperationResponse
.- Parameters:
state
- the current statedescription
- the descriptioninstanceUsable
- is the instance usableupdateRepeatable
- is the update repeatabledeleteOperation
- 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
-
isInstanceUsable
Get a boolean value indicating whether the instance is usable after a failed update or deprovisioning operation.- Returns:
- the boolean value
-
isUpdateRepeatable
Get a boolean value indicating whether a failed update is repeatable.- Returns:
- the boolean value
-
isDeleteOperation
public boolean isDeleteOperation()Get a boolean value indicating whether the current operation is a delete operation.- Returns:
- the boolean value
-
builder
Create a builder that provides a fluent API for constructing a GetLastServiceOperationResponse.- Returns:
- the builder
-
equals
-
hashCode
public final int hashCode() -
toString
-
GetLastServiceOperationResponse(OperationState, String, Boolean, Boolean, boolean)