Class AsyncParameterizedServiceInstanceRequest
- Direct Known Subclasses:
CreateServiceInstanceBindingRequest,CreateServiceInstanceRequest,UpdateServiceInstanceRequest
- Author:
- Scott Frederick, Roy Clarkson
-
Field Summary
FieldsFields inherited from class org.springframework.cloud.servicebroker.model.AsyncServiceBrokerRequest
ASYNC_REQUEST_PARAMETER, asyncAcceptedFields 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
ConstructorsModifierConstructorDescriptionprotectedConstruct a newAsyncParameterizedServiceInstanceRequest.protectedAsyncParameterizedServiceInstanceRequest(Map<String, Object> parameters, Context context, boolean asyncAccepted, String platformInstanceId, String apiInfoLocation, Context originatingIdentity, String requestIdentity) Construct a newAsyncParameterizedServiceInstanceRequest. -
Method Summary
Modifier and TypeMethodDescriptionbooleanIs another object type compatible with this object.booleanGet the platform-specific contextual information for the service instance.Get any parameters passed by the user, with the user-supplied JSON structure converted to a Map.<T> TgetParameters(Class<T> cls) Get any parameters passed by the user, with the user-supplied JSON structure mapped to fields of the specified object type.inthashCode()toString()Methods inherited from class org.springframework.cloud.servicebroker.model.AsyncServiceBrokerRequest
isAsyncAccepted, setAsyncAcceptedMethods inherited from class org.springframework.cloud.servicebroker.model.ServiceBrokerRequest
getApiInfoLocation, getOriginatingIdentity, getPlatformInstanceId, getRequestIdentity, setApiInfoLocation, setOriginatingIdentity, setPlatformInstanceId, setRequestIdentity
-
Field Details
-
parameters
-
-
Constructor Details
-
AsyncParameterizedServiceInstanceRequest
protected AsyncParameterizedServiceInstanceRequest()Construct a newAsyncParameterizedServiceInstanceRequest. -
AsyncParameterizedServiceInstanceRequest
protected AsyncParameterizedServiceInstanceRequest(Map<String, Object> parameters, Context context, boolean asyncAccepted, String platformInstanceId, String apiInfoLocation, Context originatingIdentity, String requestIdentity) Construct a newAsyncParameterizedServiceInstanceRequest.- Parameters:
parameters- the parameterscontext- the contextasyncAccepted- 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
-
getParameters
Get any parameters passed by the user, with the user-supplied JSON structure converted to a Map.This value is set from the parameters field in the body of the request from the platform.
The platform will pass the user-supplied JSON structure to the service broker as-is. The service broker is responsible for validating the contents of the parameters for correctness or applicability.
- Returns:
- the populated Map
-
getParameters
Get any parameters passed by the user, with the user-supplied JSON structure mapped to fields of the specified object type.This value is set from the parameters field in the body of the request from the platform.
An object of the specified type will be instantiated, and value from the parameters JSON will be mapped to the object using Java Bean mapping rules.
The platform will pass the user-supplied JSON structure to the service broker as-is. The service broker is responsible for validating the contents of the parameters for correctness or applicability.
- Type Parameters:
T- the type of the object to instantiate and populate- Parameters:
cls- theClassrepresenting the type of object to map the parameter key/value pairs to- Returns:
- the instantiated and populated object
-
getContext
Get the platform-specific contextual information for the service instance.This value is set from the context field in the body of the request from the platform.
- Returns:
- the contextual information
-
equals
- Overrides:
equalsin classAsyncServiceBrokerRequest
-
canEqual
Description copied from class:ServiceBrokerRequestIs another object type compatible with this object.- Overrides:
canEqualin classAsyncServiceBrokerRequest- Parameters:
other- the other object- Returns:
- true of compatible
-
hashCode
public int hashCode()- Overrides:
hashCodein classAsyncServiceBrokerRequest
-
toString
- Overrides:
toStringin classAsyncServiceBrokerRequest
-