Class ListStacksRequest.Builder
- java.lang.Object
-
- com.oracle.bmc.resourcemanager.requests.ListStacksRequest.Builder
-
- All Implemented Interfaces:
BmcRequest.Builder<ListStacksRequest,Void>
- Enclosing class:
- ListStacksRequest
public static class ListStacksRequest.Builder extends Object implements BmcRequest.Builder<ListStacksRequest,Void>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ListStacksRequestbuild()Build the instance of ListStacksRequest as configured by this builderListStacksRequestbuildWithoutInvocationCallback()Build the instance of ListStacksRequest as configured by this builderListStacksRequest.BuildercompartmentId(String compartmentId)A filter to return only resources that exist in the compartment, identified by OCID.ListStacksRequest.Buildercopy(ListStacksRequest o)Copy method to populate the builder with values from the given instance.ListStacksRequest.BuilderdisplayName(String displayName)A filter to return only resources that match the given display name exactly.ListStacksRequest.Builderid(String id)The OCID on which to query for a stack.ListStacksRequest.BuilderinvocationCallback(com.oracle.bmc.http.client.RequestInterceptor invocationCallback)Set the invocation callback for the request to be built.ListStacksRequest.BuilderlifecycleState(Stack.LifecycleState lifecycleState)A filter that returns only those resources that match the specified lifecycle state.ListStacksRequest.Builderlimit(Integer limit)The number of items returned in a paginated List call.ListStacksRequest.BuilderopcRequestId(String opcRequestId)Unique Oracle-assigned identifier for the request.ListStacksRequest.Builderpage(String page)The value of the opc-next-page response header from the preceding List call.ListStacksRequest.BuilderretryConfiguration(RetryConfiguration retryConfiguration)Set the retry configuration for the request to be built.ListStacksRequest.BuildersortBy(ListStacksRequest.SortBy sortBy)The field to use when sorting returned resources.ListStacksRequest.BuildersortOrder(ListStacksRequest.SortOrder sortOrder)The sort order to use when sorting returned resources.-
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
-
opcRequestId
public ListStacksRequest.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
-
compartmentId
public ListStacksRequest.Builder compartmentId(String compartmentId)
A filter to return only resources that exist in the compartment, identified by OCID.- Parameters:
compartmentId- the value to set- Returns:
- this builder instance
-
id
public ListStacksRequest.Builder id(String id)
The OCID on which to query for a stack.- Parameters:
id- the value to set- Returns:
- this builder instance
-
lifecycleState
public ListStacksRequest.Builder lifecycleState(Stack.LifecycleState lifecycleState)
A filter that returns only those resources that match the specified lifecycle state.The state value is case-insensitive. For more information about stack lifecycle states, see Key Concepts.
- Parameters:
lifecycleState- the value to set- Returns:
- this builder instance
-
displayName
public ListStacksRequest.Builder displayName(String displayName)
A filter to return only resources that match the given display name exactly.Use this filter to list a resource by name. Requires sortBy set to DISPLAYNAME. Alternatively, when you know the resource OCID, use the related Get operation.
- Parameters:
displayName- the value to set- Returns:
- this builder instance
-
sortBy
public ListStacksRequest.Builder sortBy(ListStacksRequest.SortBy sortBy)
The field to use when sorting returned resources.By default, TIMECREATED is ordered descending. By default, DISPLAYNAME is ordered ascending. Note that you can sort only on one field.
- Parameters:
sortBy- the value to set- Returns:
- this builder instance
-
sortOrder
public ListStacksRequest.Builder sortOrder(ListStacksRequest.SortOrder sortOrder)
The sort order to use when sorting returned resources.Ascending (ASC) or descending (DESC).
- Parameters:
sortOrder- the value to set- Returns:
- this builder instance
-
limit
public ListStacksRequest.Builder limit(Integer limit)
The number of items returned in a paginated List call.For information about pagination, see List Pagination.
- Parameters:
limit- the value to set- Returns:
- this builder instance
-
page
public ListStacksRequest.Builder page(String page)
The value of the opc-next-page response header from the preceding List call.For information about pagination, see List Pagination.
- Parameters:
page- the value to set- Returns:
- this builder instance
-
invocationCallback
public ListStacksRequest.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 ListStacksRequest.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 ListStacksRequest.Builder copy(ListStacksRequest o)
Copy method to populate the builder with values from the given instance.- Specified by:
copyin interfaceBmcRequest.Builder<ListStacksRequest,Void>- Parameters:
o- other request from which to copy values- Returns:
- this builder instance
-
build
public ListStacksRequest build()
Build the instance of ListStacksRequest 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:
buildin interfaceBmcRequest.Builder<ListStacksRequest,Void>- Returns:
- instance of ListStacksRequest
-
buildWithoutInvocationCallback
public ListStacksRequest buildWithoutInvocationCallback()
Build the instance of ListStacksRequest 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 ListStacksRequest
-
-