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.String
ACTOR_KEY
static java.lang.String
BASE_PATH
static java.lang.String
CREATED_KEY
static java.lang.String
DESCRIPTION_KEY
static java.lang.String
LAST_MODIFIED_KEY
static java.lang.String
NAME_KEY
static java.lang.String
PROJECT_KEY
static java.lang.String
TIME_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 DataFlowInfoPatchBuilder
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.DataFlowInfoPatchBuilder
removeCustomProperty(java.lang.String key)
Removes a custom propertyDataFlowInfoPatchBuilder
setCreated(com.linkedin.common.TimeStamp created)
DataFlowInfoPatchBuilder
setCustomProperties(java.util.Map<java.lang.String,java.lang.String> properties)
Fully replace the custom propertiesDataFlowInfoPatchBuilder
setDescription(java.lang.String description)
DataFlowInfoPatchBuilder
setLastModified(com.linkedin.common.TimeStamp lastModified)
DataFlowInfoPatchBuilder
setName(java.lang.String name)
DataFlowInfoPatchBuilder
setProject(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: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<DataFlowInfoPatchBuilder>
- 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<DataFlowInfoPatchBuilder>
- 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<DataFlowInfoPatchBuilder>
- Returns:
- entity type name
-
addCustomProperty
public DataFlowInfoPatchBuilder 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<DataFlowInfoPatchBuilder>
- Returns:
-
removeCustomProperty
public DataFlowInfoPatchBuilder removeCustomProperty(@Nonnull java.lang.String key)
Description copied from interface:CustomPropertiesPatchBuilderSupport
Removes a custom property- Specified by:
removeCustomProperty
in interfaceCustomPropertiesPatchBuilderSupport<DataFlowInfoPatchBuilder>
- Returns:
-
setCustomProperties
public DataFlowInfoPatchBuilder 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<DataFlowInfoPatchBuilder>
- Returns:
-
-