Class DataHubResourceFilter
- java.lang.Object
-
- io.datahubproject.openapi.generated.DataHubResourceFilter
-
@Validated @Generated(value="io.swagger.codegen.v3.generators.java.SpringCodegen", date="2023-12-06T11:25:47.362934Z[Etc/UTC]") public class DataHubResourceFilter extends java.lang.ObjectInformation used to filter DataHub resource.
-
-
Constructor Summary
Constructors Constructor Description DataHubResourceFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DataHubResourceFilteraddResourcesItem(java.lang.String resourcesItem)DataHubResourceFilterallResources(java.lang.Boolean allResources)booleanequals(java.lang.Object o)DataHubResourceFilterfilter(PolicyMatchFilter filter)@Valid PolicyMatchFiltergetFilter()Get filterjava.util.List<java.lang.String>getResources()A specific set of resources to apply the policy to, e.g.java.lang.StringgetType()The type of resource that the policy applies to.inthashCode()@NotNull java.lang.BooleanisAllResources()Whether the policy should be applied to all assets matching the filter.DataHubResourceFilterresources(java.util.List<java.lang.String> resources)voidsetAllResources(java.lang.Boolean allResources)voidsetFilter(PolicyMatchFilter filter)voidsetResources(java.util.List<java.lang.String> resources)voidsetType(java.lang.String type)java.lang.StringtoString()DataHubResourceFiltertype(java.lang.String type)
-
-
-
Method Detail
-
type
public DataHubResourceFilter type(java.lang.String type)
-
getType
public java.lang.String getType()
The type of resource that the policy applies to. This will most often be a data asset entity name, for example 'dataset'. It is not strictly required because in the future we will want to support filtering a resource by domain, as well.- Returns:
- type
-
setType
public void setType(java.lang.String type)
-
resources
public DataHubResourceFilter resources(java.util.List<java.lang.String> resources)
-
addResourcesItem
public DataHubResourceFilter addResourcesItem(java.lang.String resourcesItem)
-
getResources
public java.util.List<java.lang.String> getResources()
A specific set of resources to apply the policy to, e.g. asset urns- Returns:
- resources
-
setResources
public void setResources(java.util.List<java.lang.String> resources)
-
allResources
public DataHubResourceFilter allResources(java.lang.Boolean allResources)
-
isAllResources
@NotNull public @NotNull java.lang.Boolean isAllResources()
Whether the policy should be applied to all assets matching the filter.- Returns:
- allResources
-
setAllResources
public void setAllResources(java.lang.Boolean allResources)
-
filter
public DataHubResourceFilter filter(PolicyMatchFilter filter)
-
getFilter
@Valid public @Valid PolicyMatchFilter getFilter()
Get filter- Returns:
- filter
-
setFilter
public void setFilter(PolicyMatchFilter filter)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-