java.lang.Object
org.springframework.cloud.servicebroker.model.catalog.MaintenanceInfo

public class MaintenanceInfo extends Object
Maintenance info available for a Plan. If this info is provided, a version string must be provided and platforms may use this when Provisioning or Updating a Service Instance.
Author:
Ilya V, Roy Clarkson
See Also:
  • Constructor Details

    • MaintenanceInfo

      public MaintenanceInfo()
      Constructs a new MaintenanceInfo.
    • MaintenanceInfo

      public MaintenanceInfo(String version, String description)
      Constructs a new MaintenanceInfo.
      Parameters:
      version - maintenance version (conforming to a semantic version 2.0)
      description - description of the impact of the maintenance update
      Throws:
      IllegalArgumentException - if the provided to the builder version does not comply to semantic versioning v2 specification
  • Method Details

    • getVersion

      public String getVersion()
      The version of the maintenance update available for a plan.
      Returns:
      the version
    • getDescription

      public String getDescription()
      The description of the impact of the maintenance update.
      Returns:
      the description
    • builder

      public static MaintenanceInfo.MaintenanceInfoBuilder builder()
      Creates a builder that provides a fluent API for constructing a MaintenanceInfo.
      Returns:
      the builder
    • equals

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