Class ListVulnerabilityAuditsRequest.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • id

        public ListVulnerabilityAuditsRequest.Builder id​(String id)
        A filter to return only resources that match the specified identifier.

        Required only if the compartmentId query parameter is not specified.

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

        public ListVulnerabilityAuditsRequest.Builder compartmentId​(String compartmentId)
        A filter to return only resources that belong to the specified compartment identifier.

        Required only if the id query param is not specified.

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

        public ListVulnerabilityAuditsRequest.Builder knowledgeBaseId​(String knowledgeBaseId)
        A filter to return only Vulnerability Audits that were created against the specified knowledge base.
        Parameters:
        knowledgeBaseId - the value to set
        Returns:
        this builder instance
      • isSuccess

        public ListVulnerabilityAuditsRequest.Builder isSuccess​(Boolean isSuccess)
        A filter to return only successful or failed Vulnerability Audits.
        Parameters:
        isSuccess - the value to set
        Returns:
        this builder instance
      • page

        public ListVulnerabilityAuditsRequest.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 ListVulnerabilityAuditsRequest.Builder sortBy​(ListVulnerabilityAuditsRequest.SortBy sortBy)
        The field used to sort Vulnerability Audits.

        Only one sort order is allowed. Default order for maxObservedCvssV2Score is ascending. Default order for maxObservedCvssV3Score is ascending. Default order for maxObservedCvssV2ScoreWithIgnored is ascending. Default order for maxObservedCvssV3ScoreWithIgnored is ascending. Default order for timeCreated is descending. Default order for vulnerableArtifactsCount is ascending. Default order for vulnerableArtifactsCountWithIgnored is ascending. Default order for maxObservedSeverity is ascending. Default order for maxObservedSeverityWithIgnored is ascending. Default order for displayName is ascending.

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

        public ListVulnerabilityAuditsRequest.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
      • timeCreatedGreaterThanOrEqualTo

        public ListVulnerabilityAuditsRequest.Builder timeCreatedGreaterThanOrEqualTo​(Date timeCreatedGreaterThanOrEqualTo)
        A filter to return only Vulnerability Audits with timeCreated greater or equal to the specified value.
        Parameters:
        timeCreatedGreaterThanOrEqualTo - the value to set
        Returns:
        this builder instance
      • timeCreatedLessThanOrEqualTo

        public ListVulnerabilityAuditsRequest.Builder timeCreatedLessThanOrEqualTo​(Date timeCreatedLessThanOrEqualTo)
        A filter to return only Vulnerability Audits with timeCreated less or equal to the specified value.
        Parameters:
        timeCreatedLessThanOrEqualTo - the value to set
        Returns:
        this builder instance
      • maxObservedSeverityGreaterThanOrEqualTo

        public ListVulnerabilityAuditsRequest.Builder maxObservedSeverityGreaterThanOrEqualTo​(VulnerabilitySeverity maxObservedSeverityGreaterThanOrEqualTo)
        A filter that returns only Vulnerability Audits that have a maximum observed Severity greater than or equal to the specified value.
        Parameters:
        maxObservedSeverityGreaterThanOrEqualTo - the value to set
        Returns:
        this builder instance
      • invocationCallback

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