Class ListResourceProfilesRequest.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • compartmentId

        public ListResourceProfilesRequest.Builder compartmentId​(String compartmentId)
        The OCID of the compartment in which to list resources.
        Parameters:
        compartmentId - the value to set
        Returns:
        this builder instance
      • timeLastDetectedGreaterThanOrEqualTo

        public ListResourceProfilesRequest.Builder timeLastDetectedGreaterThanOrEqualTo​(Date timeLastDetectedGreaterThanOrEqualTo)
        Start time for a filter.

        If start time is not specified, start time will be set to current time - 30 days.

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

        public ListResourceProfilesRequest.Builder timeLastDetectedLessThanOrEqualTo​(Date timeLastDetectedLessThanOrEqualTo)
        End time for a filter.

        If end time is not specified, end time will be set to current time.

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

        public ListResourceProfilesRequest.Builder timeFirstDetectedGreaterThanOrEqualTo​(Date timeFirstDetectedGreaterThanOrEqualTo)
        Start time for a filter.

        If start time is not specified, start time will be set to current time - 30 days.

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

        public ListResourceProfilesRequest.Builder timeFirstDetectedLessThanOrEqualTo​(Date timeFirstDetectedLessThanOrEqualTo)
        End time for a filter.

        If end time is not specified, end time will be set to current time.

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

        public ListResourceProfilesRequest.Builder compartmentIdInSubtree​(Boolean compartmentIdInSubtree)
        Default is false.

        When set to true, the hierarchy of compartments is traversed and all compartments and subcompartments in the tenancy are returned depending on the setting of accessLevel.

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

        public ListResourceProfilesRequest.Builder accessLevel​(ListResourceProfilesRequest.AccessLevel accessLevel)
        Valid values are RESTRICTED and ACCESSIBLE.

        Default is RESTRICTED. Setting this to ACCESSIBLE returns only those compartments for which the user has INSPECT permissions directly or indirectly (permissions can be on a resource in a subcompartment). When set to RESTRICTED permissions are checked and no partial results are displayed.

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

        public ListResourceProfilesRequest.Builder resourceTypes​(List<String> resourceTypes)
        A filter to return only resources that match the list of resource types given.
        Parameters:
        resourceTypes - the value to set
        Returns:
        this builder instance
      • resourceTypes

        public ListResourceProfilesRequest.Builder resourceTypes​(String singularValue)
        Singular setter.

        A filter to return only resources that match the list of resource types given.

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

        public ListResourceProfilesRequest.Builder riskScoreGreaterThanOrEqualTo​(Double riskScoreGreaterThanOrEqualTo)
        Risk score filter.
        Parameters:
        riskScoreGreaterThanOrEqualTo - the value to set
        Returns:
        this builder instance
      • riskScoreLessThanOrEqualTo

        public ListResourceProfilesRequest.Builder riskScoreLessThanOrEqualTo​(Double riskScoreLessThanOrEqualTo)
        Risk score filter,
        Parameters:
        riskScoreLessThanOrEqualTo - the value to set
        Returns:
        this builder instance
      • techniques

        public ListResourceProfilesRequest.Builder techniques​(List<String> techniques)
        A filter to return only resources that match the list of techniques given.
        Parameters:
        techniques - the value to set
        Returns:
        this builder instance
      • techniques

        public ListResourceProfilesRequest.Builder techniques​(String singularValue)
        Singular setter.

        A filter to return only resources that match the list of techniques given.

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

        public ListResourceProfilesRequest.Builder tactics​(List<String> tactics)
        A filter to return only resources that match the list of tactics given.
        Parameters:
        tactics - the value to set
        Returns:
        this builder instance
      • tactics

        public ListResourceProfilesRequest.Builder tactics​(String singularValue)
        Singular setter.

        A filter to return only resources that match the list of tactics given.

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

        public ListResourceProfilesRequest.Builder page​(String page)
        The page token representing the page at which to start retrieving results.

        This is usually retrieved from a previous list call.

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

        public ListResourceProfilesRequest.Builder sortBy​(ListResourceProfilesRequest.SortBy sortBy)
        The field to sort resource profiles.

        Only one sort order may be provided. Default order for timeLastDetected is descending. If no value is specified timeLastDetected is default.

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

        public ListResourceProfilesRequest.Builder opcRequestId​(String opcRequestId)
        The client request ID for tracing.
        Parameters:
        opcRequestId - the value to set
        Returns:
        this builder instance
      • invocationCallback

        public ListResourceProfilesRequest.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 ListResourceProfilesRequest.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