Package com.netflix.genie.common.dto
Class Cluster.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<Cluster.Builder>
-
- com.netflix.genie.common.dto.Cluster.Builder
-
- Enclosing class:
- Cluster
public static class Cluster.Builder extends ExecutionEnvironmentDTO.Builder<Cluster.Builder>
A builder to create clusters.- Since:
- 3.0.0
-
-
Constructor Summary
Constructors Constructor Description Builder(java.lang.String name, java.lang.String user, java.lang.String version, ClusterStatus status)
Constructor which has required fields.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Cluster
build()
Build the cluster.-
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 Detail
-
Builder
public Builder(java.lang.String name, java.lang.String user, java.lang.String version, ClusterStatus status)
Constructor which has required fields.- Parameters:
name
- The name to use for the Clusteruser
- The user to use for the Clusterversion
- The version to use for the Clusterstatus
- The status of the Cluster
-
-
Method Detail
-
build
public Cluster build()
Build the cluster.- Returns:
- Create the final read-only Cluster instance
-
-