Class MaintenanceInfo
java.lang.Object
org.springframework.cloud.servicebroker.model.catalog.MaintenanceInfo
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:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Provides a fluent API for constructing a MaintenanceInfo. -
Constructor Summary
ConstructorDescriptionConstructs a newMaintenanceInfo
.MaintenanceInfo
(String version, String description) Constructs a newMaintenanceInfo
. -
Method Summary
-
Constructor Details
-
MaintenanceInfo
public MaintenanceInfo()Constructs a newMaintenanceInfo
. -
MaintenanceInfo
Constructs a newMaintenanceInfo
.- 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
The version of the maintenance update available for a plan.- Returns:
- the version
-
getDescription
The description of the impact of the maintenance update.- Returns:
- the description
-
builder
Creates a builder that provides a fluent API for constructing a MaintenanceInfo.- Returns:
- the builder
-
equals
-
hashCode
public int hashCode() -
toString
-