Package com.oracle.bmc.devops.requests
Class UpdatePullRequestCommentRequest.Builder
- java.lang.Object
-
- com.oracle.bmc.devops.requests.UpdatePullRequestCommentRequest.Builder
-
- All Implemented Interfaces:
BmcRequest.Builder<UpdatePullRequestCommentRequest,UpdatePullRequestCommentDetails>
- Enclosing class:
- UpdatePullRequestCommentRequest
public static class UpdatePullRequestCommentRequest.Builder extends Object implements BmcRequest.Builder<UpdatePullRequestCommentRequest,UpdatePullRequestCommentDetails>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UpdatePullRequestCommentRequest.Builderbody$(UpdatePullRequestCommentDetails body)Alternative setter for the body parameter.UpdatePullRequestCommentRequestbuild()Build the instance of UpdatePullRequestCommentRequest as configured by this builderUpdatePullRequestCommentRequestbuildWithoutInvocationCallback()Build the instance of UpdatePullRequestCommentRequest as configured by this builderUpdatePullRequestCommentRequest.BuildercommentId(String commentId)unique PullRequest Comment identifierUpdatePullRequestCommentRequest.Buildercopy(UpdatePullRequestCommentRequest o)Copy method to populate the builder with values from the given instance.UpdatePullRequestCommentRequest.BuilderifMatch(String ifMatch)For optimistic concurrency control.UpdatePullRequestCommentRequest.BuilderinvocationCallback(com.oracle.bmc.http.client.RequestInterceptor invocationCallback)Set the invocation callback for the request to be built.UpdatePullRequestCommentRequest.BuilderopcRequestId(String opcRequestId)Unique Oracle-assigned identifier for the request.UpdatePullRequestCommentRequest.BuilderpullRequestId(String pullRequestId)unique PullRequest identifierUpdatePullRequestCommentRequest.BuilderretryConfiguration(RetryConfiguration retryConfiguration)Set the retry configuration for the request to be built.UpdatePullRequestCommentRequest.BuilderupdatePullRequestCommentDetails(UpdatePullRequestCommentDetails updatePullRequestCommentDetails)The new comment content to be updated.
-
-
-
Method Detail
-
pullRequestId
public UpdatePullRequestCommentRequest.Builder pullRequestId(String pullRequestId)
unique PullRequest identifier- Parameters:
pullRequestId- the value to set- Returns:
- this builder instance
-
commentId
public UpdatePullRequestCommentRequest.Builder commentId(String commentId)
unique PullRequest Comment identifier- Parameters:
commentId- the value to set- Returns:
- this builder instance
-
updatePullRequestCommentDetails
public UpdatePullRequestCommentRequest.Builder updatePullRequestCommentDetails(UpdatePullRequestCommentDetails updatePullRequestCommentDetails)
The new comment content to be updated.- Parameters:
updatePullRequestCommentDetails- the value to set- Returns:
- this builder instance
-
ifMatch
public UpdatePullRequestCommentRequest.Builder ifMatch(String ifMatch)
For optimistic concurrency control.In the PUT or DELETE call for a resource, set the if-match parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource’s current etag value.
- Parameters:
ifMatch- the value to set- Returns:
- this builder instance
-
opcRequestId
public UpdatePullRequestCommentRequest.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 UpdatePullRequestCommentRequest.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 UpdatePullRequestCommentRequest.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 UpdatePullRequestCommentRequest.Builder copy(UpdatePullRequestCommentRequest o)
Copy method to populate the builder with values from the given instance.- Specified by:
copyin interfaceBmcRequest.Builder<UpdatePullRequestCommentRequest,UpdatePullRequestCommentDetails>- Parameters:
o- other request from which to copy values- Returns:
- this builder instance
-
build
public UpdatePullRequestCommentRequest build()
Build the instance of UpdatePullRequestCommentRequest 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<UpdatePullRequestCommentRequest,UpdatePullRequestCommentDetails>- Returns:
- instance of UpdatePullRequestCommentRequest
-
body$
public UpdatePullRequestCommentRequest.Builder body$(UpdatePullRequestCommentDetails body)
Alternative setter for the body parameter.- Specified by:
body$in interfaceBmcRequest.Builder<UpdatePullRequestCommentRequest,UpdatePullRequestCommentDetails>- Parameters:
body- the body parameter- Returns:
- this builder instance
-
buildWithoutInvocationCallback
public UpdatePullRequestCommentRequest buildWithoutInvocationCallback()
Build the instance of UpdatePullRequestCommentRequest 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 UpdatePullRequestCommentRequest
-
-