Class UpdateServiceInstanceRequest.PreviousValues
java.lang.Object
org.springframework.cloud.servicebroker.model.instance.UpdateServiceInstanceRequest.PreviousValues
- Enclosing class:
- UpdateServiceInstanceRequest
Information about the service instance prior to the update request.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Provides a fluent API for constructing aUpdateServiceInstanceRequest.PreviousValues
. -
Constructor Summary
ConstructorDescriptionPreviousValues
(String serviceDefinitionId, String planId, String organizationId, String spaceId, MaintenanceInfo maintenanceInfo) Construct a newUpdateServiceInstanceRequest.PreviousValues
. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Create a builder that provides a fluent API for constructing a PreviousValues.boolean
Get the maintenance info to the update request.Get the ID of the organization prior to the update request.Get the ID of the plan prior to the update request.Get the ID of the service offering prior to the update request.Get the ID of the space prior to the update request.int
hashCode()
toString()
-
Constructor Details
-
PreviousValues
public PreviousValues(String serviceDefinitionId, String planId, String organizationId, String spaceId, MaintenanceInfo maintenanceInfo) Construct a newUpdateServiceInstanceRequest.PreviousValues
.- Parameters:
serviceDefinitionId
- the ID of the service offeringplanId
- the plan IDorganizationId
- the organization ID for the service instancespaceId
- the space ID for the service instancemaintenanceInfo
- the maintenance info (possibly null)
-
-
Method Details
-
getServiceDefinitionId
Get the ID of the service offering prior to the update request.This value is set from the service_id field in the previous_values field in the body of the request from the platform.
- Returns:
- the ID of the service offering
-
getPlanId
Get the ID of the plan prior to the update request.This value is set from the plan_id field in the previous_values field in the body of the request from the platform.
- Returns:
- the plan ID
-
getOrganizationId
Get the ID of the organization prior to the update request.This value is set from the organization_id field in the previous_values field in the body of the request from the platform.
- Returns:
- organization ID for the service instance
-
getSpaceId
Get the ID of the space prior to the update request.This value is set from the space_id field in the previous_values field in the body of the request from the platform.
- Returns:
- the space ID for the service instance
-
builder
Create a builder that provides a fluent API for constructing a PreviousValues.This builder is provided to support testing of
ServiceInstanceService
implementations.- Returns:
- the builder
-
getMaintenanceInfo
Get the maintenance info to the update request.This value is set from the maintenance_info field in the previous_values field in the body of the request from the platform.
- Returns:
- the maintenance info
-
equals
-
hashCode
public int hashCode() -
toString
-