Package com.netflix.genie.common.dto
Class CommonDTO.Builder<T extends CommonDTO.Builder>
- java.lang.Object
- 
- com.netflix.genie.common.dto.BaseDTO.Builder<T>
- 
- com.netflix.genie.common.dto.CommonDTO.Builder<T>
 
 
- 
- Type Parameters:
- T- Type of builder that extends this
 - Direct Known Subclasses:
- ExecutionEnvironmentDTO.Builder,- Job.Builder
 - Enclosing class:
- CommonDTO
 
 public abstract static class CommonDTO.Builder<T extends CommonDTO.Builder> extends BaseDTO.Builder<T> Builder pattern to save constructor arguments.- Since:
- 3.0.0
 
- 
- 
Constructor SummaryConstructors Modifier Constructor Description protectedBuilder(java.lang.String name, java.lang.String user, java.lang.String version)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description TwithDescription(java.lang.String description)Set the description for the resource.TwithMetadata(com.fasterxml.jackson.databind.JsonNode metadata)With the metadata to set for the job as a JsonNode.TwithMetadata(java.lang.String metadata)With the metadata to set for the job as a string of valid JSON.TwithTags(java.util.Set<java.lang.String> tags)Set the tags to use for the resource.- 
Methods inherited from class com.netflix.genie.common.dto.BaseDTO.BuilderwithCreated, withId, withUpdated
 
- 
 
- 
- 
- 
Method Detail- 
withDescriptionpublic T withDescription(@Nullable java.lang.String description) Set the description for the resource.- Parameters:
- description- The description to use
- Returns:
- The builder
 
 - 
withTagspublic T withTags(@Nullable java.util.Set<java.lang.String> tags) Set the tags to use for the resource.- Parameters:
- tags- The tags to use
- Returns:
- The builder
 
 - 
withMetadatapublic T withMetadata(@Nullable com.fasterxml.jackson.databind.JsonNode metadata) With the metadata to set for the job as a JsonNode.- Parameters:
- metadata- The metadata to set
- Returns:
- The builder
 
 - 
withMetadatapublic T withMetadata(@Nullable java.lang.String metadata) throws GeniePreconditionException With the metadata to set for the job as a string of valid JSON.- Parameters:
- metadata- The metadata to set. Must be valid JSON
- Returns:
- The builder
- Throws:
- GeniePreconditionException- On invalid JSON
 
 
- 
 
-