Package com.spotify.github.v3.prs
Class ImmutablePullRequest.Builder
- java.lang.Object
-
- com.spotify.github.v3.prs.ImmutablePullRequest.Builder
-
- Enclosing class:
- ImmutablePullRequest
@NotThreadSafe public static final class ImmutablePullRequest.Builder extends Object
Builds instances of typeImmutablePullRequest
. Initialize attributes and then invoke thebuild()
method to create an immutable instance.Builder
is not thread-safe and generally should not be stored in a field or collection, but instead used immediately to create instances.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImmutablePullRequest.Builder
addAllRequestedReviewers(Iterable<? extends User> elements)
Adds elements torequestedReviewers
list.ImmutablePullRequest.Builder
addAllRequestedTeams(Iterable<? extends User> elements)
Adds elements torequestedTeams
list.ImmutablePullRequest.Builder
additions(Integer additions)
Initializes the value for theadditions
attribute.ImmutablePullRequest.Builder
addRequestedReviewers(User element)
Adds one element torequestedReviewers
list.ImmutablePullRequest.Builder
addRequestedReviewers(User... elements)
Adds elements torequestedReviewers
list.ImmutablePullRequest.Builder
addRequestedTeams(User element)
Adds one element torequestedTeams
list.ImmutablePullRequest.Builder
addRequestedTeams(User... elements)
Adds elements torequestedTeams
list.ImmutablePullRequest.Builder
assignee(User assignee)
Initializes the optional valueassignee
to assignee.ImmutablePullRequest.Builder
assignee(Optional<? extends User> assignee)
Initializes the optional valueassignee
to assignee.ImmutablePullRequest.Builder
assignees(List<User> assignees)
Initializes the optional valueassignees
to assignees.ImmutablePullRequest.Builder
assignees(Optional<? extends List<User>> assignees)
Initializes the optional valueassignees
to assignees.ImmutablePullRequest.Builder
base(PullRequestRef base)
Initializes the value for thebase
attribute.ImmutablePullRequest.Builder
body(String body)
Initializes the optional valuebody
to body.ImmutablePullRequest.Builder
body(Optional<String> body)
Initializes the optional valuebody
to body.ImmutablePullRequest
build()
Builds a newImmutablePullRequest
.ImmutablePullRequest.Builder
changedFiles(Integer changedFiles)
Initializes the value for thechangedFiles
attribute.ImmutablePullRequest.Builder
closedAt(GitHubInstant closedAt)
Initializes the optional valueclosedAt
to closedAt.ImmutablePullRequest.Builder
closedAt(Optional<? extends GitHubInstant> closedAt)
Initializes the optional valueclosedAt
to closedAt.ImmutablePullRequest.Builder
comments(Integer comments)
Initializes the value for thecomments
attribute.ImmutablePullRequest.Builder
commentsUrl(URI commentsUrl)
Initializes the value for thecommentsUrl
attribute.ImmutablePullRequest.Builder
commits(Integer commits)
Initializes the value for thecommits
attribute.ImmutablePullRequest.Builder
commitsUrl(URI commitsUrl)
Initializes the value for thecommitsUrl
attribute.ImmutablePullRequest.Builder
createdAt(GitHubInstant createdAt)
Initializes the value for thecreatedAt
attribute.ImmutablePullRequest.Builder
deletions(Integer deletions)
Initializes the value for thedeletions
attribute.ImmutablePullRequest.Builder
diffUrl(URI diffUrl)
Initializes the value for thediffUrl
attribute.ImmutablePullRequest.Builder
draft(boolean draft)
Initializes the optional valuedraft
to draft.ImmutablePullRequest.Builder
draft(Optional<Boolean> draft)
Initializes the optional valuedraft
to draft.ImmutablePullRequest.Builder
from(CloseTracking instance)
Fill a builder with attribute values from the providedcom.spotify.github.CloseTracking
instance.ImmutablePullRequest.Builder
from(UpdateTracking instance)
Fill a builder with attribute values from the providedcom.spotify.github.UpdateTracking
instance.ImmutablePullRequest.Builder
from(PullRequest instance)
Fill a builder with attribute values from the providedcom.spotify.github.v3.prs.PullRequest
instance.ImmutablePullRequest.Builder
from(PullRequestItem instance)
Fill a builder with attribute values from the providedcom.spotify.github.v3.prs.PullRequestItem
instance.ImmutablePullRequest.Builder
head(PullRequestRef head)
Initializes the value for thehead
attribute.ImmutablePullRequest.Builder
htmlUrl(URI htmlUrl)
Initializes the value for thehtmlUrl
attribute.ImmutablePullRequest.Builder
id(Integer id)
Initializes the value for theid
attribute.ImmutablePullRequest.Builder
issueUrl(URI issueUrl)
Initializes the value for theissueUrl
attribute.ImmutablePullRequest.Builder
links(PullRequestLinks links)
Initializes the value for thelinks
attribute.ImmutablePullRequest.Builder
locked(Boolean locked)
Initializes the value for thelocked
attribute.ImmutablePullRequest.Builder
mergeable(boolean mergeable)
Initializes the optional valuemergeable
to mergeable.ImmutablePullRequest.Builder
mergeable(Optional<Boolean> mergeable)
Initializes the optional valuemergeable
to mergeable.ImmutablePullRequest.Builder
mergeableState(String mergeableState)
Initializes the value for themergeableState
attribute.ImmutablePullRequest.Builder
mergeCommitSha(String mergeCommitSha)
Initializes the optional valuemergeCommitSha
to mergeCommitSha.ImmutablePullRequest.Builder
mergeCommitSha(Optional<String> mergeCommitSha)
Initializes the optional valuemergeCommitSha
to mergeCommitSha.ImmutablePullRequest.Builder
merged(Boolean merged)
Initializes the value for themerged
attribute.ImmutablePullRequest.Builder
mergedAt(GitHubInstant mergedAt)
Initializes the optional valuemergedAt
to mergedAt.ImmutablePullRequest.Builder
mergedAt(Optional<? extends GitHubInstant> mergedAt)
Initializes the optional valuemergedAt
to mergedAt.ImmutablePullRequest.Builder
mergedBy(User mergedBy)
Initializes the optional valuemergedBy
to mergedBy.ImmutablePullRequest.Builder
mergedBy(Optional<? extends User> mergedBy)
Initializes the optional valuemergedBy
to mergedBy.ImmutablePullRequest.Builder
milestone(Milestone milestone)
Initializes the optional valuemilestone
to milestone.ImmutablePullRequest.Builder
milestone(Optional<? extends Milestone> milestone)
Initializes the optional valuemilestone
to milestone.ImmutablePullRequest.Builder
number(Integer number)
Initializes the value for thenumber
attribute.ImmutablePullRequest.Builder
patchUrl(URI patchUrl)
Initializes the value for thepatchUrl
attribute.ImmutablePullRequest.Builder
requestedReviewers(Iterable<? extends User> elements)
Sets or replaces all elements forrequestedReviewers
list.ImmutablePullRequest.Builder
requestedTeams(Iterable<? extends User> elements)
Sets or replaces all elements forrequestedTeams
list.ImmutablePullRequest.Builder
reviewComments(Integer reviewComments)
Initializes the value for thereviewComments
attribute.ImmutablePullRequest.Builder
reviewCommentsUrl(URI reviewCommentsUrl)
Initializes the value for thereviewCommentsUrl
attribute.ImmutablePullRequest.Builder
reviewCommentUrl(String reviewCommentUrl)
Initializes the value for thereviewCommentUrl
attribute.ImmutablePullRequest.Builder
state(String state)
Initializes the value for thestate
attribute.ImmutablePullRequest.Builder
statusesUrl(URI statusesUrl)
Initializes the value for thestatusesUrl
attribute.ImmutablePullRequest.Builder
title(String title)
Initializes the value for thetitle
attribute.ImmutablePullRequest.Builder
updatedAt(GitHubInstant updatedAt)
Initializes the value for theupdatedAt
attribute.ImmutablePullRequest.Builder
url(URI url)
Initializes the value for theurl
attribute.ImmutablePullRequest.Builder
user(User user)
Initializes the value for theuser
attribute.
-
-
-
Method Detail
-
from
@CanIgnoreReturnValue public final ImmutablePullRequest.Builder from(PullRequestItem instance)
Fill a builder with attribute values from the providedcom.spotify.github.v3.prs.PullRequestItem
instance.- Parameters:
instance
- The instance from which to copy values- Returns:
this
builder for use in a chained invocation
-
from
@CanIgnoreReturnValue public final ImmutablePullRequest.Builder from(CloseTracking instance)
Fill a builder with attribute values from the providedcom.spotify.github.CloseTracking
instance.- Parameters:
instance
- The instance from which to copy values- Returns:
this
builder for use in a chained invocation
-
from
@CanIgnoreReturnValue public final ImmutablePullRequest.Builder from(UpdateTracking instance)
Fill a builder with attribute values from the providedcom.spotify.github.UpdateTracking
instance.- Parameters:
instance
- The instance from which to copy values- Returns:
this
builder for use in a chained invocation
-
from
@CanIgnoreReturnValue public final ImmutablePullRequest.Builder from(PullRequest instance)
Fill a builder with attribute values from the providedcom.spotify.github.v3.prs.PullRequest
instance.- Parameters:
instance
- The instance from which to copy values- Returns:
this
builder for use in a chained invocation
-
createdAt
@CanIgnoreReturnValue public final ImmutablePullRequest.Builder createdAt(@Nullable GitHubInstant createdAt)
Initializes the value for thecreatedAt
attribute.- Parameters:
createdAt
- The value for createdAt (can benull
)- Returns:
this
builder for use in a chained invocation
-
updatedAt
@CanIgnoreReturnValue public final ImmutablePullRequest.Builder updatedAt(@Nullable GitHubInstant updatedAt)
Initializes the value for theupdatedAt
attribute.- Parameters:
updatedAt
- The value for updatedAt (can benull
)- Returns:
this
builder for use in a chained invocation
-
closedAt
@CanIgnoreReturnValue public final ImmutablePullRequest.Builder closedAt(GitHubInstant closedAt)
Initializes the optional valueclosedAt
to closedAt.- Parameters:
closedAt
- The value for closedAt- Returns:
this
builder for chained invocation
-
closedAt
@CanIgnoreReturnValue public final ImmutablePullRequest.Builder closedAt(Optional<? extends GitHubInstant> closedAt)
Initializes the optional valueclosedAt
to closedAt.- Parameters:
closedAt
- The value for closedAt- Returns:
this
builder for use in a chained invocation
-
id
@CanIgnoreReturnValue public final ImmutablePullRequest.Builder id(@Nullable Integer id)
Initializes the value for theid
attribute.- Parameters:
id
- The value for id (can benull
)- Returns:
this
builder for use in a chained invocation
-
url
@CanIgnoreReturnValue public final ImmutablePullRequest.Builder url(@Nullable URI url)
Initializes the value for theurl
attribute.- Parameters:
url
- The value for url (can benull
)- Returns:
this
builder for use in a chained invocation
-
htmlUrl
@CanIgnoreReturnValue public final ImmutablePullRequest.Builder htmlUrl(@Nullable URI htmlUrl)
Initializes the value for thehtmlUrl
attribute.- Parameters:
htmlUrl
- The value for htmlUrl (can benull
)- Returns:
this
builder for use in a chained invocation
-
diffUrl
@CanIgnoreReturnValue public final ImmutablePullRequest.Builder diffUrl(@Nullable URI diffUrl)
Initializes the value for thediffUrl
attribute.- Parameters:
diffUrl
- The value for diffUrl (can benull
)- Returns:
this
builder for use in a chained invocation
-
patchUrl
@CanIgnoreReturnValue public final ImmutablePullRequest.Builder patchUrl(@Nullable URI patchUrl)
Initializes the value for thepatchUrl
attribute.- Parameters:
patchUrl
- The value for patchUrl (can benull
)- Returns:
this
builder for use in a chained invocation
-
issueUrl
@CanIgnoreReturnValue public final ImmutablePullRequest.Builder issueUrl(@Nullable URI issueUrl)
Initializes the value for theissueUrl
attribute.- Parameters:
issueUrl
- The value for issueUrl (can benull
)- Returns:
this
builder for use in a chained invocation
-
commitsUrl
@CanIgnoreReturnValue public final ImmutablePullRequest.Builder commitsUrl(@Nullable URI commitsUrl)
Initializes the value for thecommitsUrl
attribute.- Parameters:
commitsUrl
- The value for commitsUrl (can benull
)- Returns:
this
builder for use in a chained invocation
-
number
@CanIgnoreReturnValue public final ImmutablePullRequest.Builder number(@Nullable Integer number)
Initializes the value for thenumber
attribute.- Parameters:
number
- The value for number (can benull
)- Returns:
this
builder for use in a chained invocation
-
state
@CanIgnoreReturnValue public final ImmutablePullRequest.Builder state(@Nullable String state)
Initializes the value for thestate
attribute.- Parameters:
state
- The value for state (can benull
)- Returns:
this
builder for use in a chained invocation
-
title
@CanIgnoreReturnValue public final ImmutablePullRequest.Builder title(@Nullable String title)
Initializes the value for thetitle
attribute.- Parameters:
title
- The value for title (can benull
)- Returns:
this
builder for use in a chained invocation
-
body
@CanIgnoreReturnValue public final ImmutablePullRequest.Builder body(String body)
Initializes the optional valuebody
to body.- Parameters:
body
- The value for body- Returns:
this
builder for chained invocation
-
body
@CanIgnoreReturnValue public final ImmutablePullRequest.Builder body(Optional<String> body)
Initializes the optional valuebody
to body.- Parameters:
body
- The value for body- Returns:
this
builder for use in a chained invocation
-
assignee
@CanIgnoreReturnValue public final ImmutablePullRequest.Builder assignee(User assignee)
Initializes the optional valueassignee
to assignee.- Parameters:
assignee
- The value for assignee- Returns:
this
builder for chained invocation
-
assignee
@CanIgnoreReturnValue public final ImmutablePullRequest.Builder assignee(Optional<? extends User> assignee)
Initializes the optional valueassignee
to assignee.- Parameters:
assignee
- The value for assignee- Returns:
this
builder for use in a chained invocation
-
assignees
@CanIgnoreReturnValue public final ImmutablePullRequest.Builder assignees(List<User> assignees)
Initializes the optional valueassignees
to assignees.- Parameters:
assignees
- The value for assignees- Returns:
this
builder for chained invocation
-
assignees
@CanIgnoreReturnValue public final ImmutablePullRequest.Builder assignees(Optional<? extends List<User>> assignees)
Initializes the optional valueassignees
to assignees.- Parameters:
assignees
- The value for assignees- Returns:
this
builder for use in a chained invocation
-
milestone
@CanIgnoreReturnValue public final ImmutablePullRequest.Builder milestone(Milestone milestone)
Initializes the optional valuemilestone
to milestone.- Parameters:
milestone
- The value for milestone- Returns:
this
builder for chained invocation
-
milestone
@CanIgnoreReturnValue public final ImmutablePullRequest.Builder milestone(Optional<? extends Milestone> milestone)
Initializes the optional valuemilestone
to milestone.- Parameters:
milestone
- The value for milestone- Returns:
this
builder for use in a chained invocation
-
locked
@CanIgnoreReturnValue public final ImmutablePullRequest.Builder locked(@Nullable Boolean locked)
Initializes the value for thelocked
attribute.- Parameters:
locked
- The value for locked (can benull
)- Returns:
this
builder for use in a chained invocation
-
mergedAt
@CanIgnoreReturnValue public final ImmutablePullRequest.Builder mergedAt(GitHubInstant mergedAt)
Initializes the optional valuemergedAt
to mergedAt.- Parameters:
mergedAt
- The value for mergedAt- Returns:
this
builder for chained invocation
-
mergedAt
@CanIgnoreReturnValue public final ImmutablePullRequest.Builder mergedAt(Optional<? extends GitHubInstant> mergedAt)
Initializes the optional valuemergedAt
to mergedAt.- Parameters:
mergedAt
- The value for mergedAt- Returns:
this
builder for use in a chained invocation
-
head
@CanIgnoreReturnValue public final ImmutablePullRequest.Builder head(@Nullable PullRequestRef head)
Initializes the value for thehead
attribute.- Parameters:
head
- The value for head (can benull
)- Returns:
this
builder for use in a chained invocation
-
base
@CanIgnoreReturnValue public final ImmutablePullRequest.Builder base(@Nullable PullRequestRef base)
Initializes the value for thebase
attribute.- Parameters:
base
- The value for base (can benull
)- Returns:
this
builder for use in a chained invocation
-
user
@CanIgnoreReturnValue public final ImmutablePullRequest.Builder user(@Nullable User user)
Initializes the value for theuser
attribute.- Parameters:
user
- The value for user (can benull
)- Returns:
this
builder for use in a chained invocation
-
statusesUrl
@CanIgnoreReturnValue public final ImmutablePullRequest.Builder statusesUrl(@Nullable URI statusesUrl)
Initializes the value for thestatusesUrl
attribute.- Parameters:
statusesUrl
- The value for statusesUrl (can benull
)- Returns:
this
builder for use in a chained invocation
-
reviewCommentsUrl
@CanIgnoreReturnValue public final ImmutablePullRequest.Builder reviewCommentsUrl(@Nullable URI reviewCommentsUrl)
Initializes the value for thereviewCommentsUrl
attribute.- Parameters:
reviewCommentsUrl
- The value for reviewCommentsUrl (can benull
)- Returns:
this
builder for use in a chained invocation
-
reviewCommentUrl
@CanIgnoreReturnValue public final ImmutablePullRequest.Builder reviewCommentUrl(@Nullable String reviewCommentUrl)
Initializes the value for thereviewCommentUrl
attribute.- Parameters:
reviewCommentUrl
- The value for reviewCommentUrl (can benull
)- Returns:
this
builder for use in a chained invocation
-
commentsUrl
@CanIgnoreReturnValue public final ImmutablePullRequest.Builder commentsUrl(@Nullable URI commentsUrl)
Initializes the value for thecommentsUrl
attribute.- Parameters:
commentsUrl
- The value for commentsUrl (can benull
)- Returns:
this
builder for use in a chained invocation
-
links
@CanIgnoreReturnValue public final ImmutablePullRequest.Builder links(@Nullable PullRequestLinks links)
Initializes the value for thelinks
attribute.- Parameters:
links
- The value for links (can benull
)- Returns:
this
builder for use in a chained invocation
-
addRequestedReviewers
@CanIgnoreReturnValue public final ImmutablePullRequest.Builder addRequestedReviewers(User element)
Adds one element torequestedReviewers
list.- Parameters:
element
- A requestedReviewers element- Returns:
this
builder for use in a chained invocation
-
addRequestedReviewers
@CanIgnoreReturnValue public final ImmutablePullRequest.Builder addRequestedReviewers(User... elements)
Adds elements torequestedReviewers
list.- Parameters:
elements
- An array of requestedReviewers elements- Returns:
this
builder for use in a chained invocation
-
requestedReviewers
@CanIgnoreReturnValue public final ImmutablePullRequest.Builder requestedReviewers(@Nullable Iterable<? extends User> elements)
Sets or replaces all elements forrequestedReviewers
list.- Parameters:
elements
- An iterable of requestedReviewers elements- Returns:
this
builder for use in a chained invocation
-
addAllRequestedReviewers
@CanIgnoreReturnValue public final ImmutablePullRequest.Builder addAllRequestedReviewers(Iterable<? extends User> elements)
Adds elements torequestedReviewers
list.- Parameters:
elements
- An iterable of requestedReviewers elements- Returns:
this
builder for use in a chained invocation
-
addRequestedTeams
@CanIgnoreReturnValue public final ImmutablePullRequest.Builder addRequestedTeams(User element)
Adds one element torequestedTeams
list.- Parameters:
element
- A requestedTeams element- Returns:
this
builder for use in a chained invocation
-
addRequestedTeams
@CanIgnoreReturnValue public final ImmutablePullRequest.Builder addRequestedTeams(User... elements)
Adds elements torequestedTeams
list.- Parameters:
elements
- An array of requestedTeams elements- Returns:
this
builder for use in a chained invocation
-
requestedTeams
@CanIgnoreReturnValue public final ImmutablePullRequest.Builder requestedTeams(@Nullable Iterable<? extends User> elements)
Sets or replaces all elements forrequestedTeams
list.- Parameters:
elements
- An iterable of requestedTeams elements- Returns:
this
builder for use in a chained invocation
-
addAllRequestedTeams
@CanIgnoreReturnValue public final ImmutablePullRequest.Builder addAllRequestedTeams(Iterable<? extends User> elements)
Adds elements torequestedTeams
list.- Parameters:
elements
- An iterable of requestedTeams elements- Returns:
this
builder for use in a chained invocation
-
mergeCommitSha
@CanIgnoreReturnValue public final ImmutablePullRequest.Builder mergeCommitSha(String mergeCommitSha)
Initializes the optional valuemergeCommitSha
to mergeCommitSha.- Parameters:
mergeCommitSha
- The value for mergeCommitSha- Returns:
this
builder for chained invocation
-
mergeCommitSha
@CanIgnoreReturnValue public final ImmutablePullRequest.Builder mergeCommitSha(Optional<String> mergeCommitSha)
Initializes the optional valuemergeCommitSha
to mergeCommitSha.- Parameters:
mergeCommitSha
- The value for mergeCommitSha- Returns:
this
builder for use in a chained invocation
-
merged
@CanIgnoreReturnValue public final ImmutablePullRequest.Builder merged(@Nullable Boolean merged)
Initializes the value for themerged
attribute.- Parameters:
merged
- The value for merged (can benull
)- Returns:
this
builder for use in a chained invocation
-
mergeable
@CanIgnoreReturnValue public final ImmutablePullRequest.Builder mergeable(boolean mergeable)
Initializes the optional valuemergeable
to mergeable.- Parameters:
mergeable
- The value for mergeable- Returns:
this
builder for chained invocation
-
mergeable
@CanIgnoreReturnValue public final ImmutablePullRequest.Builder mergeable(Optional<Boolean> mergeable)
Initializes the optional valuemergeable
to mergeable.- Parameters:
mergeable
- The value for mergeable- Returns:
this
builder for use in a chained invocation
-
mergedBy
@CanIgnoreReturnValue public final ImmutablePullRequest.Builder mergedBy(User mergedBy)
Initializes the optional valuemergedBy
to mergedBy.- Parameters:
mergedBy
- The value for mergedBy- Returns:
this
builder for chained invocation
-
mergedBy
@CanIgnoreReturnValue public final ImmutablePullRequest.Builder mergedBy(Optional<? extends User> mergedBy)
Initializes the optional valuemergedBy
to mergedBy.- Parameters:
mergedBy
- The value for mergedBy- Returns:
this
builder for use in a chained invocation
-
comments
@CanIgnoreReturnValue public final ImmutablePullRequest.Builder comments(@Nullable Integer comments)
Initializes the value for thecomments
attribute.- Parameters:
comments
- The value for comments (can benull
)- Returns:
this
builder for use in a chained invocation
-
reviewComments
@CanIgnoreReturnValue public final ImmutablePullRequest.Builder reviewComments(@Nullable Integer reviewComments)
Initializes the value for thereviewComments
attribute.- Parameters:
reviewComments
- The value for reviewComments (can benull
)- Returns:
this
builder for use in a chained invocation
-
commits
@CanIgnoreReturnValue public final ImmutablePullRequest.Builder commits(@Nullable Integer commits)
Initializes the value for thecommits
attribute.- Parameters:
commits
- The value for commits (can benull
)- Returns:
this
builder for use in a chained invocation
-
additions
@CanIgnoreReturnValue public final ImmutablePullRequest.Builder additions(@Nullable Integer additions)
Initializes the value for theadditions
attribute.- Parameters:
additions
- The value for additions (can benull
)- Returns:
this
builder for use in a chained invocation
-
deletions
@CanIgnoreReturnValue public final ImmutablePullRequest.Builder deletions(@Nullable Integer deletions)
Initializes the value for thedeletions
attribute.- Parameters:
deletions
- The value for deletions (can benull
)- Returns:
this
builder for use in a chained invocation
-
changedFiles
@CanIgnoreReturnValue public final ImmutablePullRequest.Builder changedFiles(@Nullable Integer changedFiles)
Initializes the value for thechangedFiles
attribute.- Parameters:
changedFiles
- The value for changedFiles (can benull
)- Returns:
this
builder for use in a chained invocation
-
mergeableState
@CanIgnoreReturnValue public final ImmutablePullRequest.Builder mergeableState(@Nullable String mergeableState)
Initializes the value for themergeableState
attribute.- Parameters:
mergeableState
- The value for mergeableState (can benull
)- Returns:
this
builder for use in a chained invocation
-
draft
@CanIgnoreReturnValue public final ImmutablePullRequest.Builder draft(boolean draft)
Initializes the optional valuedraft
to draft.- Parameters:
draft
- The value for draft- Returns:
this
builder for chained invocation
-
draft
@CanIgnoreReturnValue public final ImmutablePullRequest.Builder draft(Optional<Boolean> draft)
Initializes the optional valuedraft
to draft.- Parameters:
draft
- The value for draft- Returns:
this
builder for use in a chained invocation
-
build
public ImmutablePullRequest build()
Builds a newImmutablePullRequest
.- Returns:
- An immutable instance of PullRequest
- Throws:
IllegalStateException
- if any required attributes are missing
-
-