public static class ListResourcesRequest.Builder extends Object implements BmcRequest.Builder<ListResourcesRequest,Void>
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
ListResourcesRequest.Builder |
accessLevel(ListResourcesRequest.AccessLevel accessLevel)
Valid values are
RESTRICTED and ACCESSIBLE . |
ListResourcesRequest |
build()
Build the instance of ListResourcesRequest as configured by this builder
|
ListResourcesRequest |
buildWithoutInvocationCallback()
Build the instance of ListResourcesRequest as configured by this builder
|
ListResourcesRequest.Builder |
compartmentId(String compartmentId)
The OCID of the compartment in which to list resources.
|
ListResourcesRequest.Builder |
compartmentIdInSubtree(Boolean compartmentIdInSubtree)
Default is false.
|
ListResourcesRequest.Builder |
copy(ListResourcesRequest o)
Copy method to populate the builder with values from the given instance.
|
ListResourcesRequest.Builder |
cveId(String cveId)
CVE ID associated with the resource.
|
ListResourcesRequest.Builder |
cvssScore(Integer cvssScore)
Cvss score associated with the resource.
|
ListResourcesRequest.Builder |
cvssScoreGreaterThan(Integer cvssScoreGreaterThan)
Cvss score greater than associated with the resource.
|
ListResourcesRequest.Builder |
cvssScoreLessThan(Integer cvssScoreLessThan)
Cvss score less than associated with the resource.
|
ListResourcesRequest.Builder |
detectorRuleIdList(List<String> detectorRuleIdList)
Comma seperated list of detector rule IDs to be passed in to match against Problems.
|
ListResourcesRequest.Builder |
detectorRuleIdList(String singularValue)
Singular setter.
|
ListResourcesRequest.Builder |
detectorType(DetectorEnum detectorType)
The field to list the problems by detector type.
|
ListResourcesRequest.Builder |
invocationCallback(com.oracle.bmc.http.client.RequestInterceptor invocationCallback)
Set the invocation callback for the request to be built.
|
ListResourcesRequest.Builder |
limit(Integer limit)
The maximum number of items to return
|
ListResourcesRequest.Builder |
opcRequestId(String opcRequestId)
The client request ID for tracing.
|
ListResourcesRequest.Builder |
page(String page)
The page token representing the page at which to start retrieving results.
|
ListResourcesRequest.Builder |
region(String region)
OCI monitoring region.
|
ListResourcesRequest.Builder |
retryConfiguration(RetryConfiguration retryConfiguration)
Set the retry configuration for the request to be built.
|
ListResourcesRequest.Builder |
riskLevel(String riskLevel)
Risk level of the problem.
|
ListResourcesRequest.Builder |
riskLevelGreaterThan(String riskLevelGreaterThan)
To filter risk level greater than the one mentioned in query param
|
ListResourcesRequest.Builder |
riskLevelLessThan(String riskLevelLessThan)
To filter risk level less than the one mentioned in query param
|
ListResourcesRequest.Builder |
sortBy(ListResourcesRequest.SortBy sortBy)
The field to sort by.
|
ListResourcesRequest.Builder |
sortOrder(SortOrders sortOrder)
The sort order to use
|
ListResourcesRequest.Builder |
targetId(String targetId)
The ID of the target in which to list resources.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
body$
public ListResourcesRequest.Builder compartmentId(String compartmentId)
The OCID of the compartment in which to list resources.
compartmentId
- the value to setpublic ListResourcesRequest.Builder targetId(String targetId)
The ID of the target in which to list resources.
targetId
- the value to setpublic ListResourcesRequest.Builder region(String region)
OCI monitoring region.
region
- the value to setpublic ListResourcesRequest.Builder cvssScore(Integer cvssScore)
Cvss score associated with the resource.
cvssScore
- the value to setpublic ListResourcesRequest.Builder cvssScoreGreaterThan(Integer cvssScoreGreaterThan)
Cvss score greater than associated with the resource.
cvssScoreGreaterThan
- the value to setpublic ListResourcesRequest.Builder cvssScoreLessThan(Integer cvssScoreLessThan)
Cvss score less than associated with the resource.
cvssScoreLessThan
- the value to setpublic ListResourcesRequest.Builder cveId(String cveId)
CVE ID associated with the resource.
cveId
- the value to setpublic ListResourcesRequest.Builder riskLevel(String riskLevel)
Risk level of the problem.
riskLevel
- the value to setpublic ListResourcesRequest.Builder riskLevelGreaterThan(String riskLevelGreaterThan)
To filter risk level greater than the one mentioned in query param
riskLevelGreaterThan
- the value to setpublic ListResourcesRequest.Builder riskLevelLessThan(String riskLevelLessThan)
To filter risk level less than the one mentioned in query param
riskLevelLessThan
- the value to setpublic ListResourcesRequest.Builder detectorRuleIdList(List<String> detectorRuleIdList)
Comma seperated list of detector rule IDs to be passed in to match against Problems.
detectorRuleIdList
- the value to setpublic ListResourcesRequest.Builder detectorRuleIdList(String singularValue)
Singular setter. Comma seperated list of detector rule IDs to be passed in to match against Problems.
singularValue
- the singular value to setpublic ListResourcesRequest.Builder detectorType(DetectorEnum detectorType)
The field to list the problems by detector type.
detectorType
- the value to setpublic ListResourcesRequest.Builder limit(Integer limit)
The maximum number of items to return
limit
- the value to setpublic ListResourcesRequest.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.
page
- the value to setpublic ListResourcesRequest.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
.
compartmentIdInSubtree
- the value to setpublic ListResourcesRequest.Builder accessLevel(ListResourcesRequest.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.
accessLevel
- the value to setpublic ListResourcesRequest.Builder sortOrder(SortOrders sortOrder)
The sort order to use
sortOrder
- the value to setpublic ListResourcesRequest.Builder sortBy(ListResourcesRequest.SortBy 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. If no value is specified timeCreated is default.
sortBy
- the value to setpublic ListResourcesRequest.Builder opcRequestId(String opcRequestId)
The client request ID for tracing.
opcRequestId
- the value to setpublic ListResourcesRequest.Builder invocationCallback(com.oracle.bmc.http.client.RequestInterceptor invocationCallback)
Set the invocation callback for the request to be built.
invocationCallback
- the invocation callback to be set for the requestpublic ListResourcesRequest.Builder retryConfiguration(RetryConfiguration retryConfiguration)
Set the retry configuration for the request to be built.
retryConfiguration
- the retry configuration to be used for the requestpublic ListResourcesRequest.Builder copy(ListResourcesRequest o)
Copy method to populate the builder with values from the given instance.
copy
in interface BmcRequest.Builder<ListResourcesRequest,Void>
o
- other request from which to copy valuespublic ListResourcesRequest build()
Build the instance of ListResourcesRequest as configured by this builder
Note that this method takes calls to invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)
into account,
while the method buildWithoutInvocationCallback()
does not.
This is the preferred method to build an instance.
build
in interface BmcRequest.Builder<ListResourcesRequest,Void>
public ListResourcesRequest buildWithoutInvocationCallback()
Build the instance of ListResourcesRequest as configured by this builder
Note that this method does not take calls to invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)
into account,
while the method build()
does
Copyright © 2016–2024. All rights reserved.