Class CommandMetadata.Builder

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

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

    • Builder

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

    • build

      public CommandMetadata build()
      Build the command metadata instance.
      Returns:
      Create the final read-only commandMetadata instance