Class BackingApplication.BackingApplicationBuilder
java.lang.Object
org.springframework.cloud.appbroker.deployer.BackingApplication.BackingApplicationBuilder
- Enclosing class:
- BackingApplication
Provides a fluent API for constructing a BackingApplication.
-
Method Summary
Modifier and TypeMethodDescriptionbackingApplication
(BackingApplication backingApplication) Build a backing application based on another application definition.build()
Construct aBackingApplication
from the provided values.environment
(String key, String value) Environment variables to be set for the application.environment
(Map<String, Object> environment) Environment variables to be set for the application.The name of the application.parameterTransformers
(List<ParametersTransformerSpec> parameterTransformers) Parameter transformers for the application.parameterTransformers
(ParametersTransformerSpec... parameterTransformers) Parameter transformers for the application.The path to the application.properties
(Map<String, String> properties) Properties that describe the application.Properties that describe the application.services
(List<ServicesSpec> services) Services required by the application.services
(ServicesSpec... services) Services required by the application.
-
Method Details
-
backingApplication
public BackingApplication.BackingApplicationBuilder backingApplication(BackingApplication backingApplication) Build a backing application based on another application definition.- Parameters:
backingApplication
- the backing application from which to copy properties- Returns:
- the builder
-
name
The name of the application.- Parameters:
name
- the name- Returns:
- the builder
-
path
The path to the application.- Parameters:
path
- the path- Returns:
- the builder
-
property
Properties that describe the application.- Parameters:
key
- the property keyvalue
- the property value- Returns:
- the builder
-
properties
Properties that describe the application.- Parameters:
properties
- the properties- Returns:
- the builder
-
environment
Environment variables to be set for the application.- Parameters:
key
- the env var keyvalue
- the env var value- Returns:
- the builder
-
environment
Environment variables to be set for the application.- Parameters:
environment
- the env vars- Returns:
- the builder
-
services
Services required by the application.- Parameters:
services
- the services- Returns:
- the builder
-
services
Services required by the application.- Parameters:
services
- the services- Returns:
- the builder
-
parameterTransformers
public BackingApplication.BackingApplicationBuilder parameterTransformers(List<ParametersTransformerSpec> parameterTransformers) Parameter transformers for the application.- Parameters:
parameterTransformers
- the parameter transformers- Returns:
- the builder
-
parameterTransformers
public BackingApplication.BackingApplicationBuilder parameterTransformers(ParametersTransformerSpec... parameterTransformers) Parameter transformers for the application.- Parameters:
parameterTransformers
- the parameter transformers- Returns:
- the builder
-
build
Construct aBackingApplication
from the provided values.- Returns:
- the newly constructed BackingApplication
-