Class UpdateServiceInstanceRequest.PreviousValues

java.lang.Object
org.springframework.cloud.servicebroker.model.instance.UpdateServiceInstanceRequest.PreviousValues
Enclosing class:
UpdateServiceInstanceRequest

public static class UpdateServiceInstanceRequest.PreviousValues extends Object
Information about the service instance prior to the update request.
  • Constructor Details

    • PreviousValues

      public PreviousValues(String serviceDefinitionId, String planId, String organizationId, String spaceId, MaintenanceInfo maintenanceInfo)
      Parameters:
      serviceDefinitionId - the ID of the service offering
      planId - the plan ID
      organizationId - the organization ID for the service instance
      spaceId - the space ID for the service instance
      maintenanceInfo - the maintenance info (possibly null)
  • Method Details

    • getServiceDefinitionId

      public String 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

      public String 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

      public String 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

      public String 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

      public MaintenanceInfo 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

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object