Class CreateServiceInstanceResponse
java.lang.Object
org.springframework.cloud.servicebroker.model.AsyncServiceBrokerResponse
org.springframework.cloud.servicebroker.model.instance.CreateServiceInstanceResponse
Details of a response to a request to create a new 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
- See Also:
-
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
ConstructorDescriptionConstruct a newCreateServiceInstanceResponse
.CreateServiceInstanceResponse
(boolean async, String operation, String dashboardUrl, boolean instanceExisted, ServiceInstanceMetadata metadata) Construct a newCreateServiceInstanceResponse
. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Create a builder that provides a fluent API for constructing a CreateServiceInstanceResponse.boolean
Is another object type compatible with this object.final boolean
Get the URL of a web-based management user interface for the service instance.Get object containing metadata for the service instance.final int
hashCode()
boolean
Get the boolean value indicating whether the service instance already exists with the same parameters as the requested service instance.toString()
Methods inherited from class org.springframework.cloud.servicebroker.model.AsyncServiceBrokerResponse
getOperation, isAsync, validateOperationLength
-
Constructor Details
-
CreateServiceInstanceResponse
public CreateServiceInstanceResponse()Construct a newCreateServiceInstanceResponse
. -
CreateServiceInstanceResponse
public CreateServiceInstanceResponse(boolean async, String operation, String dashboardUrl, boolean instanceExisted, ServiceInstanceMetadata metadata) Construct a newCreateServiceInstanceResponse
.- Parameters:
async
- is the operation asynchronousoperation
- description of the operation being performeddashboardUrl
- the dashboard URLinstanceExisted
- true if the instance existsmetadata
- containing metadata for the service instance
-
-
Method Details
-
getDashboardUrl
Get the URL of a web-based management user interface for the service instance.- Returns:
- the dashboard URL, or null if not provided
-
isInstanceExisted
public boolean isInstanceExisted()Get the boolean value indicating whether the service instance already exists with the same parameters as the requested service instance.- Returns:
- the boolean value
-
getMetadata
Get object containing metadata for the service instance.- Returns:
- the service instance metadata
-
builder
Create a builder that provides a fluent API for constructing a CreateServiceInstanceResponse.- Returns:
- the builder
-
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 final int hashCode()- Overrides:
hashCode
in classAsyncServiceBrokerResponse
-
toString
- Overrides:
toString
in classAsyncServiceBrokerResponse
-