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 aMaintenanceInfo
from 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 aMaintenanceInfo
from 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
-