Class DeleteServiceInstanceRequest
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 aDeleteServiceInstanceRequest
. -
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
ConstructorDescriptionDeleteServiceInstanceRequest
(String serviceInstanceId, String serviceDefinitionId, String planId, ServiceDefinition serviceDefinition, Plan plan, boolean asyncAccepted, String platformInstanceId, String apiInfoLocation, Context originatingIdentity, String requestIdentity) Construct a newDeleteServiceInstanceRequest
. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Create a builder that provides a fluent API for constructing a DeleteServiceInstanceRequest.final boolean
Is another object type compatible with this object.final boolean
getPlan()
Get the plan for the service definition to deleteGet the ID of the plan for to the service instance to delete.Get the service definition of the service to delete.Get the ID of the service definition for to the service instance to delete.Get the ID of the service instance to delete.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
-
DeleteServiceInstanceRequest
public DeleteServiceInstanceRequest(String serviceInstanceId, String serviceDefinitionId, String planId, ServiceDefinition serviceDefinition, Plan plan, boolean asyncAccepted, String platformInstanceId, String apiInfoLocation, Context originatingIdentity, String requestIdentity) Construct a newDeleteServiceInstanceRequest
.- Parameters:
serviceInstanceId
- the service instance IDserviceDefinitionId
- the service definition IDplanId
- the plan IDserviceDefinition
- the service definitionplan
- the planasyncAccepted
- 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
-
getServiceInstanceId
Get the ID of the service instance to delete. 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
-
getServiceDefinitionId
Get the ID of the service definition for to the service instance to delete. This will match one of the service definition IDs provided in theCatalog
.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 for to the service instance to delete. This will match one of the plan IDs provided in theCatalog
within the specifiedServiceDefinition
.This value is set from the plan_id request parameter of the request from the platform.
- Returns:
- the plan ID
-
getServiceDefinition
Get the service definition of the service to delete.The service definition is retrieved from the
Catalog
as a convenience.- Returns:
- the service definition
-
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
-
getPlan
Get the plan for the service definition to deleteThe plan is retrieved from the
Catalog
as a convenience.- Returns:
- the plan
-
builder
Create a builder that provides a fluent API for constructing a DeleteServiceInstanceRequest.This builder is provided to support testing of
ServiceInstanceService
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
-