Class ListGrantsRequest.Builder
- java.lang.Object
-
- com.oracle.bmc.datasafe.requests.ListGrantsRequest.Builder
-
- All Implemented Interfaces:
BmcRequest.Builder<ListGrantsRequest,Void>
- Enclosing class:
- ListGrantsRequest
public static class ListGrantsRequest.Builder extends Object implements BmcRequest.Builder<ListGrantsRequest,Void>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ListGrantsRequest
build()
Build the instance of ListGrantsRequest as configured by this builderListGrantsRequest
buildWithoutInvocationCallback()
Build the instance of ListGrantsRequest as configured by this builderListGrantsRequest.Builder
copy(ListGrantsRequest o)
Copy method to populate the builder with values from the given instance.ListGrantsRequest.Builder
depthLevel(Integer depthLevel)
A filter to return only items that match the specified user grant depth level.ListGrantsRequest.Builder
depthLevelGreaterThanOrEqualTo(Integer depthLevelGreaterThanOrEqualTo)
A filter to return only items that are at a level greater than or equal to the specified user grant depth level.ListGrantsRequest.Builder
depthLevelLessThan(Integer depthLevelLessThan)
A filter to return only items that are at a level less than the specified user grant depth level.ListGrantsRequest.Builder
grantKey(String grantKey)
A filter to return only items that match the specified user grant key.ListGrantsRequest.Builder
grantName(String grantName)
A filter to return only items that match the specified user grant name.ListGrantsRequest.Builder
invocationCallback(com.oracle.bmc.http.client.RequestInterceptor invocationCallback)
Set the invocation callback for the request to be built.ListGrantsRequest.Builder
limit(Integer limit)
For list pagination.ListGrantsRequest.Builder
opcRequestId(String opcRequestId)
Unique identifier for the request.ListGrantsRequest.Builder
page(String page)
For list pagination.ListGrantsRequest.Builder
privilegeCategory(String privilegeCategory)
A filter to return only items that match the specified user privilege category.ListGrantsRequest.Builder
privilegeType(String privilegeType)
A filter to return only items that match the specified privilege grant type.ListGrantsRequest.Builder
retryConfiguration(RetryConfiguration retryConfiguration)
Set the retry configuration for the request to be built.ListGrantsRequest.Builder
sortBy(ListGrantsRequest.SortBy sortBy)
The field to sort by.ListGrantsRequest.Builder
sortOrder(ListGrantsRequest.SortOrder sortOrder)
The sort order to use, either ascending (ASC) or descending (DESC).ListGrantsRequest.Builder
userAssessmentId(String userAssessmentId)
The OCID of the user assessment.ListGrantsRequest.Builder
userKey(String userKey)
The unique user key.-
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
-
userAssessmentId
public ListGrantsRequest.Builder userAssessmentId(String userAssessmentId)
The OCID of the user assessment.- Parameters:
userAssessmentId
- the value to set- Returns:
- this builder instance
-
userKey
public ListGrantsRequest.Builder userKey(String userKey)
The unique user key.This is a system-generated identifier. ListUsers gets the user key for a user.
- Parameters:
userKey
- the value to set- Returns:
- this builder instance
-
grantKey
public ListGrantsRequest.Builder grantKey(String grantKey)
A filter to return only items that match the specified user grant key.- Parameters:
grantKey
- the value to set- Returns:
- this builder instance
-
grantName
public ListGrantsRequest.Builder grantName(String grantName)
A filter to return only items that match the specified user grant name.- Parameters:
grantName
- the value to set- Returns:
- this builder instance
-
privilegeType
public ListGrantsRequest.Builder privilegeType(String privilegeType)
A filter to return only items that match the specified privilege grant type.- Parameters:
privilegeType
- the value to set- Returns:
- this builder instance
-
privilegeCategory
public ListGrantsRequest.Builder privilegeCategory(String privilegeCategory)
A filter to return only items that match the specified user privilege category.- Parameters:
privilegeCategory
- the value to set- Returns:
- this builder instance
-
depthLevel
public ListGrantsRequest.Builder depthLevel(Integer depthLevel)
A filter to return only items that match the specified user grant depth level.- Parameters:
depthLevel
- the value to set- Returns:
- this builder instance
-
depthLevelGreaterThanOrEqualTo
public ListGrantsRequest.Builder depthLevelGreaterThanOrEqualTo(Integer depthLevelGreaterThanOrEqualTo)
A filter to return only items that are at a level greater than or equal to the specified user grant depth level.- Parameters:
depthLevelGreaterThanOrEqualTo
- the value to set- Returns:
- this builder instance
-
depthLevelLessThan
public ListGrantsRequest.Builder depthLevelLessThan(Integer depthLevelLessThan)
A filter to return only items that are at a level less than the specified user grant depth level.- Parameters:
depthLevelLessThan
- the value to set- Returns:
- this builder instance
-
limit
public ListGrantsRequest.Builder limit(Integer limit)
For list pagination.The maximum number of items to return per page in a paginated “List” call. For details about how pagination works, see List Pagination.
- Parameters:
limit
- the value to set- Returns:
- this builder instance
-
page
public ListGrantsRequest.Builder page(String page)
For list pagination.The page token representing the page at which to start retrieving results. It is usually retrieved from a previous “List” call. For details about how pagination works, see List Pagination.
- Parameters:
page
- the value to set- Returns:
- this builder instance
-
sortOrder
public ListGrantsRequest.Builder sortOrder(ListGrantsRequest.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 ListGrantsRequest.Builder sortBy(ListGrantsRequest.SortBy sortBy)
The field to sort by.You can specify only one sort order (sortOrder). The default order for grantName is ascending.
- Parameters:
sortBy
- the value to set- Returns:
- this builder instance
-
opcRequestId
public ListGrantsRequest.Builder opcRequestId(String opcRequestId)
Unique identifier for the request.- Parameters:
opcRequestId
- the value to set- Returns:
- this builder instance
-
invocationCallback
public ListGrantsRequest.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 ListGrantsRequest.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 ListGrantsRequest.Builder copy(ListGrantsRequest o)
Copy method to populate the builder with values from the given instance.- Specified by:
copy
in interfaceBmcRequest.Builder<ListGrantsRequest,Void>
- Parameters:
o
- other request from which to copy values- Returns:
- this builder instance
-
build
public ListGrantsRequest build()
Build the instance of ListGrantsRequest 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<ListGrantsRequest,Void>
- Returns:
- instance of ListGrantsRequest
-
buildWithoutInvocationCallback
public ListGrantsRequest buildWithoutInvocationCallback()
Build the instance of ListGrantsRequest 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 ListGrantsRequest
-
-