Class GetServiceInstanceBindingRequest
java.lang.Object
org.springframework.cloud.servicebroker.model.ServiceBrokerRequest
org.springframework.cloud.servicebroker.model.binding.GetServiceInstanceBindingRequest
Details of a request to retrieve a service instance binding.
Objects of this type are constructed by the framework from the headers, path variables, query parameters and message body passed to the service broker by the platform.
- Author:
- Scott Frederick, Roy Clarkson
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Provides a fluent API for constructing aCreateServiceInstanceBindingRequest
. -
Field Summary
Fields inherited from class org.springframework.cloud.servicebroker.model.ServiceBrokerRequest
API_INFO_LOCATION_HEADER, apiInfoLocation, BINDING_ID_PATH_VARIABLE, INSTANCE_ID_PATH_VARIABLE, ORIGINATING_IDENTITY_HEADER, originatingIdentity, PLAN_ID_PARAMETER, PLATFORM_INSTANCE_ID_VARIABLE, platformInstanceId, REQUEST_IDENTITY_HEADER, requestIdentity, SERVICE_ID_PARAMETER
-
Constructor Summary
ConstructorDescriptionGetServiceInstanceBindingRequest
(String serviceInstanceId, String bindingId, String serviceDefinitionId, String planId, String platformInstanceId, String apiInfoLocation, Context originatingIdentity, String requestIdentity) Construct a newGetServiceInstanceBindingRequest
. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Create a builder that provides a fluent API for constructing a GetServiceInstanceBindingRequest.final boolean
Is another object type compatible with this object.final boolean
Get the ID of the service binding to create.Get the ID of the plan of the service instance.Get the ID of the service definition of the service instance.Get the ID of the service instance associated with the binding.final int
hashCode()
toString()
Methods inherited from class org.springframework.cloud.servicebroker.model.ServiceBrokerRequest
getApiInfoLocation, getOriginatingIdentity, getPlatformInstanceId, getRequestIdentity, setApiInfoLocation, setOriginatingIdentity, setPlatformInstanceId, setRequestIdentity
-
Constructor Details
-
GetServiceInstanceBindingRequest
public GetServiceInstanceBindingRequest(String serviceInstanceId, String bindingId, String serviceDefinitionId, String planId, String platformInstanceId, String apiInfoLocation, Context originatingIdentity, String requestIdentity) Construct a newGetServiceInstanceBindingRequest
.- Parameters:
serviceInstanceId
- the service instance IDbindingId
- the service binding IDserviceDefinitionId
- the service definition IDplanId
- the plan IDplatformInstanceId
- the platform instance IDapiInfoLocation
- location of the API info endpoint of the platform instanceoriginatingIdentity
- identity of the user that initiated the request from the platformrequestIdentity
- identity of the request sent from the platform
-
-
Method Details
-
getServiceInstanceId
Get the ID of the service instance associated with the binding. This value is assigned by the platform. It must be unique within the platform and can be used to correlate any resources associated with the service instance.This value is set from the :instance_id path element of the request from the platform.
- Returns:
- the service instance ID
-
getBindingId
Get the ID of the service binding to create. This value is assigned by the platform. It must be unique within the platform and can be used to correlate any resources associated with the service binding.This value is set from the :binding_id path element of the request from the platform.
- Returns:
- the service instance ID
-
getServiceDefinitionId
Get the ID of the service definition of the service instance.This value is set from the service_id request parameter of the request from the platform
- Returns:
- the service definition ID
-
getPlanId
Get the ID of the plan of the service instance.This value is set from the plan_id request parameter of the request from the platform.
- Returns:
- the plan ID
-
builder
Create a builder that provides a fluent API for constructing a GetServiceInstanceBindingRequest.This builder is provided to support testing of
ServiceInstanceBindingService
implementations.- Returns:
- the builder
-
equals
- Overrides:
equals
in classServiceBrokerRequest
-
canEqual
Description copied from class:ServiceBrokerRequest
Is another object type compatible with this object.- Overrides:
canEqual
in classServiceBrokerRequest
- Parameters:
other
- the other object- Returns:
- true of compatible
-
hashCode
public final int hashCode()- Overrides:
hashCode
in classServiceBrokerRequest
-
toString
- Overrides:
toString
in classServiceBrokerRequest
-