Class DeleteServiceInstanceBindingRequest
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:
- K Rujos, Scott Frederick, Roy Clarkson
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Provides a fluent API for constructing aDeleteServiceInstanceBindingRequest
. -
Field Summary
Fields inherited from class org.springframework.cloud.servicebroker.model.AsyncServiceBrokerRequest
ASYNC_REQUEST_PARAMETER, asyncAccepted
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
ConstructorDescriptionDeleteServiceInstanceBindingRequest
(String serviceInstanceId, String serviceDefinitionId, String planId, String bindingId, ServiceDefinition serviceDefinition, Plan plan, boolean acceptsAsync, String platformInstanceId, String apiInfoLocation, Context originatingIdentity, String requestIdentity) Construct a newDeleteServiceInstanceBindingRequest
. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Create a builder that provides a fluent API for constructing a DeleteServiceInstanceBindingRequest.final boolean
Is another object type compatible with this object.final boolean
Get the ID of the service binding to delete.getPlan()
Get the plan of the service instance associated with the binding.Get the ID of the plan for to the service instance associated with the binding.Get the service definition of the service instance associated with the binding.Get the ID of the service definition for the service instance associated with the binding.Get the ID of the service instance associated with the binding.final int
hashCode()
boolean
Get the value indicating whether the platform allows the broker to complete the request asynchronously.toString()
Methods inherited from class org.springframework.cloud.servicebroker.model.AsyncServiceBrokerRequest
setAsyncAccepted
Methods inherited from class org.springframework.cloud.servicebroker.model.ServiceBrokerRequest
getApiInfoLocation, getOriginatingIdentity, getPlatformInstanceId, getRequestIdentity, setApiInfoLocation, setOriginatingIdentity, setPlatformInstanceId, setRequestIdentity
-
Constructor Details
-
DeleteServiceInstanceBindingRequest
public DeleteServiceInstanceBindingRequest(String serviceInstanceId, String serviceDefinitionId, String planId, String bindingId, ServiceDefinition serviceDefinition, Plan plan, boolean acceptsAsync, String platformInstanceId, String apiInfoLocation, Context originatingIdentity, String requestIdentity) Construct a newDeleteServiceInstanceBindingRequest
.- Parameters:
serviceInstanceId
- the service instance IDserviceDefinitionId
- the service definition IDplanId
- the plan IDbindingId
- the service binding IDserviceDefinition
- the service definitionplan
- the planacceptsAsync
- does the platform accept asynchronous requestsplatformInstanceId
- 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
-
isAsyncAccepted
public boolean isAsyncAccepted()Description copied from class:AsyncServiceBrokerRequest
Get the value indicating whether the platform allows the broker to complete the request asynchronously.This value is set from the async_accepted request parameter of the request from the platform.
A
false
value indicates that clients do not allow asynchronous processing of requests, atrue
value indicates that clients do allow asynchronous processing.- Overrides:
isAsyncAccepted
in classAsyncServiceBrokerRequest
- Returns:
- the boolean value
-
getServiceInstanceId
Get the ID of the service instance associated with the binding.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 delete.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 for the service instance associated with the binding. This will match one of the service definition IDs provided in theCatalog
.This value is set from the service_id field in the body of the request from the platform
- Returns:
- the service definition ID
-
getPlanId
Get the ID of the plan for to the service instance associated with the binding. This will match one of the plan IDs provided in theCatalog
within the specifiedServiceDefinition
.This value is set from the plan_id field in the body of the request from the platform.
- Returns:
- the plan ID
-
getServiceDefinition
Get the service definition of the service instance associated with the binding.The service definition is retrieved from the
Catalog
as a convenience.- Returns:
- the service definition
-
getPlan
Get the plan of the service instance associated with the binding.The plan is retrieved from the
Catalog
as a convenience.- Returns:
- the plan
-
builder
public static DeleteServiceInstanceBindingRequest.DeleteServiceInstanceBindingRequestBuilder builder()Create a builder that provides a fluent API for constructing a DeleteServiceInstanceBindingRequest.This builder is provided to support testing of
ServiceInstanceBindingService
implementations.- Returns:
- the builder
-
equals
- Overrides:
equals
in classAsyncServiceBrokerRequest
-
canEqual
Description copied from class:ServiceBrokerRequest
Is another object type compatible with this object.- Overrides:
canEqual
in classAsyncServiceBrokerRequest
- Parameters:
other
- the other object- Returns:
- true of compatible
-
hashCode
public final int hashCode()- Overrides:
hashCode
in classAsyncServiceBrokerRequest
-
toString
- Overrides:
toString
in classAsyncServiceBrokerRequest
-