Package datahub.client.patch.common
Class OwnershipPatchBuilder
- java.lang.Object
-
- datahub.client.patch.AbstractMultiFieldPatchBuilder<OwnershipPatchBuilder>
-
- datahub.client.patch.common.OwnershipPatchBuilder
-
public class OwnershipPatchBuilder extends AbstractMultiFieldPatchBuilder<OwnershipPatchBuilder>
-
-
Field Summary
-
Fields inherited from class datahub.client.patch.AbstractMultiFieldPatchBuilder
OP_KEY, PATH_KEY, pathValues, targetEntityUrn, VALUE_KEY
-
-
Constructor Summary
Constructors Constructor Description OwnershipPatchBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OwnershipPatchBuilderaddOwner(com.linkedin.common.urn.Urn owner, com.linkedin.common.OwnershipType type)protected java.lang.StringgetAspectName()The aspect name associated with this builderprotected java.lang.StringgetEntityType()Returns the String representation of the Entity type associated with this aspectOwnershipPatchBuilderremoveOwner(com.linkedin.common.urn.Urn owner)Remove all ownership types for an ownerOwnershipPatchBuilderremoveOwnershipType(com.linkedin.common.urn.Urn owner, com.linkedin.common.OwnershipType type)Removes a specific ownership type for a particular owner, a single owner may have multiple ownership types-
Methods inherited from class datahub.client.patch.AbstractMultiFieldPatchBuilder
build, buildPatch, getPathValues, urn
-
-
-
-
Method Detail
-
addOwner
public OwnershipPatchBuilder addOwner(@Nonnull com.linkedin.common.urn.Urn owner, @Nonnull com.linkedin.common.OwnershipType type)
-
removeOwner
public OwnershipPatchBuilder removeOwner(@Nonnull com.linkedin.common.urn.Urn owner)
Remove all ownership types for an owner- Parameters:
owner-- Returns:
-
removeOwnershipType
public OwnershipPatchBuilder removeOwnershipType(@Nonnull com.linkedin.common.urn.Urn owner, @Nonnull com.linkedin.common.OwnershipType type)
Removes a specific ownership type for a particular owner, a single owner may have multiple ownership types- Parameters:
owner-type-- Returns:
-
getAspectName
protected java.lang.String getAspectName()
Description copied from class:AbstractMultiFieldPatchBuilderThe aspect name associated with this builder- Specified by:
getAspectNamein classAbstractMultiFieldPatchBuilder<OwnershipPatchBuilder>- 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<OwnershipPatchBuilder>- Returns:
- entity type name
-
-