Package datahub.client.patch.common
Class OwnershipPatchBuilder
- java.lang.Object
-
- datahub.client.patch.AbstractPatchBuilder<OwnershipPatchBuilder>
-
- datahub.client.patch.common.OwnershipPatchBuilder
-
public class OwnershipPatchBuilder extends AbstractPatchBuilder<OwnershipPatchBuilder>
-
-
Field Summary
-
Fields inherited from class datahub.client.patch.AbstractPatchBuilder
OBJECT_MAPPER, op, OP_KEY, PATH_KEY, targetEntityUrn, VALUE_KEY
-
-
Constructor Summary
Constructors Constructor Description OwnershipPatchBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.StringgetAspectName()The aspect name associated with this builderprotected java.lang.StringgetPath()Path of the patch to apply, patch builders with complex object subpath will use a FieldPath enum to specifyprotected java.util.stream.Stream<java.lang.Object>getRequiredProperties()Properties required by this builder to properly construct a patchprotected com.fasterxml.jackson.databind.JsonNodegetValue()Json Patch value in JsonNode format, Note: field values initialize as null, so setting a field to null will be ignored rather than actually setting the field to null.OwnershipPatchBuilderowner(com.linkedin.common.urn.Urn owner)OwnershipPatchBuilderownershipType(com.linkedin.common.OwnershipType type)-
Methods inherited from class datahub.client.patch.AbstractPatchBuilder
build, buildPatch, op, urn
-
-
-
-
Method Detail
-
owner
public OwnershipPatchBuilder owner(com.linkedin.common.urn.Urn owner)
-
ownershipType
public OwnershipPatchBuilder ownershipType(com.linkedin.common.OwnershipType type)
-
getRequiredProperties
protected java.util.stream.Stream<java.lang.Object> getRequiredProperties()
Description copied from class:AbstractPatchBuilderProperties required by this builder to properly construct a patch- Specified by:
getRequiredPropertiesin classAbstractPatchBuilder<OwnershipPatchBuilder>- Returns:
- a list of properties to execute a null check on
-
getPath
protected java.lang.String getPath()
Description copied from class:AbstractPatchBuilderPath of the patch to apply, patch builders with complex object subpath will use a FieldPath enum to specify- Specified by:
getPathin classAbstractPatchBuilder<OwnershipPatchBuilder>- Returns:
- path string
-
getValue
protected com.fasterxml.jackson.databind.JsonNode getValue()
Description copied from class:AbstractPatchBuilderJson Patch value in JsonNode format, Note: field values initialize as null, so setting a field to null will be ignored rather than actually setting the field to null.- Specified by:
getValuein classAbstractPatchBuilder<OwnershipPatchBuilder>- Returns:
JsonNode
-
getAspectName
protected java.lang.String getAspectName()
Description copied from class:AbstractPatchBuilderThe aspect name associated with this builder- Specified by:
getAspectNamein classAbstractPatchBuilder<OwnershipPatchBuilder>- Returns:
- aspect name
-
-