Package datahub.client.patch.datajob
Class DataJobInfoPatchBuilder
- java.lang.Object
-
- datahub.client.patch.AbstractMultiFieldPatchBuilder<DataJobInfoPatchBuilder>
-
- datahub.client.patch.datajob.DataJobInfoPatchBuilder
-
- All Implemented Interfaces:
CustomPropertiesPatchBuilderSupport<DataJobInfoPatchBuilder>
public class DataJobInfoPatchBuilder extends AbstractMultiFieldPatchBuilder<DataJobInfoPatchBuilder> implements CustomPropertiesPatchBuilderSupport<DataJobInfoPatchBuilder>
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ACTOR_KEY
static java.lang.String
BASE_PATH
static java.lang.String
CREATED_KEY
static java.lang.String
CUSTOM_PROPERTIES_KEY
static java.lang.String
DESCRIPTION_KEY
static java.lang.String
FLOW_URN_KEY
static java.lang.String
LAST_MODIFIED_KEY
static java.lang.String
NAME_KEY
static java.lang.String
TIME_KEY
static java.lang.String
TYPE_KEY
-
Fields inherited from class datahub.client.patch.AbstractMultiFieldPatchBuilder
OP_KEY, PATH_KEY, pathValues, targetEntityUrn, VALUE_KEY
-
-
Constructor Summary
Constructors Constructor Description DataJobInfoPatchBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DataJobInfoPatchBuilder
addCustomProperty(java.lang.String key, java.lang.String value)
Adds a custom propertyprotected java.lang.String
getAspectName()
The aspect name associated with this builderprotected java.lang.String
getEntityType()
Returns the String representation of the Entity type associated with this aspectprotected java.util.List<org.apache.commons.lang3.tuple.ImmutableTriple<java.lang.String,java.lang.String,com.fasterxml.jackson.databind.JsonNode>>
getPathValues()
Constructs a list of Op, Path, Value triples to create as patches.DataJobInfoPatchBuilder
removeCustomProperty(java.lang.String key)
Removes a custom propertyDataJobInfoPatchBuilder
setCreated(com.linkedin.common.TimeStamp created)
DataJobInfoPatchBuilder
setCustomProperties(java.util.Map<java.lang.String,java.lang.String> properties)
Fully replace the custom propertiesDataJobInfoPatchBuilder
setDescription(java.lang.String description)
DataJobInfoPatchBuilder
setFlowUrn(com.linkedin.common.urn.DataFlowUrn flowUrn)
DataJobInfoPatchBuilder
setLastModified(com.linkedin.common.TimeStamp lastModified)
DataJobInfoPatchBuilder
setName(java.lang.String name)
DataJobInfoPatchBuilder
setType(java.lang.String type)
-
Methods inherited from class datahub.client.patch.AbstractMultiFieldPatchBuilder
build, buildPatch, urn
-
-
-
-
Field Detail
-
BASE_PATH
public static final java.lang.String BASE_PATH
- See Also:
- Constant Field Values
-
NAME_KEY
public static final java.lang.String NAME_KEY
- See Also:
- Constant Field Values
-
DESCRIPTION_KEY
public static final java.lang.String DESCRIPTION_KEY
- See Also:
- Constant Field Values
-
FLOW_URN_KEY
public static final java.lang.String FLOW_URN_KEY
- See Also:
- Constant Field Values
-
CREATED_KEY
public static final java.lang.String CREATED_KEY
- See Also:
- Constant Field Values
-
LAST_MODIFIED_KEY
public static final java.lang.String LAST_MODIFIED_KEY
- See Also:
- Constant Field Values
-
TIME_KEY
public static final java.lang.String TIME_KEY
- See Also:
- Constant Field Values
-
ACTOR_KEY
public static final java.lang.String ACTOR_KEY
- See Also:
- Constant Field Values
-
TYPE_KEY
public static final java.lang.String TYPE_KEY
- See Also:
- Constant Field Values
-
CUSTOM_PROPERTIES_KEY
public static final java.lang.String CUSTOM_PROPERTIES_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
setName
public DataJobInfoPatchBuilder setName(@Nonnull java.lang.String name)
-
setDescription
public DataJobInfoPatchBuilder setDescription(@Nullable java.lang.String description)
-
setType
public DataJobInfoPatchBuilder setType(@Nonnull java.lang.String type)
-
setFlowUrn
public DataJobInfoPatchBuilder setFlowUrn(@Nullable com.linkedin.common.urn.DataFlowUrn flowUrn)
-
setCreated
public DataJobInfoPatchBuilder setCreated(@Nullable com.linkedin.common.TimeStamp created)
-
setLastModified
public DataJobInfoPatchBuilder setLastModified(@Nullable com.linkedin.common.TimeStamp lastModified)
-
getPathValues
protected java.util.List<org.apache.commons.lang3.tuple.ImmutableTriple<java.lang.String,java.lang.String,com.fasterxml.jackson.databind.JsonNode>> getPathValues()
Description copied from class:AbstractMultiFieldPatchBuilder
Constructs a list of Op, Path, Value triples to create as patches. Not idempotent and should not be called more than once- Overrides:
getPathValues
in classAbstractMultiFieldPatchBuilder<DataJobInfoPatchBuilder>
- Returns:
- list of patch precursor triples
-
getAspectName
protected java.lang.String getAspectName()
Description copied from class:AbstractMultiFieldPatchBuilder
The aspect name associated with this builder- Specified by:
getAspectName
in classAbstractMultiFieldPatchBuilder<DataJobInfoPatchBuilder>
- Returns:
- aspect name
-
getEntityType
protected java.lang.String getEntityType()
Description copied from class:AbstractMultiFieldPatchBuilder
Returns the String representation of the Entity type associated with this aspect- Specified by:
getEntityType
in classAbstractMultiFieldPatchBuilder<DataJobInfoPatchBuilder>
- Returns:
- entity type name
-
addCustomProperty
public DataJobInfoPatchBuilder addCustomProperty(@Nonnull java.lang.String key, @Nonnull java.lang.String value)
Description copied from interface:CustomPropertiesPatchBuilderSupport
Adds a custom property- Specified by:
addCustomProperty
in interfaceCustomPropertiesPatchBuilderSupport<DataJobInfoPatchBuilder>
- Returns:
-
removeCustomProperty
public DataJobInfoPatchBuilder removeCustomProperty(@Nonnull java.lang.String key)
Description copied from interface:CustomPropertiesPatchBuilderSupport
Removes a custom property- Specified by:
removeCustomProperty
in interfaceCustomPropertiesPatchBuilderSupport<DataJobInfoPatchBuilder>
- Returns:
-
setCustomProperties
public DataJobInfoPatchBuilder setCustomProperties(java.util.Map<java.lang.String,java.lang.String> properties)
Description copied from interface:CustomPropertiesPatchBuilderSupport
Fully replace the custom properties- Specified by:
setCustomProperties
in interfaceCustomPropertiesPatchBuilderSupport<DataJobInfoPatchBuilder>
- Returns:
-
-