public static class ListProblemsRequest.Builder extends Object implements BmcRequest.Builder<ListProblemsRequest,Void>
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
ListProblemsRequest.Builder |
accessLevel(ListProblemsRequest.AccessLevel accessLevel)
Valid values are
RESTRICTED and ACCESSIBLE . |
ListProblemsRequest |
build()
Build the instance of ListProblemsRequest as configured by this builder
|
ListProblemsRequest |
buildWithoutInvocationCallback()
Build the instance of ListProblemsRequest as configured by this builder
|
ListProblemsRequest.Builder |
city(String city)
City of the problem.
|
ListProblemsRequest.Builder |
compartmentId(String compartmentId)
The OCID of the compartment in which to list resources.
|
ListProblemsRequest.Builder |
compartmentIdInSubtree(Boolean compartmentIdInSubtree)
Default is false.
|
ListProblemsRequest.Builder |
copy(ListProblemsRequest o)
Copy method to populate the builder with values from the given instance.
|
ListProblemsRequest.Builder |
country(String country)
Country of the problem.
|
ListProblemsRequest.Builder |
detectorRuleIdList(List<String> detectorRuleIdList)
Comma seperated list of detector rule IDs to be passed in to match against Problems.
|
ListProblemsRequest.Builder |
detectorRuleIdList(String singularValue)
Singular setter.
|
ListProblemsRequest.Builder |
detectorType(DetectorEnum detectorType)
The field to list the problems by detector type.
|
ListProblemsRequest.Builder |
invocationCallback(com.oracle.bmc.http.client.RequestInterceptor invocationCallback)
Set the invocation callback for the request to be built.
|
ListProblemsRequest.Builder |
label(String label)
User-defined label associated with the problem.
|
ListProblemsRequest.Builder |
lifecycleDetail(ProblemLifecycleDetail lifecycleDetail)
The field life cycle state.
|
ListProblemsRequest.Builder |
lifecycleState(ProblemLifecycleState lifecycleState)
The field lifecycle state.
|
ListProblemsRequest.Builder |
limit(Integer limit)
The maximum number of items to return
|
ListProblemsRequest.Builder |
opcRequestId(String opcRequestId)
The client request ID for tracing.
|
ListProblemsRequest.Builder |
page(String page)
The page token representing the page at which to start retrieving results.
|
ListProblemsRequest.Builder |
problemCategory(ProblemCategoryEnum problemCategory)
Setting this to
SECURITY_ZONE returns only security zone-related violations. |
ListProblemsRequest.Builder |
region(String region)
OCI monitoring region.
|
ListProblemsRequest.Builder |
resourceId(String resourceId)
The ID of the resource associated with the problem.
|
ListProblemsRequest.Builder |
resourceType(String resourceType)
Resource type associated with the resource.
|
ListProblemsRequest.Builder |
retryConfiguration(RetryConfiguration retryConfiguration)
Set the retry configuration for the request to be built.
|
ListProblemsRequest.Builder |
riskLevel(String riskLevel)
Risk level of the problem.
|
ListProblemsRequest.Builder |
sortBy(ListProblemsRequest.SortBy sortBy)
The field to sort by.
|
ListProblemsRequest.Builder |
sortOrder(SortOrders sortOrder)
The sort order to use
|
ListProblemsRequest.Builder |
state(String state)
State or province of the problem.
|
ListProblemsRequest.Builder |
targetId(String targetId)
The ID of the target in which to list resources.
|
ListProblemsRequest.Builder |
timeFirstDetectedGreaterThanOrEqualTo(Date timeFirstDetectedGreaterThanOrEqualTo)
Start time for a filter.
|
ListProblemsRequest.Builder |
timeFirstDetectedLessThanOrEqualTo(Date timeFirstDetectedLessThanOrEqualTo)
End time for a filter.
|
ListProblemsRequest.Builder |
timeLastDetectedGreaterThanOrEqualTo(Date timeLastDetectedGreaterThanOrEqualTo)
Start time for a filter.
|
ListProblemsRequest.Builder |
timeLastDetectedLessThanOrEqualTo(Date timeLastDetectedLessThanOrEqualTo)
End time for a filter.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
body$
public ListProblemsRequest.Builder compartmentId(String compartmentId)
The OCID of the compartment in which to list resources.
compartmentId
- the value to setpublic ListProblemsRequest.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.
timeLastDetectedGreaterThanOrEqualTo
- the value to setpublic ListProblemsRequest.Builder timeLastDetectedLessThanOrEqualTo(Date timeLastDetectedLessThanOrEqualTo)
End time for a filter. If end time is not specified, end time will be set to current time.
timeLastDetectedLessThanOrEqualTo
- the value to setpublic ListProblemsRequest.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.
timeFirstDetectedGreaterThanOrEqualTo
- the value to setpublic ListProblemsRequest.Builder timeFirstDetectedLessThanOrEqualTo(Date timeFirstDetectedLessThanOrEqualTo)
End time for a filter. If end time is not specified, end time will be set to current time.
timeFirstDetectedLessThanOrEqualTo
- the value to setpublic ListProblemsRequest.Builder lifecycleDetail(ProblemLifecycleDetail lifecycleDetail)
The field life cycle state. Only one state can be provided. Default value for state is active.
lifecycleDetail
- the value to setpublic ListProblemsRequest.Builder lifecycleState(ProblemLifecycleState lifecycleState)
The field lifecycle state. Only one state can be provided. Default value for state is active. If no value is specified state is active.
lifecycleState
- the value to setpublic ListProblemsRequest.Builder region(String region)
OCI monitoring region.
region
- the value to setpublic ListProblemsRequest.Builder riskLevel(String riskLevel)
Risk level of the problem.
riskLevel
- the value to setpublic ListProblemsRequest.Builder resourceType(String resourceType)
Resource type associated with the resource.
resourceType
- the value to setpublic ListProblemsRequest.Builder city(String city)
City of the problem.
city
- the value to setpublic ListProblemsRequest.Builder state(String state)
State or province of the problem.
state
- the value to setpublic ListProblemsRequest.Builder country(String country)
Country of the problem.
country
- the value to setpublic ListProblemsRequest.Builder label(String label)
User-defined label associated with the problem.
label
- the value to setpublic ListProblemsRequest.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 ListProblemsRequest.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 ListProblemsRequest.Builder detectorType(DetectorEnum detectorType)
The field to list the problems by detector type.
detectorType
- the value to setpublic ListProblemsRequest.Builder targetId(String targetId)
The ID of the target in which to list resources.
targetId
- the value to setpublic ListProblemsRequest.Builder problemCategory(ProblemCategoryEnum problemCategory)
Setting this to SECURITY_ZONE
returns only security zone-related violations.
problemCategory
- the value to setpublic ListProblemsRequest.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 ListProblemsRequest.Builder accessLevel(ListProblemsRequest.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 ListProblemsRequest.Builder resourceId(String resourceId)
The ID of the resource associated with the problem.
resourceId
- the value to setpublic ListProblemsRequest.Builder limit(Integer limit)
The maximum number of items to return
limit
- the value to setpublic ListProblemsRequest.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 ListProblemsRequest.Builder sortOrder(SortOrders sortOrder)
The sort order to use
sortOrder
- the value to setpublic ListProblemsRequest.Builder sortBy(ListProblemsRequest.SortBy sortBy)
The field to sort by. Only one sort order may be provided. Default order for riskLevel, timeLastDetected and resourceName is descending. Default order for riskLevel and resourceName is ascending. If no value is specified timeLastDetected is default.
sortBy
- the value to setpublic ListProblemsRequest.Builder opcRequestId(String opcRequestId)
The client request ID for tracing.
opcRequestId
- the value to setpublic ListProblemsRequest.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 ListProblemsRequest.Builder retryConfiguration(RetryConfiguration retryConfiguration)
Set the retry configuration for the request to be built.
retryConfiguration
- the retry configuration to be used for the requestpublic ListProblemsRequest.Builder copy(ListProblemsRequest o)
Copy method to populate the builder with values from the given instance.
copy
in interface BmcRequest.Builder<ListProblemsRequest,Void>
o
- other request from which to copy valuespublic ListProblemsRequest build()
Build the instance of ListProblemsRequest 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<ListProblemsRequest,Void>
public ListProblemsRequest buildWithoutInvocationCallback()
Build the instance of ListProblemsRequest 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.