Class CreateServiceInstanceBindingResponse
java.lang.Object
org.springframework.cloud.servicebroker.model.AsyncServiceBrokerResponse
org.springframework.cloud.servicebroker.model.binding.CreateServiceInstanceBindingResponse
- Direct Known Subclasses:
CreateServiceInstanceAppBindingResponse
,CreateServiceInstanceRouteBindingResponse
Details of a response to a service instance binding create request.
Service brokers will typically construct one of the subtypes of this class to build a response.
- Author:
- Scott Frederick, Roy Clarkson
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Provides a fluent API for constructing aCreateServiceInstanceResponse
. -
Field Summary
Fields inherited from class org.springframework.cloud.servicebroker.model.AsyncServiceBrokerResponse
async, operation
-
Constructor Summary
ModifierConstructorDescriptionprotected
CreateServiceInstanceBindingResponse
(boolean async, String operation, boolean bindingExisted, BindingMetadata metadata) Construct a newCreateServiceInstanceBindingResponse
. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Is another object type compatible with this object.boolean
Get the service instance binding metadata.int
hashCode()
boolean
Get the boolean value indicating whether the service binding already exists with the same parameters as the requested service binding.toString()
Methods inherited from class org.springframework.cloud.servicebroker.model.AsyncServiceBrokerResponse
getOperation, isAsync, validateOperationLength
-
Field Details
-
bindingExisted
protected final boolean bindingExisted
-
-
Constructor Details
-
CreateServiceInstanceBindingResponse
protected CreateServiceInstanceBindingResponse(boolean async, String operation, boolean bindingExisted, BindingMetadata metadata) Construct a newCreateServiceInstanceBindingResponse
.- Parameters:
async
- is the operation asynchronousoperation
- description of the operation being performedbindingExisted
- does the service binding already exist with identical parametersmetadata
- the service instance binding metadata
-
-
Method Details
-
isBindingExisted
public boolean isBindingExisted()Get the boolean value indicating whether the service binding already exists with the same parameters as the requested service binding. If the request is for the same binding id, but with different parameters, the implementor should throw aServiceInstanceBindingExistsException
instead.- Returns:
- the boolean value
-
getMetadata
Get the service instance binding metadata.- Returns:
- the metadata
-
equals
- Overrides:
equals
in classAsyncServiceBrokerResponse
-
canEqual
Description copied from class:AsyncServiceBrokerResponse
Is another object type compatible with this object.- Overrides:
canEqual
in classAsyncServiceBrokerResponse
- Parameters:
other
- the other object- Returns:
- true of compatible
-
hashCode
public int hashCode()- Overrides:
hashCode
in classAsyncServiceBrokerResponse
-
toString
- Overrides:
toString
in classAsyncServiceBrokerResponse
-