Class ComposeConfig.Builder
java.lang.Object
io.spring.initializr.generator.container.docker.compose.ComposeConfig.Builder
- Enclosing class:
ComposeConfig
Builder for
ComposeConfig.- Author:
- Moritz Halbritter
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds theComposeConfiginstance.static ComposeConfig.BuilderforContent(String content) Create a builder for a config with inline content.static ComposeConfig.BuilderforEnvironment(String environment) Create a builder for a config backed by an environment variable.static ComposeConfig.BuilderCreate a builder for an external config.static ComposeConfig.BuilderCreate a builder for a config backed by a file.Set the name of the config.
-
Method Details
-
name
Set the name of the config.- Parameters:
name- the name- Returns:
- this for method chaining
-
build
-
forFile
Create a builder for a config backed by a file.- Parameters:
file- the file- Returns:
- the builder
-
forEnvironment
Create a builder for a config backed by an environment variable.- Parameters:
environment- the environment variable- Returns:
- the builder
-
forContent
Create a builder for a config with inline content.- Parameters:
content- the content- Returns:
- the builder
-
forExternal
Create a builder for an external config.- Returns:
- the builder
-