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
Nested ClassesModifier and TypeClassDescriptionstatic final classProvides a fluent API for constructing aCreateServiceInstanceResponse. -
Field Summary
FieldsFields inherited from class org.springframework.cloud.servicebroker.model.AsyncServiceBrokerResponse
async, operation -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreateServiceInstanceBindingResponse(boolean async, String operation, boolean bindingExisted, BindingMetadata metadata) Construct a newCreateServiceInstanceBindingResponse -
Method Summary
Modifier and TypeMethodDescriptionbooleanIs another object type compatible with this objectbooleanGet the service instance binding metadatainthashCode()booleanGet 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 aServiceInstanceBindingExistsExceptioninstead.- Returns:
- the boolean value
-
getMetadata
Get the service instance binding metadata- Returns:
- the metadata
-
equals
- Overrides:
equalsin classAsyncServiceBrokerResponse
-
canEqual
Description copied from class:AsyncServiceBrokerResponseIs another object type compatible with this object- Overrides:
canEqualin classAsyncServiceBrokerResponse- Parameters:
other- the other object- Returns:
- true of compatible
-
hashCode
public int hashCode()- Overrides:
hashCodein classAsyncServiceBrokerResponse
-
toString
- Overrides:
toStringin classAsyncServiceBrokerResponse
-