public static class ListProblemsRequest.Builder extends Object implements BmcRequest.Builder<ListProblemsRequest,Void>
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() |
ListProblemsRequest.Builder |
city(String city)
City of the problem.
|
ListProblemsRequest.Builder |
compartmentId(String compartmentId)
The ID 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(Consumer<javax.ws.rs.client.Invocation.Builder> invocationCallback)
Set the invocation callback for the request to be built.
|
ListProblemsRequest.Builder |
label(String label)
Label associated with the Problem.
|
ListProblemsRequest.Builder |
lifecycleDetail(ProblemLifecycleDetail lifecycleDetail)
The field life cycle state.
|
ListProblemsRequest.Builder |
lifecycleState(ProblemLifecycleState lifecycleState)
The field life cycle 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, either ‘asc’ or ‘desc’.
|
ListProblemsRequest.Builder |
state(String state)
State 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.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
body$
public ListProblemsRequest.Builder detectorRuleIdList(List<String> detectorRuleIdList)
Comma seperated list of detector rule ids to be passed in to match against Problems.
public ListProblemsRequest.Builder detectorRuleIdList(String singularValue)
Singular setter. Comma seperated list of detector rule ids to be passed in to match against Problems.
public ListProblemsRequest.Builder invocationCallback(Consumer<javax.ws.rs.client.Invocation.Builder> 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.util.internal.Consumer)
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.Builder compartmentId(String compartmentId)
The ID of the compartment in which to list resources.
this
.public 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.
this
.public ListProblemsRequest.Builder timeLastDetectedLessThanOrEqualTo(Date timeLastDetectedLessThanOrEqualTo)
End time for a filter. If end time is not specified, end time will be set to current time.
this
.public 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.
this
.public ListProblemsRequest.Builder timeFirstDetectedLessThanOrEqualTo(Date timeFirstDetectedLessThanOrEqualTo)
End time for a filter. If end time is not specified, end time will be set to current time.
this
.public ListProblemsRequest.Builder lifecycleDetail(ProblemLifecycleDetail lifecycleDetail)
The field life cycle state. Only one state can be provided. Default value for state is active. If no value is specified state is active.
this
.public ListProblemsRequest.Builder lifecycleState(ProblemLifecycleState lifecycleState)
The field life cycle state. Only one state can be provided. Default value for state is active. If no value is specified state is active.
this
.public ListProblemsRequest.Builder region(String region)
OCI Monitoring region.
this
.public ListProblemsRequest.Builder riskLevel(String riskLevel)
Risk level of the Problem.
this
.public ListProblemsRequest.Builder resourceType(String resourceType)
Resource Type associated with the resource.
this
.public ListProblemsRequest.Builder city(String city)
City of the problem.
this
.public ListProblemsRequest.Builder state(String state)
State of the problem.
this
.public ListProblemsRequest.Builder country(String country)
Country of the problem.
this
.public ListProblemsRequest.Builder label(String label)
Label associated with the Problem.
this
.public ListProblemsRequest.Builder detectorType(DetectorEnum detectorType)
The field to list the Problems by Detector Type. Valid values are IAAS_ACTIVITY_DETECTOR and IAAS_CONFIGURATION_DETECTOR
this
.public ListProblemsRequest.Builder targetId(String targetId)
The ID of the target in which to list resources.
this
.public ListProblemsRequest.Builder problemCategory(ProblemCategoryEnum problemCategory)
Setting this to SECURITY_ZONE
returns only security-zone related violations.
this
.public 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 the setting of accessLevel
.
this
.public 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.
this
.public ListProblemsRequest.Builder resourceId(String resourceId)
The ID of the resource associated with the problem.
this
.public ListProblemsRequest.Builder limit(Integer limit)
The maximum number of items to return.
this
.public 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.
this
.public ListProblemsRequest.Builder sortOrder(SortOrders sortOrder)
The sort order to use, either ‘asc’ or ‘desc’.
this
.public 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.
this
.public ListProblemsRequest.Builder opcRequestId(String opcRequestId)
The client request ID for tracing.
this
.public ListProblemsRequest buildWithoutInvocationCallback()
Copyright © 2016–2022. All rights reserved.