Class ExecutionEnvironmentDTO.Builder<T extends ExecutionEnvironmentDTO.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<T>
Type Parameters:
T - The type of builder that extends this builder for final implementation
Direct Known Subclasses:
Application.Builder, Cluster.Builder, Command.Builder, JobRequest.Builder
Enclosing class:
ExecutionEnvironmentDTO

public abstract static class ExecutionEnvironmentDTO.Builder<T extends ExecutionEnvironmentDTO.Builder> extends CommonDTO.Builder<T>
A builder for helping to create instances.
Since:
3.0.0
  • Constructor Details

    • Builder

      protected Builder(String name, String user, String version)
      Constructor with required fields.
      Parameters:
      name - The name to use for the resource
      user - The user to user for the resource
      version - The version to use for the resource
  • Method Details

    • withSetupFile

      public T withSetupFile(@Nullable String setupFile)
      The setup file to use with the resource if desired.
      Parameters:
      setupFile - The setup file location
      Returns:
      The builder
    • withConfigs

      public T withConfigs(@Nullable Set<String> configs)
      The configs to use with the resource if desired.
      Parameters:
      configs - The configuration file locations
      Returns:
      The builder
    • withDependencies

      public T withDependencies(@Nullable Set<String> dependencies)
      Set the dependencies for the entity if desired.
      Parameters:
      dependencies - The dependencies
      Returns:
      The builder