Package datahub.client.patch.dataflow
Class DataFlowInfoPatchBuilder
- java.lang.Object
-
- datahub.client.patch.AbstractMultiFieldPatchBuilder<DataFlowInfoPatchBuilder>
-
- datahub.client.patch.dataflow.DataFlowInfoPatchBuilder
-
- All Implemented Interfaces:
CustomPropertiesPatchBuilderSupport<DataFlowInfoPatchBuilder>
public class DataFlowInfoPatchBuilder extends AbstractMultiFieldPatchBuilder<DataFlowInfoPatchBuilder> implements CustomPropertiesPatchBuilderSupport<DataFlowInfoPatchBuilder>
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringACTOR_KEYstatic java.lang.StringBASE_PATHstatic java.lang.StringCREATED_KEYstatic java.lang.StringDESCRIPTION_KEYstatic java.lang.StringLAST_MODIFIED_KEYstatic java.lang.StringNAME_KEYstatic java.lang.StringPROJECT_KEYstatic java.lang.StringTIME_KEY-
Fields inherited from class datahub.client.patch.AbstractMultiFieldPatchBuilder
OP_KEY, PATH_KEY, pathValues, targetEntityUrn, VALUE_KEY
-
-
Constructor Summary
Constructors Constructor Description DataFlowInfoPatchBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DataFlowInfoPatchBuilderaddCustomProperty(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.DataFlowInfoPatchBuilderremoveCustomProperty(java.lang.String key)Removes a custom propertyDataFlowInfoPatchBuildersetCreated(com.linkedin.common.TimeStamp created)DataFlowInfoPatchBuildersetCustomProperties(java.util.Map<java.lang.String,java.lang.String> properties)Fully replace the custom propertiesDataFlowInfoPatchBuildersetDescription(java.lang.String description)DataFlowInfoPatchBuildersetLastModified(com.linkedin.common.TimeStamp lastModified)DataFlowInfoPatchBuildersetName(java.lang.String name)DataFlowInfoPatchBuildersetProject(java.lang.String project)-
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
-
PROJECT_KEY
public static final java.lang.String PROJECT_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
-
-
Method Detail
-
setName
public DataFlowInfoPatchBuilder setName(@Nonnull java.lang.String name)
-
setDescription
public DataFlowInfoPatchBuilder setDescription(@Nullable java.lang.String description)
-
setProject
public DataFlowInfoPatchBuilder setProject(@Nullable java.lang.String project)
-
setCreated
public DataFlowInfoPatchBuilder setCreated(@Nullable com.linkedin.common.TimeStamp created)
-
setLastModified
public DataFlowInfoPatchBuilder 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<DataFlowInfoPatchBuilder>- 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<DataFlowInfoPatchBuilder>- 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<DataFlowInfoPatchBuilder>- Returns:
- entity type name
-
addCustomProperty
public DataFlowInfoPatchBuilder addCustomProperty(@Nonnull java.lang.String key, @Nonnull java.lang.String value)
Description copied from interface:CustomPropertiesPatchBuilderSupportAdds a custom property- Specified by:
addCustomPropertyin interfaceCustomPropertiesPatchBuilderSupport<DataFlowInfoPatchBuilder>- Returns:
-
removeCustomProperty
public DataFlowInfoPatchBuilder removeCustomProperty(@Nonnull java.lang.String key)
Description copied from interface:CustomPropertiesPatchBuilderSupportRemoves a custom property- Specified by:
removeCustomPropertyin interfaceCustomPropertiesPatchBuilderSupport<DataFlowInfoPatchBuilder>- Returns:
-
setCustomProperties
public DataFlowInfoPatchBuilder setCustomProperties(java.util.Map<java.lang.String,java.lang.String> properties)
Description copied from interface:CustomPropertiesPatchBuilderSupportFully replace the custom properties- Specified by:
setCustomPropertiesin interfaceCustomPropertiesPatchBuilderSupport<DataFlowInfoPatchBuilder>- Returns:
-
-