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 @Nullable OperationState getState()
      Get the current state of an asynchronous operation.

      Since OSB API 2.7.

      Returns:
      the operation state
    • getDescription

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

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

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

      public @Nullable Integer 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

      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