Class ListVulnerabilitiesRequest.Builder
- java.lang.Object
-
- com.oracle.bmc.dblm.requests.ListVulnerabilitiesRequest.Builder
-
- All Implemented Interfaces:
BmcRequest.Builder<ListVulnerabilitiesRequest,Void>
- Enclosing class:
- ListVulnerabilitiesRequest
public static class ListVulnerabilitiesRequest.Builder extends Object implements BmcRequest.Builder<ListVulnerabilitiesRequest,Void>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ListVulnerabilitiesRequestbuild()Build the instance of ListVulnerabilitiesRequest as configured by this builderListVulnerabilitiesRequestbuildWithoutInvocationCallback()Build the instance of ListVulnerabilitiesRequest as configured by this builderListVulnerabilitiesRequest.BuildercompartmentId(String compartmentId)The ID of the compartment in which to list resources.ListVulnerabilitiesRequest.Buildercopy(ListVulnerabilitiesRequest o)Copy method to populate the builder with values from the given instance.ListVulnerabilitiesRequest.BuilderdatabaseRelease(String databaseRelease)A filter to return only database that match the given release version.ListVulnerabilitiesRequest.BuilderdisplayName(String displayName)A filter to return only resources that match the entire display name given.ListVulnerabilitiesRequest.BuilderinvocationCallback(com.oracle.bmc.http.client.RequestInterceptor invocationCallback)Set the invocation callback for the request to be built.ListVulnerabilitiesRequest.BuilderlifecycleState(DblmVulnerability.LifecycleState lifecycleState)A filter to return only resources their lifecycleState matches the given lifecycleState.ListVulnerabilitiesRequest.Builderlimit(Integer limit)The maximum number of items to return.ListVulnerabilitiesRequest.BuilderopcRequestId(String opcRequestId)The client request ID for tracing.ListVulnerabilitiesRequest.BuilderopcRetryToken(String opcRetryToken)A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again.ListVulnerabilitiesRequest.Builderpage(String page)A token representing the position at which to start retrieving results.ListVulnerabilitiesRequest.BuilderresourceId(String resourceId)A filter to return only resources that match the given resource id.ListVulnerabilitiesRequest.BuilderretryConfiguration(RetryConfiguration retryConfiguration)Set the retry configuration for the request to be built.ListVulnerabilitiesRequest.BuildersearchBy(String searchBy)The search input for filter cve id and cve description.ListVulnerabilitiesRequest.BuilderseverityType(VulnerabilityRiskLevel singularValue)Singular setter.ListVulnerabilitiesRequest.BuilderseverityType(List<VulnerabilityRiskLevel> severityType)Filter by one or more severity types.ListVulnerabilitiesRequest.BuildersortBy(ListVulnerabilitiesRequest.SortBy sortBy)The field to sort by.ListVulnerabilitiesRequest.BuildersortOrder(SortOrder sortOrder)The sort order to use, either ‘ASC’ or ‘DESC’.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.oracle.bmc.requests.BmcRequest.Builder
body$
-
-
-
-
Method Detail
-
compartmentId
public ListVulnerabilitiesRequest.Builder compartmentId(String compartmentId)
The ID of the compartment in which to list resources.- Parameters:
compartmentId- the value to set- Returns:
- this builder instance
-
limit
public ListVulnerabilitiesRequest.Builder limit(Integer limit)
The maximum number of items to return.- Parameters:
limit- the value to set- Returns:
- this builder instance
-
page
public ListVulnerabilitiesRequest.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
-
displayName
public ListVulnerabilitiesRequest.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
-
sortOrder
public ListVulnerabilitiesRequest.Builder sortOrder(SortOrder sortOrder)
The sort order to use, either ‘ASC’ or ‘DESC’.- Parameters:
sortOrder- the value to set- Returns:
- this builder instance
-
sortBy
public ListVulnerabilitiesRequest.Builder sortBy(ListVulnerabilitiesRequest.SortBy sortBy)
The field to sort by.Only one sort order may be provided. Default order for vulnerableResources is descending. Default order for cveId is descending.
- Parameters:
sortBy- the value to set- Returns:
- this builder instance
-
opcRetryToken
public ListVulnerabilitiesRequest.Builder opcRetryToken(String opcRetryToken)
A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again.Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations. For example, if a resource has been deleted and purged from the system, then a retry of the original creation request might be rejected.
- Parameters:
opcRetryToken- the value to set- Returns:
- this builder instance
-
opcRequestId
public ListVulnerabilitiesRequest.Builder opcRequestId(String opcRequestId)
The client request ID for tracing.- Parameters:
opcRequestId- the value to set- Returns:
- this builder instance
-
lifecycleState
public ListVulnerabilitiesRequest.Builder lifecycleState(DblmVulnerability.LifecycleState lifecycleState)
A filter to return only resources their lifecycleState matches the given lifecycleState.- Parameters:
lifecycleState- the value to set- Returns:
- this builder instance
-
databaseRelease
public ListVulnerabilitiesRequest.Builder databaseRelease(String databaseRelease)
A filter to return only database that match the given release version.- Parameters:
databaseRelease- the value to set- Returns:
- this builder instance
-
resourceId
public ListVulnerabilitiesRequest.Builder resourceId(String resourceId)
A filter to return only resources that match the given resource id.- Parameters:
resourceId- the value to set- Returns:
- this builder instance
-
severityType
public ListVulnerabilitiesRequest.Builder severityType(List<VulnerabilityRiskLevel> severityType)
Filter by one or more severity types.Possible values are critical, high, medium, low, info.
- Parameters:
severityType- the value to set- Returns:
- this builder instance
-
severityType
public ListVulnerabilitiesRequest.Builder severityType(VulnerabilityRiskLevel singularValue)
Singular setter.Filter by one or more severity types. Possible values are critical, high, medium, low, info.
- Parameters:
singularValue- the singular value to set- Returns:
- this builder instance
-
searchBy
public ListVulnerabilitiesRequest.Builder searchBy(String searchBy)
The search input for filter cve id and cve description.- Parameters:
searchBy- the value to set- Returns:
- this builder instance
-
invocationCallback
public ListVulnerabilitiesRequest.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 ListVulnerabilitiesRequest.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
-
copy
public ListVulnerabilitiesRequest.Builder copy(ListVulnerabilitiesRequest o)
Copy method to populate the builder with values from the given instance.- Specified by:
copyin interfaceBmcRequest.Builder<ListVulnerabilitiesRequest,Void>- Parameters:
o- other request from which to copy values- Returns:
- this builder instance
-
build
public ListVulnerabilitiesRequest build()
Build the instance of ListVulnerabilitiesRequest as configured by this builderNote that this method takes calls to
invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)into account, while the methodbuildWithoutInvocationCallback()does not.This is the preferred method to build an instance.
- Specified by:
buildin interfaceBmcRequest.Builder<ListVulnerabilitiesRequest,Void>- Returns:
- instance of ListVulnerabilitiesRequest
-
buildWithoutInvocationCallback
public ListVulnerabilitiesRequest buildWithoutInvocationCallback()
Build the instance of ListVulnerabilitiesRequest as configured by this builderNote that this method does not take calls to
invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)into account, while the methodbuild()does- Returns:
- instance of ListVulnerabilitiesRequest
-
-