Class Context.ContextBaseBuilder<R extends Context,B extends Context.ContextBaseBuilder<R,B>>
java.lang.Object
org.springframework.cloud.servicebroker.model.Context.ContextBaseBuilder<R,B>
- Type Parameters:
R
- the type of ContextB
- the implementing Builder
- Direct Known Subclasses:
CloudFoundryContext.CloudFoundryContextBuilder
,KubernetesContext.KubernetesContextBuilder
,PlatformContext.PlatformContextBuilder
- Enclosing class:
- Context
protected abstract static class Context.ContextBaseBuilder<R extends Context,B extends Context.ContextBaseBuilder<R,B>>
extends Object
Builder class for Context.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract R
build()
Construct an implementingContext.ContextBaseBuilder
.protected abstract B
Construct a builder.Set the name of the platform as would be provided in the request from the platform.properties
(Map<String, Object> properties) Add a set of properties from the provided Map to the context properties as would be provided in the request from the platform.Add a key/value pair to the context properties as would be provided in the request from the platform.
-
Field Details
-
platform
-
properties
-
-
Constructor Details
-
ContextBaseBuilder
protected ContextBaseBuilder()Construct a new ContextBaseBuilder.
-
-
Method Details
-
createBuilder
Construct a builder.- Returns:
- the builder
-
platform
Set the name of the platform as would be provided in the request from the platform.- Parameters:
platform
- the platform name- Returns:
- the builder
-
properties
Add a set of properties from the provided Map to the context properties as would be provided in the request from the platform.- Parameters:
properties
- the properties to add- Returns:
- the builder
- See Also:
-
property
Add a key/value pair to the context properties as would be provided in the request from the platform.- Parameters:
key
- the parameter key to addvalue
- the parameter value to add- Returns:
- the builder
- See Also:
-
build
Construct an implementingContext.ContextBaseBuilder
.- Returns:
- the newly constructed
Context
implementation
-