Class ResourceFilters.Builder
- java.lang.Object
-
- com.oracle.bmc.opsi.model.ResourceFilters.Builder
-
- Enclosing class:
- ResourceFilters
public static class ResourceFilters.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResourceFiltersbuild()ResourceFilters.BuildercompartmentIdInSubtree(Boolean compartmentIdInSubtree)A flag to consider all resources within a given compartment and all sub-compartments.ResourceFilters.Buildercopy(ResourceFilters model)ResourceFilters.BuilderdefinedTagEquals(List<String> definedTagEquals)A list of tag filters to apply.ResourceFilters.BuilderdefinedTagExists(List<String> definedTagExists)A list of tag existence filters to apply.ResourceFilters.BuilderfreeformTagEquals(List<String> freeformTagEquals)A list of tag filters to apply.ResourceFilters.BuilderfreeformTagExists(List<String> freeformTagExists)A list of tag existence filters to apply.ResourceFilters.BuilderresourceStatus(List<ResourceStatus> resourceStatus)Filter resources by status, multiple options could be chosen to show authorized resources even if those are disabled or deleted.
-
-
-
Method Detail
-
definedTagEquals
public ResourceFilters.Builder definedTagEquals(List<String> definedTagEquals)
A list of tag filters to apply.Only resources with a defined tag matching the value will be considered. Each item in the list has the format “{namespace}.{tagName}.{value}”. All inputs are case-insensitive. Multiple values for the same key (i.e. same namespace and tag name) are interpreted as “OR”. Values for different keys (i.e. different namespaces, different tag names, or both) are interpreted as “AND”.
- Parameters:
definedTagEquals- the value to set- Returns:
- this builder
-
freeformTagEquals
public ResourceFilters.Builder freeformTagEquals(List<String> freeformTagEquals)
A list of tag filters to apply.Only resources with a freeform tag matching the value will be considered. The key for each tag is “{tagName}.{value}”. All inputs are case-insensitive. Multiple values for the same tag name are interpreted as “OR”. Values for different tag names are interpreted as “AND”.
- Parameters:
freeformTagEquals- the value to set- Returns:
- this builder
-
definedTagExists
public ResourceFilters.Builder definedTagExists(List<String> definedTagExists)
A list of tag existence filters to apply.Only resources for which the specified defined tags exist will be considered. Each item in the list has the format “{namespace}.{tagName}.true” (for checking existence of a defined tag) or “{namespace}.true”. All inputs are case-insensitive. Currently, only existence (“true” at the end) is supported. Absence (“false” at the end) is not supported. Multiple values for the same key (i.e. same namespace and tag name) are interpreted as “OR”. Values for different keys (i.e. different namespaces, different tag names, or both) are interpreted as “AND”.
- Parameters:
definedTagExists- the value to set- Returns:
- this builder
-
freeformTagExists
public ResourceFilters.Builder freeformTagExists(List<String> freeformTagExists)
A list of tag existence filters to apply.Only resources for which the specified freeform tags exist will be considered. The key for each tag is “{tagName}.true”. All inputs are case-insensitive. Currently, only existence (“true” at the end) is supported. Absence (“false” at the end) is not supported. Multiple values for different tag names are interpreted as “AND”.
- Parameters:
freeformTagExists- the value to set- Returns:
- this builder
-
compartmentIdInSubtree
public ResourceFilters.Builder compartmentIdInSubtree(Boolean compartmentIdInSubtree)
A flag to consider all resources within a given compartment and all sub-compartments.- Parameters:
compartmentIdInSubtree- the value to set- Returns:
- this builder
-
resourceStatus
public ResourceFilters.Builder resourceStatus(List<ResourceStatus> resourceStatus)
Filter resources by status, multiple options could be chosen to show authorized resources even if those are disabled or deleted.- Parameters:
resourceStatus- the value to set- Returns:
- this builder
-
build
public ResourceFilters build()
-
copy
public ResourceFilters.Builder copy(ResourceFilters model)
-
-