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.StringACTOR_KEYstatic java.lang.StringBASE_PATHstatic java.lang.StringCREATED_KEYstatic java.lang.StringCUSTOM_PROPERTIES_KEYstatic java.lang.StringDESCRIPTION_KEYstatic java.lang.StringFLOW_URN_KEYstatic java.lang.StringLAST_MODIFIED_KEYstatic java.lang.StringNAME_KEYstatic java.lang.StringTIME_KEYstatic java.lang.StringTYPE_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 DataJobInfoPatchBuilderaddCustomProperty(java.lang.String key, java.lang.String value)Adds a custom propertyprotected java.lang.StringgetAspectName()The aspect name associated with this builderprotected java.lang.StringgetEntityType()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.DataJobInfoPatchBuilderremoveCustomProperty(java.lang.String key)Removes a custom propertyDataJobInfoPatchBuildersetCreated(com.linkedin.common.TimeStamp created)DataJobInfoPatchBuildersetCustomProperties(java.util.Map<java.lang.String,java.lang.String> properties)Fully replace the custom propertiesDataJobInfoPatchBuildersetDescription(java.lang.String description)DataJobInfoPatchBuildersetFlowUrn(com.linkedin.common.urn.DataFlowUrn flowUrn)DataJobInfoPatchBuildersetLastModified(com.linkedin.common.TimeStamp lastModified)DataJobInfoPatchBuildersetName(java.lang.String name)DataJobInfoPatchBuildersetType(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:AbstractMultiFieldPatchBuilderConstructs a list of Op, Path, Value triples to create as patches. Not idempotent and should not be called more than once- Overrides:
getPathValuesin classAbstractMultiFieldPatchBuilder<DataJobInfoPatchBuilder>- Returns:
- list of patch precursor triples
-
getAspectName
protected java.lang.String getAspectName()
Description copied from class:AbstractMultiFieldPatchBuilderThe aspect name associated with this builder- Specified by:
getAspectNamein classAbstractMultiFieldPatchBuilder<DataJobInfoPatchBuilder>- Returns:
- aspect name
-
getEntityType
protected java.lang.String getEntityType()
Description copied from class:AbstractMultiFieldPatchBuilderReturns the String representation of the Entity type associated with this aspect- Specified by:
getEntityTypein classAbstractMultiFieldPatchBuilder<DataJobInfoPatchBuilder>- Returns:
- entity type name
-
addCustomProperty
public DataJobInfoPatchBuilder addCustomProperty(@Nonnull java.lang.String key, @Nonnull java.lang.String value)
Description copied from interface:CustomPropertiesPatchBuilderSupportAdds a custom property- Specified by:
addCustomPropertyin interfaceCustomPropertiesPatchBuilderSupport<DataJobInfoPatchBuilder>- Returns:
-
removeCustomProperty
public DataJobInfoPatchBuilder removeCustomProperty(@Nonnull java.lang.String key)
Description copied from interface:CustomPropertiesPatchBuilderSupportRemoves a custom property- Specified by:
removeCustomPropertyin interfaceCustomPropertiesPatchBuilderSupport<DataJobInfoPatchBuilder>- Returns:
-
setCustomProperties
public DataJobInfoPatchBuilder setCustomProperties(java.util.Map<java.lang.String,java.lang.String> properties)
Description copied from interface:CustomPropertiesPatchBuilderSupportFully replace the custom properties- Specified by:
setCustomPropertiesin interfaceCustomPropertiesPatchBuilderSupport<DataJobInfoPatchBuilder>- Returns:
-
-