Class ListResourceProfilesRequest.Builder
- java.lang.Object
-
- com.oracle.bmc.cloudguard.requests.ListResourceProfilesRequest.Builder
-
- All Implemented Interfaces:
BmcRequest.Builder<ListResourceProfilesRequest,Void>
- Enclosing class:
- ListResourceProfilesRequest
public static class ListResourceProfilesRequest.Builder extends Object implements BmcRequest.Builder<ListResourceProfilesRequest,Void>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ListResourceProfilesRequest.Builder
accessLevel(ListResourceProfilesRequest.AccessLevel accessLevel)
Valid values are RESTRICTED and ACCESSIBLE.ListResourceProfilesRequest
build()
Build the instance of ListResourceProfilesRequest as configured by this builderListResourceProfilesRequest
buildWithoutInvocationCallback()
Build the instance of ListResourceProfilesRequest as configured by this builderListResourceProfilesRequest.Builder
compartmentId(String compartmentId)
The OCID of the compartment in which to list resources.ListResourceProfilesRequest.Builder
compartmentIdInSubtree(Boolean compartmentIdInSubtree)
Default is false.ListResourceProfilesRequest.Builder
copy(ListResourceProfilesRequest o)
Copy method to populate the builder with values from the given instance.ListResourceProfilesRequest.Builder
invocationCallback(com.oracle.bmc.http.client.RequestInterceptor invocationCallback)
Set the invocation callback for the request to be built.ListResourceProfilesRequest.Builder
limit(Integer limit)
The maximum number of items to returnListResourceProfilesRequest.Builder
opcRequestId(String opcRequestId)
The client request ID for tracing.ListResourceProfilesRequest.Builder
page(String page)
The page token representing the page at which to start retrieving results.ListResourceProfilesRequest.Builder
resourceTypes(String singularValue)
Singular setter.ListResourceProfilesRequest.Builder
resourceTypes(List<String> resourceTypes)
A filter to return only resources that match the list of resource types given.ListResourceProfilesRequest.Builder
retryConfiguration(RetryConfiguration retryConfiguration)
Set the retry configuration for the request to be built.ListResourceProfilesRequest.Builder
riskScoreGreaterThanOrEqualTo(Double riskScoreGreaterThanOrEqualTo)
Risk score filter.ListResourceProfilesRequest.Builder
riskScoreLessThanOrEqualTo(Double riskScoreLessThanOrEqualTo)
Risk score filter,ListResourceProfilesRequest.Builder
sortBy(ListResourceProfilesRequest.SortBy sortBy)
The field to sort resource profiles.ListResourceProfilesRequest.Builder
sortOrder(SortOrders sortOrder)
The sort order to useListResourceProfilesRequest.Builder
tactics(String singularValue)
Singular setter.ListResourceProfilesRequest.Builder
tactics(List<String> tactics)
A filter to return only resources that match the list of tactics given.ListResourceProfilesRequest.Builder
techniques(String singularValue)
Singular setter.ListResourceProfilesRequest.Builder
techniques(List<String> techniques)
A filter to return only resources that match the list of techniques given.ListResourceProfilesRequest.Builder
timeFirstDetectedGreaterThanOrEqualTo(Date timeFirstDetectedGreaterThanOrEqualTo)
Start time for a filter.ListResourceProfilesRequest.Builder
timeFirstDetectedLessThanOrEqualTo(Date timeFirstDetectedLessThanOrEqualTo)
End time for a filter.ListResourceProfilesRequest.Builder
timeLastDetectedGreaterThanOrEqualTo(Date timeLastDetectedGreaterThanOrEqualTo)
Start time for a filter.ListResourceProfilesRequest.Builder
timeLastDetectedLessThanOrEqualTo(Date timeLastDetectedLessThanOrEqualTo)
End time for a filter.-
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 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
-
limit
public ListResourceProfilesRequest.Builder limit(Integer limit)
The maximum number of items to return- Parameters:
limit
- the 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
-
sortOrder
public ListResourceProfilesRequest.Builder sortOrder(SortOrders sortOrder)
The sort order to use- Parameters:
sortOrder
- 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
-
copy
public ListResourceProfilesRequest.Builder copy(ListResourceProfilesRequest o)
Copy method to populate the builder with values from the given instance.- Specified by:
copy
in interfaceBmcRequest.Builder<ListResourceProfilesRequest,Void>
- Parameters:
o
- other request from which to copy values- Returns:
- this builder instance
-
build
public ListResourceProfilesRequest build()
Build the instance of ListResourceProfilesRequest 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:
build
in interfaceBmcRequest.Builder<ListResourceProfilesRequest,Void>
- Returns:
- instance of ListResourceProfilesRequest
-
buildWithoutInvocationCallback
public ListResourceProfilesRequest buildWithoutInvocationCallback()
Build the instance of ListResourceProfilesRequest 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 ListResourceProfilesRequest
-
-