Class CommandMetadata.Builder
- java.lang.Object
-
- com.netflix.genie.common.external.dtos.v4.CommonMetadata.Builder<CommandMetadata.Builder>
-
- com.netflix.genie.common.external.dtos.v4.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 Summary
Constructors Constructor Description Builder(java.lang.String name, java.lang.String user, java.lang.String version, CommandStatus status)
Constructor which has required fields.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CommandMetadata
build()
Build the command metadata instance.-
Methods inherited from class com.netflix.genie.common.external.dtos.v4.CommonMetadata.Builder
withDescription, withMetadata, withMetadata, withTags
-
-
-
-
Constructor Detail
-
Builder
public Builder(java.lang.String name, java.lang.String user, java.lang.String version, CommandStatus status)
Constructor which has required fields.- Parameters:
name
- The name to use for the commanduser
- The user who owns the commandversion
- The version of the commandstatus
- The status of the command
-
-
Method Detail
-
build
public CommandMetadata build()
Build the command metadata instance.- Returns:
- Create the final read-only commandMetadata instance
-
-