Class GetLastServiceOperationRequest
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
Nested ClassesModifier and TypeClassDescriptionstatic final classProvides a fluent API for constructing aGetLastServiceOperationRequest. -
Field Summary
FieldsFields 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
ConstructorsConstructorDescriptionGetLastServiceOperationRequest(@Nullable String serviceInstanceId, @Nullable String serviceDefinitionId, @Nullable String planId, @Nullable String operation, @Nullable String platformInstanceId, @Nullable String apiInfoLocation, @Nullable Context originatingIdentity, @Nullable String requestIdentity) Construct a newGetLastServiceOperationRequest. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Create a builder that provides a fluent API for constructing a GetLastServiceOperationRequestBuilder.final booleanIs another object type compatible with this object.final booleanGet the value of the operation field previously provided to the platform.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.final inthashCode()toString()Methods inherited from class org.springframework.cloud.servicebroker.model.ServiceBrokerRequest
getApiInfoLocation, getOriginatingIdentity, getPlatformInstanceId, getRequestIdentity, setApiInfoLocation, setOriginatingIdentity, setPlatformInstanceId, setRequestIdentity
-
Field Details
-
operation
The operation identifier.
-
-
Constructor Details
-
GetLastServiceOperationRequest
public GetLastServiceOperationRequest(@Nullable String serviceInstanceId, @Nullable String serviceDefinitionId, @Nullable String planId, @Nullable String operation, @Nullable String platformInstanceId, @Nullable String apiInfoLocation, @Nullable Context originatingIdentity, @Nullable String requestIdentity) Construct a newGetLastServiceOperationRequest.- Parameters:
serviceInstanceId- the service instance IDserviceDefinitionId- the service definition IDplanId- the plan IDoperation- description of the operation being performedplatformInstanceId- 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.This value is set from the :instance_id path element of the request from the platform.
Since OSB API 2.7.
- 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
Since OSB API 2.9.
- 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.
Since OSB API 2.9.
- Returns:
- the plan ID
-
getOperation
Get the value of the operation field previously provided to the platform.Service brokers can optionally return an operation value to the platform in the response from an async create, update, or delete request. The platform will pass this value back to the broker if provided.
This value is set from the operation request parameter of the request from the platform.
Since OSB API 2.9.
- Returns:
- the operation value
-
builder
Create a builder that provides a fluent API for constructing a GetLastServiceOperationRequestBuilder.This builder is provided to support testing of
ServiceInstanceServiceimplementations.- Returns:
- the builder
-
equals
- Overrides:
equalsin classServiceBrokerRequest
-
canEqual
Description copied from class:ServiceBrokerRequestIs another object type compatible with this object.- Overrides:
canEqualin classServiceBrokerRequest- Parameters:
other- the other object- Returns:
- true of compatible
-
hashCode
public final int hashCode()- Overrides:
hashCodein classServiceBrokerRequest
-
toString
- Overrides:
toStringin classServiceBrokerRequest
-