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 definitionbuild()
Construct aBackingApplication
from the provided values.environment
(String key, String value) Environment variables to be set for the applicationenvironment
(Map<String, Object> environment) Environment variables to be set for the applicationThe name of the applicationparameterTransformers
(List<ParametersTransformerSpec> parameterTransformers) Parameter transformers for the applicationparameterTransformers
(ParametersTransformerSpec... parameterTransformers) Parameter transformers for the applicationThe path to the applicationproperties
(Map<String, String> properties) Properties that describe the applicationProperties that describe the applicationservices
(List<ServicesSpec> services) Services required by the applicationservices
(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
-