Class ApplicationMetadata.Builder

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

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

    • Builder

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

    • withType

      public ApplicationMetadata.Builder withType(@Nullable String type)
      Set the type of this application resource.
      Parameters:
      type - The type (e.g. Hadoop, Spark, etc) for grouping applications
      Returns:
      The builder
    • build

      public ApplicationMetadata build()
      Build the application metadata instance.
      Returns:
      Create the final read-only ApplicationMetadata instance