Class UpdateServiceInstanceRequest
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 SummaryNested ClassesModifier and TypeClassDescriptionstatic classInformation about the service instance prior to the update request.static final classProvides a fluent API for constructing aUpdateServiceInstanceRequest.
- 
Field SummaryFields inherited from class org.springframework.cloud.servicebroker.model.instance.AsyncParameterizedServiceInstanceRequestparametersFields inherited from class org.springframework.cloud.servicebroker.model.AsyncServiceBrokerRequestASYNC_REQUEST_PARAMETER, asyncAcceptedFields inherited from class org.springframework.cloud.servicebroker.model.ServiceBrokerRequestAPI_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 SummaryConstructorsConstructorDescriptionConstruct a newUpdateServiceInstanceRequestUpdateServiceInstanceRequest(String serviceDefinitionId, String serviceInstanceId, String planId, ServiceDefinition serviceDefinition, Plan plan, UpdateServiceInstanceRequest.PreviousValues previousValues, Map<String, Object> parameters, Context context, boolean asyncAccepted, String platformInstanceId, String apiInfoLocation, Context originatingIdentity, String requestIdentity, MaintenanceInfo maintenanceInfo) Construct a newUpdateServiceInstanceRequest
- 
Method SummaryModifier and TypeMethodDescriptionbuilder()Create a builder that provides a fluent API for constructing an UpdateServiceInstanceRequest.final booleanIs another object type compatible with this objectfinal booleanGet the maintenance info of the service instance to update.getPlan()Get the plan of the service instance to updateGet the ID of the plan for to the service instance to update.Get information about the service instance prior to the update request.Get the service definition of the service instance to update.Get the ID of the service definition for to the service instance to update.Get the ID of the service instance to update.final inthashCode()voidFor internal use only.voidsetServiceDefinition(ServiceDefinition serviceDefinition) This method is intended to be used internally only; usebuilder()to construct an object of this type and set all field values.voidsetServiceInstanceId(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.AsyncParameterizedServiceInstanceRequestgetContext, getParameters, getParametersMethods inherited from class org.springframework.cloud.servicebroker.model.AsyncServiceBrokerRequestisAsyncAccepted, setAsyncAcceptedMethods inherited from class org.springframework.cloud.servicebroker.model.ServiceBrokerRequestgetApiInfoLocation, getOriginatingIdentity, getPlatformInstanceId, getRequestIdentity, setApiInfoLocation, setOriginatingIdentity, setPlatformInstanceId, setRequestIdentity
- 
Constructor Details- 
UpdateServiceInstanceRequestpublic UpdateServiceInstanceRequest()Construct a newUpdateServiceInstanceRequest
- 
UpdateServiceInstanceRequestpublic UpdateServiceInstanceRequest(String serviceDefinitionId, String serviceInstanceId, String planId, ServiceDefinition serviceDefinition, Plan plan, UpdateServiceInstanceRequest.PreviousValues previousValues, Map<String, Object> parameters, Context context, boolean asyncAccepted, String platformInstanceId, String apiInfoLocation, Context originatingIdentity, String requestIdentity, MaintenanceInfo maintenanceInfo) Construct a newUpdateServiceInstanceRequest- Parameters:
- serviceDefinitionId- the service definition ID
- serviceInstanceId- the service instance ID
- planId- the plan ID
- serviceDefinition- the service definition
- plan- the plan
- previousValues- the previous values
- parameters- the parameters
- context- the context
- asyncAccepted- does the platform accept asynchronous requests
- platformInstanceId- the platform instance ID
- apiInfoLocation- location of the API info endpoint of the platform instance
- originatingIdentity- identity of the user that initiated the request from the platform
- requestIdentity- identity of the request sent from the platform
- maintenanceInfo- the maintenance info (possibly null)
 
 
- 
- 
Method Details- 
getServiceInstanceIdGet the ID of the service instance to update. 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
 
- 
setServiceInstanceIdThis 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 to update
 
- 
getServiceDefinitionIdGet the ID of the service definition for to the service instance to update. 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
 
- 
getPlanIdGet the ID of the plan for to the service instance to update. This will match one of the plan IDs provided in theCatalogwithin the specifiedServiceDefinition.This value is set from the plan_id field in the body of the request from the platform. - Returns:
- the plan ID
 
- 
getPreviousValuesGet information about the service instance prior to the update request.This value is set from the previous_values field in the body of the request from the platform. - Returns:
- the prior service instance details
 
- 
getServiceDefinitionGet the service definition of the service instance to update.The service definition is retrieved from the Catalogas a convenience.- Returns:
- the service definition
 
- 
setServiceDefinitionThis 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 to update
 
- 
getPlanGet the plan of the service instance to updateThe plan is retrieved from the Catalogas a convenience.- Returns:
- the plan
 
- 
setPlanFor internal use only. Usebuilder()to construct an object of this type and set all field values.- Parameters:
- plan- the plan of the service instance to update
 
- 
getMaintenanceInfoGet the maintenance info of the service instance to update. This value is assigned by the platform.This value is set from the :maintenance_info field in the body of the request from the platform. - Returns:
- a MaintenanceInfo or null if none was provided
 
- 
builderCreate a builder that provides a fluent API for constructing an UpdateServiceInstanceRequest.This builder is provided to support testing of ServiceInstanceServiceimplementations.- Returns:
- the builder
 
- 
equals- Overrides:
- equalsin class- AsyncParameterizedServiceInstanceRequest
 
- 
canEqualDescription copied from class:ServiceBrokerRequestIs another object type compatible with this object- Overrides:
- canEqualin class- AsyncParameterizedServiceInstanceRequest
- Parameters:
- other- the other object
- Returns:
- true of compatible
 
- 
hashCodepublic final int hashCode()- Overrides:
- hashCodein class- AsyncParameterizedServiceInstanceRequest
 
- 
toString- Overrides:
- toStringin class- AsyncParameterizedServiceInstanceRequest
 
 
-