Class MaintenanceInfo.MaintenanceInfoBuilder

java.lang.Object
org.springframework.cloud.servicebroker.model.catalog.MaintenanceInfo.MaintenanceInfoBuilder
Enclosing class:
MaintenanceInfo

public static final class MaintenanceInfo.MaintenanceInfoBuilder extends Object
Provides a fluent API for constructing a MaintenanceInfo.
  • 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 changes
      minor - minor version when you add functionality in a backwards-compatible manner
      patch - patch version when you make backwards-compatible bug fixes
      extension - additional labels for pre-release and build metadata
      Returns:
      the builder instance
    • description

      public MaintenanceInfo.MaintenanceInfoBuilder description(String description)
      The description of the impact of the maintenance update.
      Parameters:
      description - the description
      Returns:
      the builder instance
    • build

      public MaintenanceInfo build()
      Constructs a MaintenanceInfo 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