@Generated(value="OracleSDKGenerator", comments="API Version: 20200131") public class ListRecommendationsRequest extends BmcRequest<Void>
Example: Click here to see how to use ListRecommendationsRequest.
| Modifier and Type | Class and Description |
|---|---|
static class |
ListRecommendationsRequest.AccessLevel
Valid values are
RESTRICTED and ACCESSIBLE. |
static class |
ListRecommendationsRequest.Builder |
static class |
ListRecommendationsRequest.SortBy
The field to sort by.
|
| Modifier and Type | Method and Description |
|---|---|
static ListRecommendationsRequest.Builder |
builder() |
ListRecommendationsRequest.AccessLevel |
getAccessLevel()
Valid values are
RESTRICTED and ACCESSIBLE. |
String |
getCompartmentId()
The ID of the compartment in which to list resources.
|
Boolean |
getCompartmentIdInSubtree()
Default is false.
|
RecommendationLifecycleDetail |
getLifecycleDetail()
The field life cycle state.
|
LifecycleState |
getLifecycleState()
The field life cycle state.
|
Integer |
getLimit()
The maximum number of items to return.
|
String |
getOpcRequestId()
The client request ID for tracing.
|
String |
getPage()
The page token representing the page at which to start retrieving results.
|
ListRecommendationsRequest.SortBy |
getSortBy()
The field to sort by.
|
SortOrders |
getSortOrder()
The sort order to use, either ‘asc’ or ‘desc’.
|
String |
getTargetId()
The ID of the target in which to list resources.
|
getBody$, getInvocationCallback, getRetryConfiguration, setInvocationCallback, setRetryConfigurationpublic static ListRecommendationsRequest.Builder builder()
public String getCompartmentId()
The ID of the compartment in which to list resources.
public SortOrders getSortOrder()
The sort order to use, either ‘asc’ or ‘desc’.
public ListRecommendationsRequest.SortBy getSortBy()
The field to sort by. Only one sort order may be provided. Default order for riskLevel and timeCreated is descending. If no value is specified riskLevel is default.
public String getTargetId()
The ID of the target in which to list resources.
public Boolean getCompartmentIdInSubtree()
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.
public ListRecommendationsRequest.AccessLevel getAccessLevel()
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.
public LifecycleState getLifecycleState()
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.
public RecommendationLifecycleDetail getLifecycleDetail()
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.
public Integer getLimit()
The maximum number of items to return.
public String getPage()
The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call.
public String getOpcRequestId()
The client request ID for tracing.
Copyright © 2016–2021. All rights reserved.