Class MaintenanceInfo.MaintenanceInfoBuilder
java.lang.Object
org.springframework.cloud.servicebroker.model.catalog.MaintenanceInfo.MaintenanceInfoBuilder
- Enclosing class:
- MaintenanceInfo
Provides a fluent API for constructing a MaintenanceInfo.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Constructs aMaintenanceInfofrom the provided values.description(String description) The description of the impact of the maintenance update.The version of the maintenance update available for a plan.The version of the maintenance update available for a plan.
-
Method Details
-
version
The version of the maintenance update available for a plan.- Parameters:
version- the version- Returns:
- the builder instance
-
version
public MaintenanceInfo.MaintenanceInfoBuilder version(int major, int minor, int patch, String extension) The version of the maintenance update available for a plan.- Parameters:
major- MAJOR version when you make incompatible API changesminor- MINOR version when you add functionality in a backwards-compatible mannerpatch- PATCH version when you make backwards-compatible bug fixesextension- additional labels for pre-release and build metadata- Returns:
- the builder instance
-
description
The description of the impact of the maintenance update.- Parameters:
description- the description- Returns:
- the builder instance
-
build
Constructs aMaintenanceInfofrom the provided values.- Returns:
- the newly constructed MaintenanceInfo
- Throws:
IllegalArgumentException- if the provided to the builder version does not comply to semantic versioning v2 specification
-