Class ListInventoryResourcesRequest.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • compartmentId

        public ListInventoryResourcesRequest.Builder compartmentId​(String compartmentId)
        A filter to return only resources whose base Compartment ID(TenancyId) matches the given base Compartment ID.
        Parameters:
        compartmentId - the value to set
        Returns:
        this builder instance
      • resourceCompartmentId

        public ListInventoryResourcesRequest.Builder resourceCompartmentId​(String resourceCompartmentId)
        A filter to return only resources whose resource Compartment ID matches the given resource Compartment ID.
        Parameters:
        resourceCompartmentId - the value to set
        Returns:
        this builder instance
      • lifecycleState

        public ListInventoryResourcesRequest.Builder lifecycleState​(String lifecycleState)
        A filter to return only resources their lifecycleState matches the given lifecycleState.
        Parameters:
        lifecycleState - the value to set
        Returns:
        this builder instance
      • displayName

        public ListInventoryResourcesRequest.Builder displayName​(String displayName)
        A filter to return only resources that match the entire display name given.
        Parameters:
        displayName - the value to set
        Returns:
        this builder instance
      • definedTagEquals

        public ListInventoryResourcesRequest.Builder definedTagEquals​(List<String> definedTagEquals)
        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

        Parameters:
        definedTagEquals - the value to set
        Returns:
        this builder instance
      • definedTagEquals

        public ListInventoryResourcesRequest.Builder definedTagEquals​(String singularValue)
        Singular setter.

        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

        Parameters:
        singularValue - the singular value to set
        Returns:
        this builder instance
      • freeformTagEquals

        public ListInventoryResourcesRequest.Builder freeformTagEquals​(List<String> freeformTagEquals)
        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”.

        Parameters:
        freeformTagEquals - the value to set
        Returns:
        this builder instance
      • freeformTagEquals

        public ListInventoryResourcesRequest.Builder freeformTagEquals​(String singularValue)
        Singular setter.

        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”.

        Parameters:
        singularValue - the singular value to set
        Returns:
        this builder instance
      • inventoryProperties

        public ListInventoryResourcesRequest.Builder inventoryProperties​(List<String> inventoryProperties)
        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

        Parameters:
        inventoryProperties - the value to set
        Returns:
        this builder instance
      • inventoryProperties

        public ListInventoryResourcesRequest.Builder inventoryProperties​(String singularValue)
        Singular setter.

        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

        Parameters:
        singularValue - the singular value to set
        Returns:
        this builder instance
      • matchingCriteria

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

        Example: matchingCriteria=ANY

        Parameters:
        matchingCriteria - the value to set
        Returns:
        this builder instance
      • page

        public ListInventoryResourcesRequest.Builder page​(String page)
        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.

        Parameters:
        page - the value to set
        Returns:
        this builder instance
      • sortBy

        public ListInventoryResourcesRequest.Builder sortBy​(InventoryResourceSortBy sortBy)
        The field to sort by.

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

        Parameters:
        sortBy - the value to set
        Returns:
        this builder instance
      • invocationCallback

        public ListInventoryResourcesRequest.Builder invocationCallback​(com.oracle.bmc.http.client.RequestInterceptor invocationCallback)
        Set the invocation callback for the request to be built.
        Parameters:
        invocationCallback - the invocation callback to be set for the request
        Returns:
        this builder instance
      • retryConfiguration

        public ListInventoryResourcesRequest.Builder retryConfiguration​(RetryConfiguration retryConfiguration)
        Set the retry configuration for the request to be built.
        Parameters:
        retryConfiguration - the retry configuration to be used for the request
        Returns:
        this builder instance