Class ListResourceActionsRequest.Builder
- java.lang.Object
-
- com.oracle.bmc.optimizer.requests.ListResourceActionsRequest.Builder
-
- All Implemented Interfaces:
BmcRequest.Builder<ListResourceActionsRequest,Void>
- Enclosing class:
- ListResourceActionsRequest
public static class ListResourceActionsRequest.Builder extends Object implements BmcRequest.Builder<ListResourceActionsRequest,Void>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ListResourceActionsRequest
build()
Build the instance of ListResourceActionsRequest as configured by this builderListResourceActionsRequest
buildWithoutInvocationCallback()
Build the instance of ListResourceActionsRequest as configured by this builderListResourceActionsRequest.Builder
childTenancyIds(String singularValue)
Singular setter.ListResourceActionsRequest.Builder
childTenancyIds(List<String> childTenancyIds)
A list of child tenancies for which the respective data will be returned.ListResourceActionsRequest.Builder
compartmentId(String compartmentId)
The OCID of the compartment.ListResourceActionsRequest.Builder
compartmentIdInSubtree(Boolean compartmentIdInSubtree)
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.ListResourceActionsRequest.Builder
copy(ListResourceActionsRequest o)
Copy method to populate the builder with values from the given instance.ListResourceActionsRequest.Builder
includeOrganization(Boolean includeOrganization)
When set to true, the data for all child tenancies including the parent is returned.ListResourceActionsRequest.Builder
includeResourceMetadata(Boolean includeResourceMetadata)
Supplement additional resource information in extended metadata response.ListResourceActionsRequest.Builder
invocationCallback(com.oracle.bmc.http.client.RequestInterceptor invocationCallback)
Set the invocation callback for the request to be built.ListResourceActionsRequest.Builder
lifecycleState(LifecycleState lifecycleState)
A filter that returns results that match the lifecycle state specified.ListResourceActionsRequest.Builder
limit(Integer limit)
The maximum number of items to return in a paginated “List” call.ListResourceActionsRequest.Builder
name(String name)
Optional.ListResourceActionsRequest.Builder
opcRequestId(String opcRequestId)
Unique Oracle-assigned identifier for the request.ListResourceActionsRequest.Builder
page(String page)
The value of the opc-next-page response header from the previous “List” call.ListResourceActionsRequest.Builder
recommendationId(String recommendationId)
The unique OCID associated with the recommendation.ListResourceActionsRequest.Builder
recommendationName(String recommendationName)
Optional.ListResourceActionsRequest.Builder
resourceType(String resourceType)
Optional.ListResourceActionsRequest.Builder
retryConfiguration(RetryConfiguration retryConfiguration)
Set the retry configuration for the request to be built.ListResourceActionsRequest.Builder
sortBy(ListResourceActionsRequest.SortBy sortBy)
The field to sort by.ListResourceActionsRequest.Builder
sortOrder(SortOrder sortOrder)
The sort order to use, either ascending (ASC) or descending (DESC).ListResourceActionsRequest.Builder
status(Status status)
A filter that returns recommendations that match the status specified.-
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 ListResourceActionsRequest.Builder compartmentId(String compartmentId)
The OCID of the compartment.- Parameters:
compartmentId
- the value to set- Returns:
- this builder instance
-
compartmentIdInSubtree
public ListResourceActionsRequest.Builder compartmentIdInSubtree(Boolean compartmentIdInSubtree)
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.Can only be set to true when performing ListCompartments on the tenancy (root compartment).
- Parameters:
compartmentIdInSubtree
- the value to set- Returns:
- this builder instance
-
recommendationId
public ListResourceActionsRequest.Builder recommendationId(String recommendationId)
The unique OCID associated with the recommendation.- Parameters:
recommendationId
- the value to set- Returns:
- this builder instance
-
recommendationName
public ListResourceActionsRequest.Builder recommendationName(String recommendationName)
Optional.A filter that returns results that match the recommendation name specified.
- Parameters:
recommendationName
- the value to set- Returns:
- this builder instance
-
childTenancyIds
public ListResourceActionsRequest.Builder childTenancyIds(List<String> childTenancyIds)
A list of child tenancies for which the respective data will be returned.Please note that the parent tenancy id can also be included in this list. For example, if there is a parent P with two children A and B, to return results of only parent P and child A, this list should be populated with tenancy id of parent P and child A.
If this list contains a tenancy id that isn't part of the organization of parent P, the request will fail. That is, let's say there is an organization with parent P with children A and B, and also one other tenant T that isn't part of the organization. If T is included in the list of childTenancyIds, the request will fail.
It is important to note that if you are setting the includeOrganization parameter value as true and also populating the childTenancyIds parameter with a list of child tenancies, the request will fail. The childTenancyIds and includeOrganization should be used exclusively.
When using this parameter, please make sure to set the compartmentId with the parent tenancy ID.
- Parameters:
childTenancyIds
- the value to set- Returns:
- this builder instance
-
childTenancyIds
public ListResourceActionsRequest.Builder childTenancyIds(String singularValue)
Singular setter.A list of child tenancies for which the respective data will be returned. Please note that the parent tenancy id can also be included in this list. For example, if there is a parent P with two children A and B, to return results of only parent P and child A, this list should be populated with tenancy id of parent P and child A.
If this list contains a tenancy id that isn't part of the organization of parent P, the request will fail. That is, let's say there is an organization with parent P with children A and B, and also one other tenant T that isn't part of the organization. If T is included in the list of childTenancyIds, the request will fail.
It is important to note that if you are setting the includeOrganization parameter value as true and also populating the childTenancyIds parameter with a list of child tenancies, the request will fail. The childTenancyIds and includeOrganization should be used exclusively.
When using this parameter, please make sure to set the compartmentId with the parent tenancy ID.
- Parameters:
singularValue
- the singular value to set- Returns:
- this builder instance
-
includeOrganization
public ListResourceActionsRequest.Builder includeOrganization(Boolean includeOrganization)
When set to true, the data for all child tenancies including the parent is returned.That is, if there is an organization with parent P and children A and B, to return the data for the parent P, child A and child B, this parameter value should be set to true.
Please note that this parameter shouldn't be used along with childTenancyIds parameter. If you would like to get results specifically for parent P and only child A, use the childTenancyIds parameter and populate the list with tenancy id of P and A.
When using this parameter, please make sure to set the compartmentId with the parent tenancy ID.
- Parameters:
includeOrganization
- the value to set- Returns:
- this builder instance
-
name
public ListResourceActionsRequest.Builder name(String name)
Optional.A filter that returns results that match the name specified.
- Parameters:
name
- the value to set- Returns:
- this builder instance
-
resourceType
public ListResourceActionsRequest.Builder resourceType(String resourceType)
Optional.A filter that returns results that match the resource type specified.
- Parameters:
resourceType
- the value to set- Returns:
- this builder instance
-
limit
public ListResourceActionsRequest.Builder limit(Integer limit)
The maximum number of items to return in a paginated “List” call.- Parameters:
limit
- the value to set- Returns:
- this builder instance
-
page
public ListResourceActionsRequest.Builder page(String page)
The value of the opc-next-page response header from the previous “List” call.- Parameters:
page
- the value to set- Returns:
- this builder instance
-
sortOrder
public ListResourceActionsRequest.Builder sortOrder(SortOrder sortOrder)
The sort order to use, either ascending (ASC) or descending (DESC).- Parameters:
sortOrder
- the value to set- Returns:
- this builder instance
-
sortBy
public ListResourceActionsRequest.Builder sortBy(ListResourceActionsRequest.SortBy sortBy)
The field to sort by.You can provide one sort order (sortOrder). Default order for TIMECREATED is descending. Default order for NAME is ascending. The NAME sort order is case sensitive.
- Parameters:
sortBy
- the value to set- Returns:
- this builder instance
-
lifecycleState
public ListResourceActionsRequest.Builder lifecycleState(LifecycleState lifecycleState)
A filter that returns results that match the lifecycle state specified.- Parameters:
lifecycleState
- the value to set- Returns:
- this builder instance
-
status
public ListResourceActionsRequest.Builder status(Status status)
A filter that returns recommendations that match the status specified.- Parameters:
status
- the value to set- Returns:
- this builder instance
-
includeResourceMetadata
public ListResourceActionsRequest.Builder includeResourceMetadata(Boolean includeResourceMetadata)
Supplement additional resource information in extended metadata response.- Parameters:
includeResourceMetadata
- the value to set- Returns:
- this builder instance
-
opcRequestId
public ListResourceActionsRequest.Builder opcRequestId(String opcRequestId)
Unique Oracle-assigned identifier for the request.If you need to contact Oracle about a particular request, please provide the request ID.
- Parameters:
opcRequestId
- the value to set- Returns:
- this builder instance
-
invocationCallback
public ListResourceActionsRequest.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 ListResourceActionsRequest.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 ListResourceActionsRequest.Builder copy(ListResourceActionsRequest o)
Copy method to populate the builder with values from the given instance.- Specified by:
copy
in interfaceBmcRequest.Builder<ListResourceActionsRequest,Void>
- Parameters:
o
- other request from which to copy values- Returns:
- this builder instance
-
build
public ListResourceActionsRequest build()
Build the instance of ListResourceActionsRequest 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<ListResourceActionsRequest,Void>
- Returns:
- instance of ListResourceActionsRequest
-
buildWithoutInvocationCallback
public ListResourceActionsRequest buildWithoutInvocationCallback()
Build the instance of ListResourceActionsRequest 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 ListResourceActionsRequest
-
-