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 Summary
ConstructorsConstructorDescriptionBuilder
(String name, String user, String version, ApplicationStatus status) Constructor which has required fields. -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build the application metadata instance.Set the type of this application resource.Methods inherited from class com.netflix.genie.common.internal.dtos.CommonMetadata.Builder
withDescription, withMetadata, withMetadata, withTags
-
Constructor Details
-
Builder
Constructor which has required fields.- Parameters:
name
- The name to use for the applicationuser
- The user who owns the applicationversion
- The version of the applicationstatus
- The status of the application
-
-
Method Details
-
withType
Set the type of this application resource.- Parameters:
type
- The type (e.g. Hadoop, Spark, etc) for grouping applications- Returns:
- The builder
-
build
Build the application metadata instance.- Returns:
- Create the final read-only ApplicationMetadata instance
-