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
Nested ClassesModifier and TypeClassDescriptionstatic final classProvides a fluent API for constructing aCreateServiceInstanceResponse. -
Field Summary
Fields inherited from class org.springframework.cloud.servicebroker.model.AsyncServiceBrokerResponse
async, operation -
Constructor Summary
ConstructorsConstructorDescriptionConstruct a newCreateServiceInstanceResponseCreateServiceInstanceResponse(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.booleanIs another object type compatible with this objectfinal booleanGet the URL of a web-based management user interface for the service instance.Get object containing metadata for the service instancefinal inthashCode()booleanGet 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:
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 final int hashCode()- Overrides:
hashCodein classAsyncServiceBrokerResponse
-
toString
- Overrides:
toStringin classAsyncServiceBrokerResponse
-