Class CreateServiceInstanceBindingRequest
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:
- S Greenberg, 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.instance.AsyncParameterizedServiceInstanceRequest
parameters
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
ConstructorDescriptionConstruct a newCreateServiceInstanceBindingRequest
.CreateServiceInstanceBindingRequest
(String serviceInstanceId, String serviceDefinitionId, String planId, String bindingId, ServiceDefinition serviceDefinition, Plan plan, boolean asyncAccepted, BindResource bindResource, Map<String, Object> parameters, Context context, String platformInstanceId, String apiInfoLocation, Context originatingIdentity, String requestIdentity) Construct a newCreateServiceInstanceBindingRequest
. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Create a builder that provides a fluent API for constructing a CreateServiceInstanceBindingRequest.final boolean
Is another object type compatible with this object.final boolean
Deprecated.Get the ID of the service binding to create.Get any details about the resource the binding is being created for (e.g.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()
void
setBindingId
(String bindingId) This method is intended to be used internally only; usebuilder()
to construct an object of this type and set all field values.void
This method is intended to be used internally only; usebuilder()
to construct an object of this type and set all field values.void
setServiceDefinition
(ServiceDefinition serviceDefinition) This method is intended to be used internally only; usebuilder()
to construct an object of this type and set all field values.void
setServiceInstanceId
(String serviceInstanceId) This method is intended to be used internally only; usebuilder()
to construct an object of this type and set all field values.toString()
Methods inherited from class org.springframework.cloud.servicebroker.model.instance.AsyncParameterizedServiceInstanceRequest
getContext, getParameters, getParameters
Methods inherited from class org.springframework.cloud.servicebroker.model.AsyncServiceBrokerRequest
isAsyncAccepted, setAsyncAccepted
Methods inherited from class org.springframework.cloud.servicebroker.model.ServiceBrokerRequest
getApiInfoLocation, getOriginatingIdentity, getPlatformInstanceId, getRequestIdentity, setApiInfoLocation, setOriginatingIdentity, setPlatformInstanceId, setRequestIdentity
-
Constructor Details
-
CreateServiceInstanceBindingRequest
public CreateServiceInstanceBindingRequest()Construct a newCreateServiceInstanceBindingRequest
. -
CreateServiceInstanceBindingRequest
public CreateServiceInstanceBindingRequest(String serviceInstanceId, String serviceDefinitionId, String planId, String bindingId, ServiceDefinition serviceDefinition, Plan plan, boolean asyncAccepted, BindResource bindResource, Map<String, Object> parameters, Context context, String platformInstanceId, String apiInfoLocation, Context originatingIdentity, String requestIdentity) Construct a newCreateServiceInstanceBindingRequest
.- Parameters:
serviceInstanceId
- the service instance IDserviceDefinitionId
- the service definition IDplanId
- the plan IDbindingId
- the service binding IDserviceDefinition
- the service definitionplan
- the planasyncAccepted
- does the platform accept asynchronous requestsbindResource
- the binding resourceparameters
- the parameterscontext
- the contextplatformInstanceId
- 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
-
setServiceInstanceId
This method is intended to be used internally only; usebuilder()
to construct an object of this type and set all field values.- Parameters:
serviceInstanceId
- the service instance ID associated with the binding
-
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
-
setBindingId
This method is intended to be used internally only; usebuilder()
to construct an object of this type and set all field values.- Parameters:
bindingId
- the ID of the service binding to create
-
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
-
getAppGuid
Deprecated.getBindResource()
provides platform-neutral access to binding resource detailsGet the GUID of the application the service instance will be bound to. Will be provided when users bind applications to service instances, or null if an application is not being bound.This value is set from the app_guid field in the body of the request from the platform.
- Returns:
- the app GUID
-
getBindResource
Get any details about the resource the binding is being created for (e.g. an application).This value is set from the bind_resource field in the body of the request from the platform.
- Returns:
- the binding resource details
-
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
-
setServiceDefinition
This method is intended to be used internally only; usebuilder()
to construct an object of this type and set all field values.- Parameters:
serviceDefinition
- the service definition of the service instance associated with the binding
-
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
-
setPlan
This method is intended to be used internally only; usebuilder()
to construct an object of this type and set all field values.- Parameters:
plan
- the plan of the service instance associated with the binding
-
builder
public static CreateServiceInstanceBindingRequest.CreateServiceInstanceBindingRequestBuilder builder()Create a builder that provides a fluent API for constructing a CreateServiceInstanceBindingRequest.This builder is provided to support testing of
ServiceInstanceBindingService
implementations.- Returns:
- the builder
-
equals
- Overrides:
equals
in classAsyncParameterizedServiceInstanceRequest
-
canEqual
Description copied from class:ServiceBrokerRequest
Is another object type compatible with this object.- Overrides:
canEqual
in classAsyncParameterizedServiceInstanceRequest
- Parameters:
other
- the other object- Returns:
- true of compatible
-
hashCode
public final int hashCode()- Overrides:
hashCode
in classAsyncParameterizedServiceInstanceRequest
-
toString
- Overrides:
toString
in classAsyncParameterizedServiceInstanceRequest
-
getBindResource()
provides platform-neutral access to binding resource details