Class ClusterMetadata.Builder

java.lang.Object
com.netflix.genie.common.internal.dtos.CommonMetadata.Builder<ClusterMetadata.Builder>
com.netflix.genie.common.internal.dtos.ClusterMetadata.Builder
Enclosing class:
ClusterMetadata

public static class ClusterMetadata.Builder extends CommonMetadata.Builder<ClusterMetadata.Builder>
A builder to create cluster user metadata instances.
Since:
4.0.0
  • Constructor Details

    • Builder

      public Builder(String name, String user, String version, ClusterStatus status)
      Constructor which has required fields.
      Parameters:
      name - The name to use for the cluster
      user - The user who owns the cluster
      version - The version of the cluster
      status - The status of the cluster
  • Method Details

    • build

      public ClusterMetadata build()
      Build the cluster metadata instance.
      Returns:
      Create the final read-only clusterMetadata instance