Package com.netflix.genie.common.dto
Class Application.Builder
java.lang.Object
com.netflix.genie.common.dto.BaseDTO.Builder<T>
com.netflix.genie.common.dto.CommonDTO.Builder<T>
com.netflix.genie.common.dto.ExecutionEnvironmentDTO.Builder<Application.Builder>
com.netflix.genie.common.dto.Application.Builder
- Enclosing class:
- Application
public static class Application.Builder
extends ExecutionEnvironmentDTO.Builder<Application.Builder>
A builder to create applications.
- Since:
- 3.0.0
-
Constructor Summary
ConstructorDescriptionBuilder
(String name, String user, String version, ApplicationStatus status) Constructor which has required fields. -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build the application.Set the type of this application.Methods inherited from class com.netflix.genie.common.dto.ExecutionEnvironmentDTO.Builder
withConfigs, withDependencies, withSetupFile
Methods inherited from class com.netflix.genie.common.dto.CommonDTO.Builder
withDescription, withMetadata, withMetadata, withTags
Methods inherited from class com.netflix.genie.common.dto.BaseDTO.Builder
withCreated, withId, withUpdated
-
Constructor Details
-
Builder
Constructor which has required fields.- Parameters:
name
- The name to use for the Applicationuser
- The user to use for the Applicationversion
- The version to use for the Applicationstatus
- The status of the Application
-
-
Method Details
-
withType
Set the type of this application.- Parameters:
type
- The type (e.g. Hadoop, Spark, etc) for grouping applications- Returns:
- The builder
-
build
Build the application.- Returns:
- Create the final read-only Application instance
-