Class GetLastServiceOperationResponse

java.lang.Object
org.springframework.cloud.servicebroker.model.instance.GetLastServiceOperationResponse

public class GetLastServiceOperationResponse extends Object
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:
  • Constructor Details

  • Method Details

    • getState

      public OperationState getState()
      Get the current state of an asynchronous operation.
      Returns:
      the operation state
    • getDescription

      public String getDescription()
      Get the description of the current asynchronous operation.
      Returns:
      the description, or null if not provided
    • isInstanceUsable

      public Boolean isInstanceUsable()
      Get a boolean value indicating whether the instance is usable after a failed update or deprovisioning operation.
      Returns:
      the boolean value
    • isUpdateRepeatable

      public Boolean 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

      public final boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object