Class ListPullRequestsRequest.Builder
- java.lang.Object
-
- com.oracle.bmc.devops.requests.ListPullRequestsRequest.Builder
-
- All Implemented Interfaces:
BmcRequest.Builder<ListPullRequestsRequest,Void>
- Enclosing class:
- ListPullRequestsRequest
public static class ListPullRequestsRequest.Builder extends Object implements BmcRequest.Builder<ListPullRequestsRequest,Void>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ListPullRequestsRequest
build()
Build the instance of ListPullRequestsRequest as configured by this builderListPullRequestsRequest
buildWithoutInvocationCallback()
Build the instance of ListPullRequestsRequest as configured by this builderListPullRequestsRequest.Builder
compartmentId(String compartmentId)
The OCID of the compartment in which to list resources.ListPullRequestsRequest.Builder
copy(ListPullRequestsRequest o)
Copy method to populate the builder with values from the given instance.ListPullRequestsRequest.Builder
createdBy(String createdBy)
PullRequest Created ByListPullRequestsRequest.Builder
destinationBranch(String destinationBranch)
PullRequest Target BranchListPullRequestsRequest.Builder
displayName(String displayName)
A filter to return only resources that match the entire display name given.ListPullRequestsRequest.Builder
id(String id)
Unique identifier or OCID for listing a single resource by ID.ListPullRequestsRequest.Builder
invocationCallback(com.oracle.bmc.http.client.RequestInterceptor invocationCallback)
Set the invocation callback for the request to be built.ListPullRequestsRequest.Builder
lifecycleDetails(PullRequest.LifecycleDetails lifecycleDetails)
A filter to return only pull requests that match the given lifecycle state.ListPullRequestsRequest.Builder
lifecycleState(PullRequest.LifecycleState lifecycleState)
A filter to return only pull requests that match the given lifecycle state.ListPullRequestsRequest.Builder
limit(Integer limit)
The maximum number of items to return.ListPullRequestsRequest.Builder
opcRequestId(String opcRequestId)
Unique Oracle-assigned identifier for the request.ListPullRequestsRequest.Builder
page(String page)
The page token representing the page at which to start retrieving results.ListPullRequestsRequest.Builder
repositoryId(String repositoryId)
The OCID of the repository in which to list resources.ListPullRequestsRequest.Builder
retryConfiguration(RetryConfiguration retryConfiguration)
Set the retry configuration for the request to be built.ListPullRequestsRequest.Builder
reviewerPrincipalId(String reviewerPrincipalId)
PullRequest Reviewer IdListPullRequestsRequest.Builder
sortBy(ListPullRequestsRequest.SortBy sortBy)
The field to sort by.ListPullRequestsRequest.Builder
sortOrder(SortOrder sortOrder)
The sort order to use.ListPullRequestsRequest.Builder
sourceBranch(String sourceBranch)
PullRequest Source Branch.ListPullRequestsRequest.Builder
sourceRepositoryId(String sourceRepositoryId)
PullRequest Source Repository Id-
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 ListPullRequestsRequest.Builder compartmentId(String compartmentId)
The OCID of the compartment in which to list resources.- Parameters:
compartmentId
- the value to set- Returns:
- this builder instance
-
lifecycleState
public ListPullRequestsRequest.Builder lifecycleState(PullRequest.LifecycleState lifecycleState)
A filter to return only pull requests that match the given lifecycle state.- Parameters:
lifecycleState
- the value to set- Returns:
- this builder instance
-
lifecycleDetails
public ListPullRequestsRequest.Builder lifecycleDetails(PullRequest.LifecycleDetails lifecycleDetails)
A filter to return only pull requests that match the given lifecycle state.- Parameters:
lifecycleDetails
- the value to set- Returns:
- this builder instance
-
repositoryId
public ListPullRequestsRequest.Builder repositoryId(String repositoryId)
The OCID of the repository in which to list resources.- Parameters:
repositoryId
- the value to set- Returns:
- this builder instance
-
displayName
public ListPullRequestsRequest.Builder displayName(String displayName)
A filter to return only resources that match the entire display name given.- Parameters:
displayName
- the value to set- Returns:
- this builder instance
-
id
public ListPullRequestsRequest.Builder id(String id)
Unique identifier or OCID for listing a single resource by ID.- Parameters:
id
- the value to set- Returns:
- this builder instance
-
createdBy
public ListPullRequestsRequest.Builder createdBy(String createdBy)
PullRequest Created By- Parameters:
createdBy
- the value to set- Returns:
- this builder instance
-
destinationBranch
public ListPullRequestsRequest.Builder destinationBranch(String destinationBranch)
PullRequest Target Branch- Parameters:
destinationBranch
- the value to set- Returns:
- this builder instance
-
sourceBranch
public ListPullRequestsRequest.Builder sourceBranch(String sourceBranch)
PullRequest Source Branch.- Parameters:
sourceBranch
- the value to set- Returns:
- this builder instance
-
reviewerPrincipalId
public ListPullRequestsRequest.Builder reviewerPrincipalId(String reviewerPrincipalId)
PullRequest Reviewer Id- Parameters:
reviewerPrincipalId
- the value to set- Returns:
- this builder instance
-
sourceRepositoryId
public ListPullRequestsRequest.Builder sourceRepositoryId(String sourceRepositoryId)
PullRequest Source Repository Id- Parameters:
sourceRepositoryId
- the value to set- Returns:
- this builder instance
-
limit
public ListPullRequestsRequest.Builder limit(Integer limit)
The maximum number of items to return.- Parameters:
limit
- the value to set- Returns:
- this builder instance
-
page
public ListPullRequestsRequest.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.
- Parameters:
page
- the value to set- Returns:
- this builder instance
-
sortOrder
public ListPullRequestsRequest.Builder sortOrder(SortOrder sortOrder)
The sort order to use.Use either ascending or descending.
- Parameters:
sortOrder
- the value to set- Returns:
- this builder instance
-
sortBy
public ListPullRequestsRequest.Builder sortBy(ListPullRequestsRequest.SortBy sortBy)
The field to sort by.Only one sort order may be provided. Default order for time created is descending. Default order for display name is ascending. If no value is specified, then the default time created value is considered.
- Parameters:
sortBy
- the value to set- Returns:
- this builder instance
-
opcRequestId
public ListPullRequestsRequest.Builder opcRequestId(String opcRequestId)
Unique Oracle-assigned identifier for the request.If you need to contact Oracle about a particular request, provide the request ID.
- Parameters:
opcRequestId
- the value to set- Returns:
- this builder instance
-
invocationCallback
public ListPullRequestsRequest.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 ListPullRequestsRequest.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 ListPullRequestsRequest.Builder copy(ListPullRequestsRequest o)
Copy method to populate the builder with values from the given instance.- Specified by:
copy
in interfaceBmcRequest.Builder<ListPullRequestsRequest,Void>
- Parameters:
o
- other request from which to copy values- Returns:
- this builder instance
-
build
public ListPullRequestsRequest build()
Build the instance of ListPullRequestsRequest 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<ListPullRequestsRequest,Void>
- Returns:
- instance of ListPullRequestsRequest
-
buildWithoutInvocationCallback
public ListPullRequestsRequest buildWithoutInvocationCallback()
Build the instance of ListPullRequestsRequest 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 ListPullRequestsRequest
-
-