@NotThreadSafe public static class ProjectModel.Builder extends Object
ProjectModel instances.| Modifier and Type | Method and Description |
|---|---|
ProjectModel.Builder |
addBuild(ExecutionEnvironment environment,
String command)
Adds the supplied build command.
|
ProjectModel.Builder |
addBuild(Map<ExecutionEnvironment,String> build)
Adds the supplied build commands.
|
ProjectModel.Builder |
addBuild(Set<String> labels,
String command)
Adds the supplied build command.
|
ProjectModel.Builder |
addBuild(String command)
Adds the supplied build command.
|
ProjectModel.Builder |
addEnvironment(ExecutionEnvironment environment)
Adds the supplied environment.
|
ProjectModel.Builder |
addEnvironment(String... labels)
Adds the supplied environment.
|
ProjectModel.Builder |
addEnvironments(Collection<ExecutionEnvironment> environments)
Adds the supplied environments.
|
ProjectModel.Builder |
addTask(String taskId,
String command)
Adds the supplied task command.
|
ProjectModel.Builder |
addTask(String taskId,
TaskCommands commands)
Adds the supplied task command.
|
ProjectModel |
build()
Builds the
ProjectModel instance. |
@NonNull public ProjectModel.Builder addEnvironments(@NonNull Collection<ExecutionEnvironment> environments)
environments - the environments to add.this for method chaining.@NonNull public ProjectModel.Builder addEnvironment(@NonNull ExecutionEnvironment environment)
environment - the environment to add.this for method chaining.@NonNull public ProjectModel.Builder addEnvironment(String... labels)
labels - the labels of the environment to add.this for method chaining.@NonNull public ProjectModel.Builder addBuild(Map<ExecutionEnvironment,String> build)
build - the build commands.this for method chaining.@NonNull public ProjectModel.Builder addBuild(String command)
command - the build command.this for method chaining.@NonNull public ProjectModel.Builder addBuild(Set<String> labels, String command)
labels - the environment labels.command - the build command.this for method chaining.@NonNull public ProjectModel.Builder addBuild(ExecutionEnvironment environment, String command)
environment - the environment.command - the build command.this for method chaining.@NonNull public ProjectModel.Builder addTask(String taskId, String command)
taskId - the task id.command - the task command.this for method chaining.@NonNull public ProjectModel.Builder addTask(String taskId, TaskCommands commands)
taskId - the task id.commands - the task commands.this for method chaining.@NonNull public ProjectModel build()
ProjectModel instance.ProjectModel instance.Copyright © 2004-2013. All Rights Reserved.