Class CreateServiceInstanceAppBindingResponse
java.lang.Object
org.springframework.cloud.servicebroker.model.AsyncServiceBrokerResponse
org.springframework.cloud.servicebroker.model.binding.CreateServiceInstanceBindingResponse
org.springframework.cloud.servicebroker.model.binding.CreateServiceInstanceAppBindingResponse
Details of a response to a request to create a new service instance binding associated
with an application.
Objects of this type are constructed by the service broker application, and used to build the response to the platform.
- Author:
- S Greenberg, Josh Long, Scott Frederick, Roy Clarkson
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Provides a fluent API for constructing aCreateServiceInstanceAppBindingResponse
.Nested classes/interfaces inherited from class org.springframework.cloud.servicebroker.model.binding.CreateServiceInstanceBindingResponse
CreateServiceInstanceBindingResponse.CreateServiceInstanceBindingResponseBuilder
-
Field Summary
Fields inherited from class org.springframework.cloud.servicebroker.model.binding.CreateServiceInstanceBindingResponse
bindingExisted
Fields inherited from class org.springframework.cloud.servicebroker.model.AsyncServiceBrokerResponse
async, operation
-
Constructor Summary
ConstructorDescriptionConstruct a newCreateServiceInstanceAppBindingResponse
.CreateServiceInstanceAppBindingResponse
(boolean async, String operation, boolean bindingExisted, BindingMetadata metadata, Map<String, Object> credentials, String syslogDrainUrl, List<VolumeMount> volumeMounts, List<Endpoint> endpoints) Construct a newCreateServiceInstanceAppBindingResponse
. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Create a builder that provides a fluent API for constructing a CreateServiceInstanceAppBindingResponse.final boolean
Is another object type compatible with this object.final boolean
Get the credentials that the bound application can use to access the service.Get the set of endpoints that can be used by an application to connect to the service instance.Get the URL to which the platform should drain logs for the bound application.Get the set of volume mounts that can be used in an application container file system.final int
hashCode()
toString()
Methods inherited from class org.springframework.cloud.servicebroker.model.binding.CreateServiceInstanceBindingResponse
getMetadata, isBindingExisted
Methods inherited from class org.springframework.cloud.servicebroker.model.AsyncServiceBrokerResponse
getOperation, isAsync, validateOperationLength
-
Constructor Details
-
CreateServiceInstanceAppBindingResponse
public CreateServiceInstanceAppBindingResponse()Construct a newCreateServiceInstanceAppBindingResponse
. -
CreateServiceInstanceAppBindingResponse
public CreateServiceInstanceAppBindingResponse(boolean async, String operation, boolean bindingExisted, BindingMetadata metadata, Map<String, Object> credentials, String syslogDrainUrl, List<VolumeMount> volumeMounts, List<Endpoint> endpoints) Construct a newCreateServiceInstanceAppBindingResponse
.- Parameters:
async
- is the operation asynchronousoperation
- description of the operation being performedbindingExisted
- does the service binding already existmetadata
- the binding metadatacredentials
- the service binding credentialssyslogDrainUrl
- the syslog drain URLvolumeMounts
- the set of volume mountsendpoints
- the set of endpoints
-
-
Method Details
-
getCredentials
Get the credentials that the bound application can use to access the service. instance.- Returns:
- the service binding credentials
-
getSyslogDrainUrl
Get the URL to which the platform should drain logs for the bound application.- Returns:
- the syslog drain URL
-
getVolumeMounts
Get the set of volume mounts that can be used in an application container file system.- Returns:
- the set of volume mounts
-
getEndpoints
Get the set of endpoints that can be used by an application to connect to the service instance.- Returns:
- the set of endpoints
-
builder
public static CreateServiceInstanceAppBindingResponse.CreateServiceInstanceAppBindingResponseBuilder builder()Create a builder that provides a fluent API for constructing a CreateServiceInstanceAppBindingResponse.- Returns:
- the builder
-
equals
- Overrides:
equals
in classCreateServiceInstanceBindingResponse
-
canEqual
Description copied from class:AsyncServiceBrokerResponse
Is another object type compatible with this object.- Overrides:
canEqual
in classCreateServiceInstanceBindingResponse
- Parameters:
other
- the other object- Returns:
- true of compatible
-
hashCode
public final int hashCode()- Overrides:
hashCode
in classCreateServiceInstanceBindingResponse
-
toString
- Overrides:
toString
in classCreateServiceInstanceBindingResponse
-