Class ImmutablePullRequestReviewCommentEvent.Builder
- java.lang.Object
-
- com.spotify.github.v3.activity.events.ImmutablePullRequestReviewCommentEvent.Builder
-
- Enclosing class:
- ImmutablePullRequestReviewCommentEvent
@NotThreadSafe public static final class ImmutablePullRequestReviewCommentEvent.Builder extends Object
Builds instances of typeImmutablePullRequestReviewCommentEvent
. 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
-
-
-
Method Detail
-
from
@CanIgnoreReturnValue public final ImmutablePullRequestReviewCommentEvent.Builder from(BaseEvent instance)
Fill a builder with attribute values from the providedcom.spotify.github.v3.activity.events.BaseEvent
instance.- Parameters:
instance
- The instance from which to copy values- Returns:
this
builder for use in a chained invocation
-
from
@CanIgnoreReturnValue public final ImmutablePullRequestReviewCommentEvent.Builder from(PullRequestReviewCommentEvent instance)
Fill a builder with attribute values from the providedcom.spotify.github.v3.activity.events.PullRequestReviewCommentEvent
instance.- Parameters:
instance
- The instance from which to copy values- Returns:
this
builder for use in a chained invocation
-
repository
@CanIgnoreReturnValue public final ImmutablePullRequestReviewCommentEvent.Builder repository(@Nullable Repository repository)
Initializes the value for therepository
attribute.- Parameters:
repository
- The value for repository (can benull
)- Returns:
this
builder for use in a chained invocation
-
sender
@CanIgnoreReturnValue public final ImmutablePullRequestReviewCommentEvent.Builder sender(@Nullable User sender)
Initializes the value for thesender
attribute.- Parameters:
sender
- The value for sender (can benull
)- Returns:
this
builder for use in a chained invocation
-
eventInstallation
@CanIgnoreReturnValue public final ImmutablePullRequestReviewCommentEvent.Builder eventInstallation(@Nullable EventInstallation eventInstallation)
Initializes the value for theeventInstallation
attribute.- Parameters:
eventInstallation
- The value for eventInstallation (can benull
)- Returns:
this
builder for use in a chained invocation
-
action
@CanIgnoreReturnValue public final ImmutablePullRequestReviewCommentEvent.Builder action(@Nullable String action)
Initializes the value for theaction
attribute.- Parameters:
action
- The value for action (can benull
)- Returns:
this
builder for use in a chained invocation
-
comment
@CanIgnoreReturnValue public final ImmutablePullRequestReviewCommentEvent.Builder comment(@Nullable Comment comment)
Initializes the value for thecomment
attribute.- Parameters:
comment
- The value for comment (can benull
)- Returns:
this
builder for use in a chained invocation
-
pullRequest
@CanIgnoreReturnValue public final ImmutablePullRequestReviewCommentEvent.Builder pullRequest(@Nullable PullRequestItem pullRequest)
Initializes the value for thepullRequest
attribute.- Parameters:
pullRequest
- The value for pullRequest (can benull
)- Returns:
this
builder for use in a chained invocation
-
build
public ImmutablePullRequestReviewCommentEvent build()
Builds a newImmutablePullRequestReviewCommentEvent
.- Returns:
- An immutable instance of PullRequestReviewCommentEvent
- Throws:
IllegalStateException
- if any required attributes are missing
-
-