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
Nested ClassesModifier and TypeClassDescriptionstatic final classProvides a fluent API for constructing aGetLastServiceOperationResponse. -
Constructor Summary
ConstructorsConstructorDescriptionConstruct a newGetLastServiceOperationResponse.GetLastServiceOperationResponse(@Nullable OperationState state, @Nullable String description, @Nullable Boolean instanceUsable, @Nullable Boolean updateRepeatable, @Nullable Boolean deleteOperation, @Nullable Integer retryAfter) Construct a newGetLastServiceOperationResponse.GetLastServiceOperationResponse(OperationState state, String description, boolean deleteOperation) Deprecated.GetLastServiceOperationResponse(OperationState state, String description, @Nullable Boolean instanceUsable, @Nullable Boolean updateRepeatable, @Nullable Boolean deleteOperation) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Create a builder that provides a fluent API for constructing a GetLastServiceOperationResponse.final boolean@Nullable StringGet the description of the current asynchronous operation.@Nullable IntegerGet the number of seconds the platform should wait before polling again.@Nullable OperationStategetState()Get the current state of an asynchronous operation.final inthashCode()booleanGet a boolean value indicating whether the current operation is a delete operation.@Nullable BooleanGet a boolean value indicating whether the instance is usable after a failed update or deprovisioning operation.@Nullable BooleanGet 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
@Deprecated public GetLastServiceOperationResponse(OperationState state, String description, @Nullable Boolean instanceUsable, @Nullable Boolean updateRepeatable, @Nullable Boolean deleteOperation) Deprecated.Construct a newGetLastServiceOperationResponse.- Parameters:
state- the current statedescription- the descriptioninstanceUsable- is the instance usableupdateRepeatable- is the update repeatabledeleteOperation- is delete operation
-
GetLastServiceOperationResponse
public GetLastServiceOperationResponse(@Nullable OperationState state, @Nullable String description, @Nullable Boolean instanceUsable, @Nullable Boolean updateRepeatable, @Nullable Boolean deleteOperation, @Nullable Integer retryAfter) Construct a newGetLastServiceOperationResponse.- Parameters:
state- the current statedescription- the descriptioninstanceUsable- is the instance usableupdateRepeatable- is the update repeatabledeleteOperation- is delete operationretryAfter- the number of seconds the platform should wait before polling again
-
-
Method Details
-
getState
Get the current state of an asynchronous operation.Since OSB API 2.7.
- 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.Since OSB API 2.16.
- Returns:
- the boolean value
-
isUpdateRepeatable
Get a boolean value indicating whether a failed update is repeatable.Since OSB API 2.16.
- 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
-
getRetryAfter
Get the number of seconds the platform should wait before polling again. This value is used to set the Retry-After HTTP header on the response, and is not included in the response body.Since OSB API 2.15.
- Returns:
- the number of seconds, or null if not provided
- See Also:
-
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, Integer)