Class ListInventoryResourcesRequest


  • @Generated(value="OracleSDKGenerator",
               comments="API Version: 20250228")
    public class ListInventoryResourcesRequest
    extends BmcRequest<Void>

    Example: Click <a href=“https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/3.67.2/fleetappsmanagement/ListInventoryResourcesExample.java.html"target=”_blank"rel=“noopener noreferrer”>here to see how to use ListInventoryResourcesRequest.

    • Constructor Detail

      • ListInventoryResourcesRequest

        public ListInventoryResourcesRequest()
    • Method Detail

      • getCompartmentId

        public String getCompartmentId()
        A filter to return only resources whose base Compartment ID(TenancyId) matches the given base Compartment ID.
      • getResourceCompartmentId

        public String getResourceCompartmentId()
        A filter to return only resources whose resource Compartment ID matches the given resource Compartment ID.
      • getLifecycleState

        public String getLifecycleState()
        A filter to return only resources their lifecycleState matches the given lifecycleState.
      • getDisplayName

        public String getDisplayName()
        A filter to return only resources that match the entire display name given.
      • getResourceRegion

        public String getResourceRegion()
        Resource Region
      • getDefinedTagEquals

        public List<String> getDefinedTagEquals()
        A list of tag filters to apply.

        Only resources with a defined tag matching the value will be returned. 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”. Example: Identification.Development=Yes

      • getFreeformTagEquals

        public List<String> getFreeformTagEquals()
        A list of tag filters to apply.

        Only resources with a freeform tag matching the value will be returned. 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”.

      • getInventoryProperties

        public List<String> getInventoryProperties()
        A list of inventory properties filters to apply.

        The key for each inventory property and value for each resource type is “{resourceType}.{inventoryProperty}={value}”. Example: Instance.displayName=TEST_INSTANCE

      • getMatchingCriteria

        public String getMatchingCriteria()
        Fetch resources matching ANY or ALL criteria passed as params in “tags” and “inventoryProperties”.

        Example: matchingCriteria=ANY

      • getLimit

        public Integer getLimit()
        The maximum number of items to return.
      • getPage

        public String getPage()
        A token representing the position at which to start retrieving results.

        This must come from the opc-next-page header field of a previous response.

      • getSortOrder

        public SortOrder getSortOrder()
        The sort order to use, either ‘ASC’ or ‘DESC’.
      • getSortBy

        public InventoryResourceSortBy getSortBy()
        The field to sort by.

        Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending.

      • getOpcRequestId

        public String getOpcRequestId()
        The client request ID for tracing.
      • equals

        public boolean equals​(Object o)
        Description copied from class: BmcRequest
        Uses getInvocationCallback and getRetryConfiguration to determine if passed request is equal to ‘this’.
        Overrides:
        equals in class BmcRequest<Void>
      • hashCode

        public int hashCode()
        Description copied from class: BmcRequest
        Uses getInvocationCallback and getRetryConfiguration to generate a hash.
        Overrides:
        hashCode in class BmcRequest<Void>