Class ListVulnerabilityAuditsRequest.Builder
- java.lang.Object
-
- com.oracle.bmc.adm.requests.ListVulnerabilityAuditsRequest.Builder
-
- All Implemented Interfaces:
BmcRequest.Builder<ListVulnerabilityAuditsRequest,Void>
- Enclosing class:
- ListVulnerabilityAuditsRequest
public static class ListVulnerabilityAuditsRequest.Builder extends Object implements BmcRequest.Builder<ListVulnerabilityAuditsRequest,Void>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ListVulnerabilityAuditsRequestbuild()Build the instance of ListVulnerabilityAuditsRequest as configured by this builderListVulnerabilityAuditsRequestbuildWithoutInvocationCallback()Build the instance of ListVulnerabilityAuditsRequest as configured by this builderListVulnerabilityAuditsRequest.BuildercompartmentId(String compartmentId)A filter to return only resources that belong to the specified compartment identifier.ListVulnerabilityAuditsRequest.Buildercopy(ListVulnerabilityAuditsRequest o)Copy method to populate the builder with values from the given instance.ListVulnerabilityAuditsRequest.BuilderdisplayName(String displayName)A filter to return only resources that match the entire display name given.ListVulnerabilityAuditsRequest.Builderid(String id)A filter to return only resources that match the specified identifier.ListVulnerabilityAuditsRequest.BuilderinvocationCallback(com.oracle.bmc.http.client.RequestInterceptor invocationCallback)Set the invocation callback for the request to be built.ListVulnerabilityAuditsRequest.BuilderisSuccess(Boolean isSuccess)A filter to return only successful or failed Vulnerability Audits.ListVulnerabilityAuditsRequest.BuilderknowledgeBaseId(String knowledgeBaseId)A filter to return only Vulnerability Audits that were created against the specified knowledge base.ListVulnerabilityAuditsRequest.BuilderlifecycleState(VulnerabilityAudit.LifecycleState lifecycleState)A filter to return only Vulnerability Audits that match the specified lifecycleState.ListVulnerabilityAuditsRequest.Builderlimit(Integer limit)The maximum number of items to return.ListVulnerabilityAuditsRequest.BuildermaxObservedSeverityGreaterThanOrEqualTo(VulnerabilitySeverity maxObservedSeverityGreaterThanOrEqualTo)A filter that returns only Vulnerability Audits that have a maximum observed Severity greater than or equal to the specified value.ListVulnerabilityAuditsRequest.BuilderopcRequestId(String opcRequestId)The client request ID for tracing.ListVulnerabilityAuditsRequest.Builderpage(String page)A token representing the position at which to start retrieving results.ListVulnerabilityAuditsRequest.BuilderretryConfiguration(RetryConfiguration retryConfiguration)Set the retry configuration for the request to be built.ListVulnerabilityAuditsRequest.BuildersortBy(ListVulnerabilityAuditsRequest.SortBy sortBy)The field used to sort Vulnerability Audits.ListVulnerabilityAuditsRequest.BuildersortOrder(SortOrder sortOrder)The sort order to use, either ‘ASC’ or ‘DESC’.ListVulnerabilityAuditsRequest.BuildertimeCreatedGreaterThanOrEqualTo(Date timeCreatedGreaterThanOrEqualTo)A filter to return only Vulnerability Audits with timeCreated greater or equal to the specified value.ListVulnerabilityAuditsRequest.BuildertimeCreatedLessThanOrEqualTo(Date timeCreatedLessThanOrEqualTo)A filter to return only Vulnerability Audits with timeCreated less or equal to the specified value.-
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
-
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
-
lifecycleState
public ListVulnerabilityAuditsRequest.Builder lifecycleState(VulnerabilityAudit.LifecycleState lifecycleState)
A filter to return only Vulnerability Audits that match the specified lifecycleState.- Parameters:
lifecycleState- the value to set- Returns:
- this builder instance
-
sortOrder
public ListVulnerabilityAuditsRequest.Builder sortOrder(SortOrder sortOrder)
The sort order to use, either ‘ASC’ or ‘DESC’.- Parameters:
sortOrder- the value to set- Returns:
- this builder instance
-
limit
public ListVulnerabilityAuditsRequest.Builder limit(Integer limit)
The maximum number of items to return.- Parameters:
limit- 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
-
opcRequestId
public ListVulnerabilityAuditsRequest.Builder opcRequestId(String opcRequestId)
The client request ID for tracing.- Parameters:
opcRequestId- 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
-
copy
public ListVulnerabilityAuditsRequest.Builder copy(ListVulnerabilityAuditsRequest o)
Copy method to populate the builder with values from the given instance.- Specified by:
copyin interfaceBmcRequest.Builder<ListVulnerabilityAuditsRequest,Void>- Parameters:
o- other request from which to copy values- Returns:
- this builder instance
-
build
public ListVulnerabilityAuditsRequest build()
Build the instance of ListVulnerabilityAuditsRequest 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<ListVulnerabilityAuditsRequest,Void>- Returns:
- instance of ListVulnerabilityAuditsRequest
-
buildWithoutInvocationCallback
public ListVulnerabilityAuditsRequest buildWithoutInvocationCallback()
Build the instance of ListVulnerabilityAuditsRequest 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 ListVulnerabilityAuditsRequest
-
-