T
- Type of builder that extends thispublic abstract static class CommonDTO.Builder<T extends CommonDTO.Builder> extends BaseDTO.Builder<T>
Modifier | Constructor and Description |
---|---|
protected |
Builder(java.lang.String name,
java.lang.String user,
java.lang.String version) |
Modifier and Type | Method and Description |
---|---|
T |
withDescription(java.lang.String description)
Set the description for the resource.
|
T |
withMetadata(com.fasterxml.jackson.databind.JsonNode metadata)
With the metadata to set for the job as a JsonNode.
|
T |
withMetadata(java.lang.String metadata)
With the metadata to set for the job as a string of valid JSON.
|
T |
withTags(java.util.Set<java.lang.String> tags)
Set the tags to use for the resource.
|
withCreated, withId, withUpdated
protected Builder(java.lang.String name, java.lang.String user, java.lang.String version)
public T withDescription(@Nullable java.lang.String description)
description
- The description to usepublic T withTags(@Nullable java.util.Set<java.lang.String> tags)
tags
- The tags to usepublic T withMetadata(@Nullable com.fasterxml.jackson.databind.JsonNode metadata)
metadata
- The metadata to setpublic T withMetadata(@Nullable java.lang.String metadata) throws GeniePreconditionException
metadata
- The metadata to set. Must be valid JSONGeniePreconditionException
- On invalid JSON