public static class ResourceFilters.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
ResourceFilters |
build() |
ResourceFilters.Builder |
compartmentIdInSubtree(Boolean compartmentIdInSubtree)
A flag to consider all resources within a given compartment and all sub-compartments.
|
ResourceFilters.Builder |
copy(ResourceFilters model) |
ResourceFilters.Builder |
definedTagEquals(List<String> definedTagEquals)
A list of tag filters to apply.
|
ResourceFilters.Builder |
definedTagExists(List<String> definedTagExists)
A list of tag existence filters to apply.
|
ResourceFilters.Builder |
freeformTagEquals(List<String> freeformTagEquals)
A list of tag filters to apply.
|
ResourceFilters.Builder |
freeformTagExists(List<String> freeformTagExists)
A list of tag existence filters to apply.
|
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.
|
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”.
definedTagEquals
- the value to setpublic 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”.
freeformTagEquals
- the value to setpublic 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”.
definedTagExists
- the value to setpublic 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”.
freeformTagExists
- the value to setpublic ResourceFilters.Builder compartmentIdInSubtree(Boolean compartmentIdInSubtree)
A flag to consider all resources within a given compartment and all sub-compartments.
compartmentIdInSubtree
- the value to setpublic 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.
resourceStatus
- the value to setpublic ResourceFilters build()
public ResourceFilters.Builder copy(ResourceFilters model)
Copyright © 2016–2025. All rights reserved.