@NotThreadSafe public static class ProjectModel.Builder extends Object
ProjectModel instances.| Modifier and Type | Method and Description |
|---|---|
ProjectModel.Builder |
addBuild(ExecutionEnvironment environment,
List<String> commands)
Adds the supplied build command.
|
ProjectModel.Builder |
addBuild(ExecutionEnvironment environment,
String command)
Adds the supplied build command.
|
ProjectModel.Builder |
addBuild(List<String> commands)
Adds the supplied build commands.
|
ProjectModel.Builder |
addBuild(Map<ExecutionEnvironment,List<String>> build)
Adds the supplied build commands.
|
ProjectModel.Builder |
addBuild(Set<String> labels,
List<String> commands)
Adds the supplied build command.
|
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 |
addBuildParameter(Parameter parameter)
Adds the supplied parameter to the parameters of the build command.
|
ProjectModel.Builder |
addBuildParameters(Iterable<Parameter> parameters)
Adds the supplied parameters to the parameters of the build command.
|
ProjectModel.Builder |
addBuildParameters(Parameter... parameters)
Adds the supplied parameters to the parameters of the 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,
List<String> commands)
Adds the supplied task command.
|
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.Builder |
addTaskParameter(String taskId,
Parameter parameter)
Adds the supplied task parameter.
|
ProjectModel.Builder |
addTaskParameters(String taskId,
Iterable<Parameter> parameters)
Adds the supplied task parameters.
|
ProjectModel.Builder |
addTaskParameters(String taskId,
Parameter... parameters)
Adds the supplied task parameters.
|
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,List<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(List<String> commands)
commands - the build commands.this for method chaining.@NonNull public ProjectModel.Builder addBuild(Set<String> labels, List<String> commands)
labels - the environment labels.commands - 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 addBuild(ExecutionEnvironment environment, List<String> commands)
environment - the environment.commands - the build command.this for method chaining.@NonNull public ProjectModel.Builder addBuildParameter(@CheckForNull Parameter parameter)
parameter - the parameter.this for method chaining.@NonNull public ProjectModel.Builder addBuildParameters(Parameter... parameters)
parameters - the parameter.this for method chaining.@NonNull public ProjectModel.Builder addBuildParameters(@CheckForNull Iterable<Parameter> parameters)
parameters - the parameter.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, List<String> commands)
taskId - the task id.commands - 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.Builder addTaskParameter(String taskId, Parameter parameter)
taskId - the task id.parameter - the task parameter.this for method chaining.@NonNull public ProjectModel.Builder addTaskParameters(String taskId, Parameter... parameters)
taskId - the task id.parameters - the task parameters.this for method chaining.@NonNull public ProjectModel.Builder addTaskParameters(String taskId, Iterable<Parameter> parameters)
taskId - the task id.parameters - the task parameters.this for method chaining.@NonNull public ProjectModel build() throws ProjectModelValidationException
ProjectModel instance.ProjectModel instance.ProjectModelValidationExceptionCopyright © 2004-2014. All Rights Reserved.